wok annotate erlang/receipt @ rev 8640

Fixed stellarium.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Feb 15 17:12:02 2011 +0000 (2011-02-15)
parents 553b627085fc
children 3c70f38c14f2
rev   line source
pascal@2134 1 # SliTaz package receipt.
pascal@2134 2
pascal@2134 3 PACKAGE="erlang"
slaxemulator@6609 4 VERSION="R14B"
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"
pascal@5000 12 DEPENDS="ncurses libunixODBC"
pascal@2137 13 BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex m4"
pascal@2134 14
pascal@2134 15 # Rules to configure and make the package.
pascal@2134 16 compile_rules()
pascal@2134 17 {
pascal@2134 18 patch=${SOURCE}_${VERSION}_OTP-7738.patch
pascal@2134 19 /home/slitaz/wok/erlang/otp_src-R12B-5
pascal@2134 20 mv ${SOURCE}_$VERSION $src
pascal@2134 21 cd $src
pascal@5552 22 [ -f $SOURCES_REPOSITORY/$patch ] && cp $SOURCES_REPOSITORY/$patch .
pascal@5552 23 if [ ! -f $patch ]; then
pascal@2134 24 wget http://www.erlang.org/download/patches/$patch
pascal@5552 25 cp $patch $SOURCES_REPOSITORY
pascal@5552 26 fi
pascal@5552 27 if [ ! -f done.$patch ]; then
pascal@2134 28 patch -p1 < $patch
pascal@5552 29 touch done.$patch
pascal@2134 30 fi
pascal@2134 31 export LANG=C
pascal@2137 32 sed -i 's|./Install|sh -x Install|' Makefile*
pascal@2134 33 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@2134 34 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@6410 35 make -j 1 &&
slaxemulator@8453 36 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
pascal@2137 37 for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \
pascal@2137 38 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start
pascal@2137 39 do
pascal@2136 40 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
pascal@2136 41 done
pascal@2136 42 for i in _pkg/usr/bin/* ; do
pascal@2136 43 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
pascal@2136 44 done
pascal@2134 45 }
pascal@2134 46
pascal@2134 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2134 48 genpkg_rules()
pascal@2134 49 {
pascal@2134 50 cp -a $_pkg/usr $fs
pascal@2134 51 }
pascal@2134 52