wok-current view erlang/receipt @ rev 21116

Up reiserfsprogs (3.6.27)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 19 19:34:17 2019 +0100 (2019-03-19)
parents c7c3567bd8d4
children 6dc00c39f773
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="21.2.5"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Erlang Public Licence"
9 WEB_SITE="http://$PACKAGE.org/"
11 SOURCE="OTP"
12 TARBALL="${SOURCE}-$VERSION.tar.gz"
13 WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL"
15 DEPENDS="ncurses openssl libunixODBC"
16 BUILD_DEPENDS="autoconf perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -ltinfo"
22 export LANG=C
24 # sed -i 's|./Install|sh -x Install|' Makefile*
26 ./otp_build autoconf &&
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 --infodir=/usr/share/info \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
36 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
37 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
38 do
39 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
40 done
41 for file in $(ls $DESTDIR/usr/bin); do
42 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
43 done
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/usr $fs
50 }