wok view erlang/receipt @ rev 2136
erlang: fix paths
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 03 12:05:12 2009 +0000 (2009-02-03) |
parents | 18b70bb26da3 |
children | 9ef21c113c01 |
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"
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/erts-*/bin/erl \
33 _pkg/usr/lib/erlang/erts-*/bin/start ; do
34 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
35 done
36 for i in _pkg/usr/bin/* ; do
37 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
38 done
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $_pkg/usr $fs
45 }