diff options
author | Ferenc Deak <ferenc.deak@gmail.com> | 2011-11-09 17:22:07 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-11-26 09:09:10 -0600 |
commit | 4f9a8266f962488c395bb0b52d8c2e2fb0f55510 (patch) | |
tree | 00b01975faa71c51814189b2a5d8d439a6c707db /development/ocaml/ocaml.SlackBuild | |
parent | c77efa0419d9b229f6a7beefd09d1ee7b9b7de8a (diff) |
development/ocaml: Updated for version 3.12.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'development/ocaml/ocaml.SlackBuild')
-rw-r--r-- | development/ocaml/ocaml.SlackBuild | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/development/ocaml/ocaml.SlackBuild b/development/ocaml/ocaml.SlackBuild index 677774f1ac6fd..d97021f34259a 100644 --- a/development/ocaml/ocaml.SlackBuild +++ b/development/ocaml/ocaml.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for ocaml -# Copyright 2007-2009 Ferenc Deak <ferenc.deak@gmail.com> +# Copyright 2007-2011 Ferenc Deak <ferenc.deak@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,16 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ocaml -VERSION=3.11.1 +VERSION=3.12.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -67,14 +65,13 @@ cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -./configure \ +patch < $CWD/configure.patch + +CFLAGS="$SLKCFLAGS" ./configure \ --prefix /usr \ --libdir /usr/lib${LIBDIRSUFFIX}/ocaml \ --host $ARCH-slackware-linux -sed -i -e "s/\\(BYTECCCOMPOPTS=.*\\)/\\1 ${SLKCFLAGS}/" config/Makefile -sed -i -e "s/\\(NATIVECCCOMPOPTS=.*\\)/\\1 ${SLKCFLAGS}/" config/Makefile - make world.opt make install \ PREFIX=$PKG/usr \ @@ -88,6 +85,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a Changes INSTALL LICENSE README README.win32 Upgrading VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/ocaml-3.12-refman.html > $PKG/usr/doc/$PRGNAM-$VERSION/ocaml-refman.html cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |