wok view erlang/receipt @ rev 16404
Up: slitaz-tools, slitaz-tools-boxes (5.7.2) bugfix
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Apr 16 15:34:54 2014 +0300 (2014-04-16) |
parents | bcaada81a314 |
children | c7c3567bd8d4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="R15B01"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 SOURCE="otp_src"
10 TARBALL="${SOURCE}_$VERSION.tar.gz"
11 WEB_SITE="http://$PACKAGE.org/"
12 WGET_URL="${WEB_SITE}download/$TARBALL"
14 DEPENDS="ncurses openssl libunixODBC"
15 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LANG=C
22 cd $src
23 sed -i 's|./Install|sh -x Install|' Makefile*
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --mandir=/usr/share/man \
29 --infodir=/usr/share/info \
30 $CONFIGURE_ARGS &&
31 make -j 1 &&
32 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
34 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
35 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
36 do
37 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
38 done
39 for file in $(ls $DESTDIR/usr/bin); do
40 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
41 done
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cp -a $install/usr $fs
48 }