wok-current view ocaml/receipt @ rev 19832
Up apulse (0.1.8+ae3ea44)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Mar 10 20:46:32 2017 +0100 (2017-03-10) |
parents | 23c3aed67cd9 |
children | 019e49ad6c06 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ocaml"
4 VERSION="3.12.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="General-purpose programming language designed for safety and reliability."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="QPL LGPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://caml.inria.fr/"
11 WGET_URL="${WEB_SITE}pub/distrib/$PACKAGE-${VERSION%.*}/$TARBALL"
12 TAGS="language programming"
14 DEPENDS="xorg-libX11 xorg-libXau xorg-libXdmcp"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's|PREFIX)/man|PREFIX)/share/man|' configure
20 grep -q true build/camlp4-targets.sh ||
21 sed -i 's/base=.*/& || true/' build/camlp4-targets.sh
22 ./configure --prefix /usr \
23 $(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') &&
24 make -j1 world opt &&
25 sed -i "s|^PREFIX=.*|PREFIX=$DESTDIR/usr|" config/Makefile &&
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib $fs/usr
35 }