wok-4.x view erlang/receipt @ rev 11581

pidgin-libnotify, pidgin-musictracker, stardict, viewnior : update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 06 00:20:24 2012 +0100 (2012-01-06)
parents ecc22c518136
children 1c5686cd4004
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 }