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