wok view ocaml/receipt @ rev 20058
Up slitaz-base-files (331), slitaz-boot-scripts (443).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Sep 12 02:02:47 2017 +0300 (2017-09-12) |
parents | 23c3aed67cd9 |
children | 019e49ad6c06 |
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 sed -i 's|PREFIX)/man|PREFIX)/share/man|' configure
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 }