wok view ocaml/receipt @ rev 16083

ARM: add cairo giblib gperf
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 15 21:09:44 2014 +0100 (2014-03-15)
parents ad0e3018d4fa
children 42380dbaadb7
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 cd $src
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 }