wok view erlang/receipt @ rev 9313
Add rfkill.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Mar 17 20:04:48 2011 +0000 (2011-03-17) |
parents | c8b38336a4fe |
children | c3132f55cc4f |
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 openssl-dev xorg-dev flex m4 java-jdk"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 patch=${SOURCE}_${VERSION}_OTP-7738.patch
19 cd $src
20 if [ ! -f done.$patch ]; then
21 patch -p1 < $stuff/$patch || return 1
22 touch done.$patch
23 fi
24 export LANG=C
25 sed -i 's|./Install|sh -x Install|' Makefile*
26 ./configure --prefix=/usr --infodir=/usr/share/info \
27 --sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS &&
28 make -j 1 &&
29 make -j 1 INSTALL_PREFIX=$DESTDIR install || return 1
30 for i in _pkg/usr/lib/erlang/*/bin/erl _pkg/usr/lib/erlang/bin/erl \
31 _pkg/usr/lib/erlang/*/bin/start _pkg/usr/lib/erlang/bin/start
32 do
33 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
34 done
35 for i in _pkg/usr/bin/* ; do
36 ln -sf $(readlink $i | sed 's|.*/_pkg||') $i
37 done
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $_pkg/usr $fs
44 }