wok-4.x view erlang/receipt @ rev 4072
syasokoban: cook with gcc 4.4 serie
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 13 02:47:12 2009 +0200 (2009-09-13) |
parents | 315bb0da905d |
children | 6e90579538d6 |
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"
13 BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex m4"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 patch=${SOURCE}_${VERSION}_OTP-7738.patch
19 /home/slitaz/wok/erlang/otp_src-R12B-5
20 mv ${SOURCE}_$VERSION $src
21 cd $src
22 if [ -f $patch ]; then
23 wget http://www.erlang.org/download/patches/$patch
24 patch -p1 < $patch
25 fi
26 export LANG=C
27 sed -i 's|./Install|sh -x Install|' Makefile*
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
30 make &&
31 make INSTALL_PREFIX=$PWD/_pkg install || return 1
32 for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \
33 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start
34 do
35 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
36 done
37 for i in _pkg/usr/bin/* ; do
38 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
39 done
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $_pkg/usr $fs
46 }