wok-current view erlang/receipt @ rev 23847

cairo: update build_depends
author Richard Dunbar <mojo@slitaz.org>
date Sat Jun 13 18:19:02 2020 -0400 (2020-06-13)
parents 3e7ded8526ee
children a3c45ab9082e
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="22.2"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Erlang Public Licence"
9 WEB_SITE="https://www.erlang.org/"
11 #SOURCE="OTP"
12 #TARBALL="${SOURCE}-$VERSION.tar.gz"
13 #WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL"
14 TARBALL="$PACKAGE-$VERSION.tar.gz"
15 WGET_URL="${WEB_SITE}download/otp_src_$VERSION.tar.gz"
17 DEPENDS="libunixODBC ncurses openssl"
18 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev
19 openssl-dev perl unixODBC-dev wxWidgets-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 export LDFLAGS="$LDFLAGS -ltinfo"
25 export LANG=C
27 # sed -i 's|./Install|sh -x Install|' Makefile*
29 ./otp_build autoconf &&
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 --infodir=/usr/share/info \
35 $CONFIGURE_ARGS &&
36 make 2>&1 | sed 's|: No such file|: no such file|' &&
37 make INSTALL_PREFIX=$DESTDIR install || return 1
39 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \
40 $DESTDIR/usr/lib/erlang/bin/erl \
41 $DESTDIR/usr/lib/erlang/*/bin/start \
42 $DESTDIR/usr/lib/erlang/bin/start
43 do
44 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
45 done
47 for file in $(ls $DESTDIR/usr/bin)
48 do
49 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1
50 done
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cp -a $install/usr $fs
57 }