wok-stable view erlang/receipt @ rev 5694

Up: geany (0.19)
author Alexander Medvedev <devl547@gmail.com>
date Wed Jun 16 19:49:20 2010 +0000 (2010-06-16)
parents 6e90579538d6
children 00d7ce375104
line source
1 # SliTaz package receipt.
3 PACKAGE="erlang"
4 VERSION="R12B-5"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="otp_src"
9 TARBALL="${SOURCE}_$VERSION.tar.gz"
10 WEB_SITE="http://$PACKAGE.org/"
11 WGET_URL="${WEB_SITE}download/$TARBALL"
12 DEPENDS="ncurses libunixODBC"
13 BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex m4"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 patch=${SOURCE}_${VERSION}_OTP-7738.patch
19 /home/slitaz/wok/erlang/otp_src-R12B-5
20 mv ${SOURCE}_$VERSION $src
21 cd $src
22 [ -f $SOURCES_REPOSITORY/$patch ] && cp $SOURCES_REPOSITORY/$patch .
23 if [ ! -f $patch ]; then
24 wget http://www.erlang.org/download/patches/$patch
25 cp $patch $SOURCES_REPOSITORY
26 fi
27 if [ ! -f done.$patch ]; then
28 patch -p1 < $patch
29 touch done.$patch
30 fi
31 export LANG=C
32 sed -i 's|./Install|sh -x Install|' Makefile*
33 ./configure --prefix=/usr --infodir=/usr/share/info \
34 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
35 make &&
36 make INSTALL_PREFIX=$PWD/_pkg install || return 1
37 for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \
38 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start
39 do
40 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
41 done
42 for i in _pkg/usr/bin/* ; do
43 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $_pkg/usr $fs
51 }