wok-next annotate ocaml/receipt @ rev 2939
Up: libgpg-error-* (1.7)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri May 08 00:11:57 2009 +0200 (2009-05-08) |
parents | 4482e0fab13a |
children | 30d3807bcd99 |
rev | line source |
---|---|
pascal@1677 | 1 # SliTaz package receipt. |
pascal@1677 | 2 |
pascal@1677 | 3 PACKAGE="ocaml" |
pascal@1677 | 4 VERSION="3.10.2" |
pascal@1677 | 5 CATEGORY="system-tools" |
pascal@1677 | 6 SHORT_DESC="General-purpose programming language designed for safety and reliability." |
pascal@1677 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1677 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2459 | 9 DEPENDS="xorg-libX11 xorg-libXau xorg-libXdmcp" |
pascal@1677 | 10 WEB_SITE="http://caml.inria.fr/" |
pascal@1677 | 11 WGET_URL="${WEB_SITE}pub/distrib/$PACKAGE-${VERSION%.*}/$TARBALL" |
pascal@1677 | 12 |
pascal@1677 | 13 # Rules to configure and make the package. |
pascal@1677 | 14 compile_rules() |
pascal@1677 | 15 { |
pascal@1677 | 16 cd $src |
pascal@2578 | 17 grep -q true build/camlp4-targets.sh || |
pascal@2578 | 18 sed -i 's/base=.*/& || true/' build/camlp4-targets.sh |
pascal@1677 | 19 ./configure --prefix $PWD/_pkg/usr \ |
pascal@1677 | 20 $(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') && |
pascal@1677 | 21 make world && make install |
pascal@1677 | 22 } |
pascal@1677 | 23 |
pascal@1677 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1677 | 25 genpkg_rules() |
pascal@1677 | 26 { |
pascal@1677 | 27 mkdir -p $fs/usr |
pascal@1677 | 28 cp -a $_pkg/usr/bin $fs/usr |
pascal@1677 | 29 cp -a $_pkg/usr/lib $fs/usr |
pascal@1677 | 30 } |
pascal@1677 | 31 |