wok view erlang/receipt @ rev 18571

Up: mc (4.8.15)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Nov 10 22:13:13 2015 +0100 (2015-11-10)
parents fcdd50638150
children 65d1668b0834
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 LDFLAGS="$LDFLAGS -ltinfo"
21 export LANG=C
23 cd $src
24 sed -i 's|./Install|sh -x Install|' Makefile*
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --mandir=/usr/share/man \
30 --infodir=/usr/share/info \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
35 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
36 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
37 do
38 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
39 done
40 for file in $(ls $DESTDIR/usr/bin); do
41 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
42 done
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $install/usr $fs
49 }