wok-current annotate ocaml/receipt @ rev 7494

Up: mercurial to 1.7.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Dec 03 13:49:58 2010 +0000 (2010-12-03)
parents 30d3807bcd99
children 6c5cc6382d3d
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') &&
pascal@3997 22 make 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