wok-current annotate erlang/receipt @ rev 20795
Add ifplugd & netplug
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 15 12:51:11 2019 +0100 (2019-02-15) |
parents | fcdd50638150 |
children | 65d1668b0834 |
rev | line source |
---|---|
pascal@2134 | 1 # SliTaz package receipt. |
pascal@2134 | 2 |
pascal@2134 | 3 PACKAGE="erlang" |
pascal@12752 | 4 VERSION="R15B01" |
pascal@2134 | 5 CATEGORY="development" |
pascal@2134 | 6 SHORT_DESC="Erlang programming language." |
pascal@2134 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15588 | 8 LICENSE="other" |
pascal@2134 | 9 SOURCE="otp_src" |
pascal@2134 | 10 TARBALL="${SOURCE}_$VERSION.tar.gz" |
pascal@2134 | 11 WEB_SITE="http://$PACKAGE.org/" |
pascal@2134 | 12 WGET_URL="${WEB_SITE}download/$TARBALL" |
pankso@10656 | 13 |
pankso@10656 | 14 DEPENDS="ncurses openssl libunixODBC" |
pankso@10659 | 15 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk" |
pascal@2134 | 16 |
pascal@2134 | 17 # Rules to configure and make the package. |
pascal@2134 | 18 compile_rules() |
pascal@2134 | 19 { |
pascal@17673 | 20 export LDFLAGS="$LDFLAGS -ltinfo" |
pankso@10656 | 21 export LANG=C |
pankso@10656 | 22 |
pascal@2134 | 23 cd $src |
pascal@2137 | 24 sed -i 's|./Install|sh -x Install|' Makefile* |
pankso@10656 | 25 |
pankso@10656 | 26 ./configure \ |
pankso@10656 | 27 --prefix=/usr \ |
pankso@10656 | 28 --sysconfdir=/etc \ |
pankso@10656 | 29 --mandir=/usr/share/man \ |
pankso@10656 | 30 --infodir=/usr/share/info \ |
pankso@10656 | 31 $CONFIGURE_ARGS && |
pascal@6410 | 32 make -j 1 && |
slaxemulator@8453 | 33 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1 |
pankso@10656 | 34 |
slaxemulator@9533 | 35 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \ |
slaxemulator@9533 | 36 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start |
pascal@2137 | 37 do |
pascal@2136 | 38 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
pascal@2136 | 39 done |
slaxemulator@9533 | 40 for file in $(ls $DESTDIR/usr/bin); do |
slaxemulator@9533 | 41 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1 |
pascal@2136 | 42 done |
pascal@2134 | 43 } |
pascal@2134 | 44 |
pascal@2134 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 46 genpkg_rules() |
pascal@2134 | 47 { |
pascal@15588 | 48 cp -a $install/usr $fs |
pascal@2134 | 49 } |