wok-current view erlang/receipt @ rev 8844
Add: slitaz-fbsplash (Graphical boot utility and theme
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 25 01:06:52 2011 +0100 (2011-02-25) |
parents | 553b627085fc |
children | 3c70f38c14f2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="R14B"
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-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 [ -f $SOURCES_REPOSITORY/$patch ] && cp $SOURCES_REPOSITORY/$patch .
23 if [ ! -f $patch ]; then
24 wget http://www.erlang.org/download/patches/$patch
25 cp $patch $SOURCES_REPOSITORY
26 fi
27 if [ ! -f done.$patch ]; then
28 patch -p1 < $patch
29 touch done.$patch
30 fi
31 export LANG=C
32 sed -i 's|./Install|sh -x Install|' Makefile*
33 ./configure --prefix=/usr --infodir=/usr/share/info \
34 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
37 for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \
38 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start
39 do
40 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
41 done
42 for i in _pkg/usr/bin/* ; do
43 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $_pkg/usr $fs
51 }