wok view erlang/receipt @ rev 22514

updated atftp and atftpd (0.7 -> 0.7.2)
author Hans-G?nter Theisgen
date Wed Jan 01 16:04:30 2020 +0100 (2020-01-01)
parents 6dc00c39f773
children fdc0e46cecf0
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 \
17 wxWidgets-dev gcc+gcj libxslt"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 export LDFLAGS="$LDFLAGS -ltinfo"
23 export LANG=C
25 # sed -i 's|./Install|sh -x Install|' Makefile*
27 ./otp_build autoconf &&
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --mandir=/usr/share/man \
32 --infodir=/usr/share/info \
33 $CONFIGURE_ARGS &&
34 make -j 1 &&
35 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
37 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \
38 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start
39 do
40 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
41 done
42 for file in $(ls $DESTDIR/usr/bin); do
43 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/usr $fs
51 }