wok annotate erlang/receipt @ rev 23989
syslinux: iso2exe/init should keep keyboard config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 05 09:55:13 2020 +0000 (2020-12-05) |
parents | 3e7ded8526ee |
children | a3c45ab9082e |
rev | line source |
---|---|
pascal@2134 | 1 # SliTaz package receipt. |
pascal@2134 | 2 |
pascal@2134 | 3 PACKAGE="erlang" |
Hans-G?nter@22703 | 4 VERSION="22.2" |
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" |
Hans-G?nter@22703 | 9 WEB_SITE="https://www.erlang.org/" |
Hans-G?nter@20875 | 10 |
Hans-G?nter@22703 | 11 #SOURCE="OTP" |
Hans-G?nter@22703 | 12 #TARBALL="${SOURCE}-$VERSION.tar.gz" |
Hans-G?nter@22703 | 13 #WGET_URL="https://github.com/$PACKAGE/otp/archive/$TARBALL" |
Hans-G?nter@22703 | 14 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22703 | 15 WGET_URL="${WEB_SITE}download/otp_src_$VERSION.tar.gz" |
pankso@10656 | 16 |
Hans-G?nter@22703 | 17 DEPENDS="libunixODBC ncurses openssl" |
Hans-G?nter@22703 | 18 BUILD_DEPENDS="autoconf gcc+gcj icedtea6-jdk libxslt ncurses-dev |
Hans-G?nter@22703 | 19 openssl-dev perl unixODBC-dev wxWidgets-dev" |
pascal@2134 | 20 |
pascal@2134 | 21 # Rules to configure and make the package. |
pascal@2134 | 22 compile_rules() |
pascal@2134 | 23 { |
pascal@17673 | 24 export LDFLAGS="$LDFLAGS -ltinfo" |
pankso@10656 | 25 export LANG=C |
pankso@10656 | 26 |
Hans-G?nter@20875 | 27 # sed -i 's|./Install|sh -x Install|' Makefile* |
pankso@10656 | 28 |
Hans-G?nter@20875 | 29 ./otp_build autoconf && |
Hans-G?nter@22703 | 30 ./configure \ |
Hans-G?nter@22703 | 31 --prefix=/usr \ |
Hans-G?nter@22703 | 32 --sysconfdir=/etc \ |
Hans-G?nter@22703 | 33 --mandir=/usr/share/man \ |
Hans-G?nter@22703 | 34 --infodir=/usr/share/info \ |
pankso@10656 | 35 $CONFIGURE_ARGS && |
Hans-G?nter@22703 | 36 make 2>&1 | sed 's|: No such file|: no such file|' && |
Hans-G?nter@22703 | 37 make INSTALL_PREFIX=$DESTDIR install || return 1 |
pankso@10656 | 38 |
Hans-G?nter@22703 | 39 for i in $DESTDIR/usr/lib/erlang/*/bin/erl \ |
Hans-G?nter@22703 | 40 $DESTDIR/usr/lib/erlang/bin/erl \ |
Hans-G?nter@22703 | 41 $DESTDIR/usr/lib/erlang/*/bin/start \ |
Hans-G?nter@22703 | 42 $DESTDIR/usr/lib/erlang/bin/start |
Hans-G?nter@22703 | 43 do |
pascal@2136 | 44 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i |
Hans-G?nter@22703 | 45 done |
Hans-G?nter@22703 | 46 |
Hans-G?nter@22703 | 47 for file in $(ls $DESTDIR/usr/bin) |
Hans-G?nter@22703 | 48 do |
slaxemulator@9533 | 49 ln -sf /usr/lib/erlang/bin/$file $DESTDIR/usr/bin/$file || return 1 |
Hans-G?nter@22703 | 50 done |
pascal@2134 | 51 } |
pascal@2134 | 52 |
pascal@2134 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2134 | 54 genpkg_rules() |
pascal@2134 | 55 { |
Hans-G?nter@22703 | 56 cp -a $install/usr $fs |
pascal@2134 | 57 } |