wok-6.x view erlang/receipt @ rev 2134

Add erlang
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 03 11:36:12 2009 +0000 (2009-02-03)
parents
children 315bb0da905d
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 BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 patch=${SOURCE}_${VERSION}_OTP-7738.patch
18 /home/slitaz/wok/erlang/otp_src-R12B-5
19 mv ${SOURCE}_$VERSION $src
20 cd $src
21 if [ -f $patch ]; then
22 wget http://www.erlang.org/download/patches/$patch
23 patch -p1 < $patch
24 fi
25 export LANG=C
26 sed -i 's|./Install|sh -x ./Install|' Makefile*
27 ./configure --prefix=/usr --infodir=/usr/share/info \
28 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
29 make &&
30 make INSTALL_PREFIX=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $_pkg/usr $fs
37 }