wok-6.x annotate ocaml/receipt @ rev 4724
Up: sakura (2.3.6)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Jan 05 15:58:44 2010 +0100 (2010-01-05) |
parents | bfa8ab3f9688 |
children | 6ec17b55b59a |
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@3997 | 19 ./configure --prefix /usr \ |
pascal@1677 | 20 $(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') && |
pascal@3997 | 21 make world opt && |
pascal@3997 | 22 sed -i "s|^PREFIX=.*|PREFIX=$PWD/_pkg/usr|" config/Makefile && |
pascal@3997 | 23 make install |
pascal@1677 | 24 } |
pascal@1677 | 25 |
pascal@1677 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1677 | 27 genpkg_rules() |
pascal@1677 | 28 { |
pascal@1677 | 29 mkdir -p $fs/usr |
pascal@1677 | 30 cp -a $_pkg/usr/bin $fs/usr |
pascal@1677 | 31 cp -a $_pkg/usr/lib $fs/usr |
pascal@1677 | 32 } |
pascal@1677 | 33 |