wok annotate erlang/receipt @ rev 13714
Up sqlite (3.7.15.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Dec 19 15:07:35 2012 +0100 (2012-12-19) |
parents | 8fe94ac4ccfc |
children | fcdd50638150 |
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@2134 | 8 SOURCE="otp_src" |
pascal@2134 | 9 TARBALL="${SOURCE}_$VERSION.tar.gz" |
pascal@2134 | 10 WEB_SITE="http://$PACKAGE.org/" |
pascal@2134 | 11 WGET_URL="${WEB_SITE}download/$TARBALL" |
pankso@10656 | 12 |
pankso@10656 | 13 DEPENDS="ncurses openssl libunixODBC" |
pankso@10659 | 14 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk" |
pascal@2134 | 15 |
pascal@2134 | 16 # Rules to configure and make the package. |
pascal@2134 | 17 compile_rules() |
pascal@2134 | 18 { |
pankso@10656 | 19 export LANG=C |
pankso@10656 | 20 |
pascal@2134 | 21 cd $src |
pascal@2137 | 22 sed -i 's|./Install|sh -x Install|' Makefile* |
pankso@10656 | 23 |
pankso@10656 | 24 ./configure \ |
pankso@10656 | 25 --prefix=/usr \ |
pankso@10656 | 26 --sysconfdir=/etc \ |
pankso@10656 | 27 --mandir=/usr/share/man \ |
pankso@10656 | 28 --infodir=/usr/share/info \ |
pankso@10656 | 29 $CONFIGURE_ARGS && |
pascal@6410 | 30 make -j 1 && |
slaxemulator@8453 | 31 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1 |
pankso@10656 | 32 |
slaxemulator@9533 | 33 for i in $DESTDIR/usr/lib/erlang/*/bin/erl $DESTDIR/usr/lib/erlang/bin/erl \ |
slaxemulator@9533 | 34 $DESTDIR/usr/lib/erlang/*/bin/start $DESTDIR/usr/lib/erlang/bin/start |
pascal@2137 | 35 do |
pascal@2136 | 36 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
pascal@2136 | 37 done |
slaxemulator@9533 | 38 for file in $(ls $DESTDIR/usr/bin); do |
slaxemulator@9533 | 39 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1 |
pascal@2136 | 40 done |
pascal@2134 | 41 } |
pascal@2134 | 42 |
pascal@2134 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 44 genpkg_rules() |
pascal@2134 | 45 { |
pascal@2134 | 46 cp -a $_pkg/usr $fs |
pascal@2134 | 47 } |