wok-next view erlang/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 757d032c55c7 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="erlang"
4 VERSION="R15B01"
5 CATEGORY="development"
6 SHORT_DESC="Erlang programming language"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="other"
9 WEB_SITE="http://www.erlang.org/"
11 SOURCE="otp_src"
12 TARBALL="${SOURCE}_$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}download/$TARBALL"
15 BUILD_DEPENDS="perl ncurses-dev openssl-dev unixODBC-dev icedtea6-jdk"
17 compile_rules() {
18 export LANG=C
19 sed -i 's|./Install|sh -x Install|' Makefile*
21 ./configure $CONFIGURE_ARGS &&
22 make -j1 &&
23 make -j1 INSTALL_PREFIX=$install install || return 1
25 for i in \
26 $install/usr/lib/erlang/*/bin/erl \
27 $install/usr/lib/erlang/bin/erl \
28 $install/usr/lib/erlang/*/bin/start \
29 $install/usr/lib/erlang/bin/start
30 do
31 sed -i 's|^ROOTDIR=.*$|ROOTDIR=/usr/lib/erlang|' $i
32 done
33 for file in $(ls $install/usr/bin); do
34 ln -sf /usr/lib/erlang/bin/$file $install/usr/bin/$file || return 1
35 done
36 }
38 genpkg_rules() {
39 copy @std
40 DEPENDS="ncurses openssl libunixODBC"
41 }