wok-6.x view erlang/receipt @ rev 10975
Up: python to 2.7.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 12 12:47:24 2011 +0000 (2011-10-12) |
parents | ecc22c518136 |
children | bcaada81a314 |
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 unixODBC-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 }