wok-next view erlang/receipt @ rev 14386

eina: change tags
author Dominique Corbex <domcox@slitaz.org>
date Tue Apr 23 06:58:32 2013 +0200 (2013-04-23)
parents 8fe94ac4ccfc
children fcdd50638150
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 SOURCE="otp_src"
9 TARBALL="${SOURCE}_$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.org/"
11 WGET_URL="${WEB_SITE}download/$TARBALL"
13 DEPENDS="ncurses openssl libunixODBC"
14 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LANG=C
21 cd $src
22 sed -i 's|./Install|sh -x Install|' Makefile*
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --mandir=/usr/share/man \
28 --infodir=/usr/share/info \
29 $CONFIGURE_ARGS &&
30 make -j 1 &&
31 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
33 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
34 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
35 do
36 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
37 done
38 for file in $(ls $DESTDIR/usr/bin); do
39 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
40 done
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cp -a $_pkg/usr $fs
47 }