wok-6.x view erlang/receipt @ rev 15588

arj: ugly ack
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 02 16:43:36 2013 +0000 (2013-12-02)
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 }