wok-6.x view erlang/receipt @ rev 9861
php: try to fix again
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 16 18:10:27 2011 +0200 (2011-05-16) |
parents | 397676d92cdb |
children | ecc22c518136 |
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"
12 DEPENDS="ncurses libunixODBC"
13 BUILD_DEPENDS="perl ncurses-dev openssl openssl-dev xorg-dev flex m4 java-jdk"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 patch=${SOURCE}_${VERSION}_OTP-7738.patch
19 cd $src
20 if [ ! -f done.$patch ]; then
21 patch -p1 < $stuff/$patch || return 1
22 touch done.$patch
23 fi
24 export LANG=C
25 sed -i 's|./Install|sh -x Install|' Makefile*
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make -j 1 &&
29 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
30 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
31 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
32 do
33 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
34 done
35 for file in $(ls $DESTDIR/usr/bin); do
36 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
37 done
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $_pkg/usr $fs
44 }