wok annotate ocaml/receipt @ rev 11044
Up: usbutils to 004.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 16 08:02:37 2011 +0000 (2011-10-16) |
parents | 6ec17b55b59a |
children | ad0e3018d4fa |
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" |
jozee@4970 | 12 TAGS="language programming" |
pascal@1677 | 13 |
pascal@1677 | 14 # Rules to configure and make the package. |
pascal@1677 | 15 compile_rules() |
pascal@1677 | 16 { |
pascal@1677 | 17 cd $src |
pascal@2578 | 18 grep -q true build/camlp4-targets.sh || |
pascal@2578 | 19 sed -i 's/base=.*/& || true/' build/camlp4-targets.sh |
pascal@3997 | 20 ./configure --prefix /usr \ |
pascal@1677 | 21 $(echo $CONFIGURE_ARGS | sed 's/--build=[^ ]*//' | sed 's/=/ /g') && |
gokhlayeh@8760 | 22 make -j1 world opt && |
pascal@3997 | 23 sed -i "s|^PREFIX=.*|PREFIX=$PWD/_pkg/usr|" config/Makefile && |
pascal@3997 | 24 make install |
pascal@1677 | 25 } |
pascal@1677 | 26 |
pascal@1677 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1677 | 28 genpkg_rules() |
pascal@1677 | 29 { |
pascal@1677 | 30 mkdir -p $fs/usr |
pascal@1677 | 31 cp -a $_pkg/usr/bin $fs/usr |
pascal@1677 | 32 cp -a $_pkg/usr/lib $fs/usr |
pascal@1677 | 33 } |
pascal@1677 | 34 |