wok-stable view erlang/receipt @ rev 10656

erlang: clean receipt and fix bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 06:25:19 2011 +0200 (2011-05-27)
parents c3132f55cc4f
children 8fe94ac4ccfc
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="R12B-5"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="otp_src"
9 TARBALL="${SOURCE}_$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.org/"
11 WGET_URL="${WEB_SITE}download/$TARBALL"
13 DEPENDS="ncurses openssl libunixODBC"
14 BUILD_DEPENDS="perl ncurses-dev openssl-dev libunixODBC-dev icedtea6-jdk"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 patch=${SOURCE}_${VERSION}_OTP-7738.patch
20 export LANG=C
22 cd $src
23 if [ ! -f done.$patch ]; then
24 patch -p1 < $stuff/$patch || return 1
25 touch done.$patch
26 fi
27 sed -i 's|./Install|sh -x Install|' Makefile*
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --mandir=/usr/share/man \
33 --infodir=/usr/share/info \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
38 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
39 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
40 do
41 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
42 done
43 for file in $(ls $DESTDIR/usr/bin); do
44 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
45 done
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cp -a $_pkg/usr $fs
52 }