summaryrefslogtreecommitdiff
path: root/development/facile/facile.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:24:35 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:24:35 +0200
commit466c36d08af26e3389d9d431d64b7b944630d483 (patch)
treec51822095d2718f1586833c3665dc80839f66ac4 /development/facile/facile.SlackBuild
parentbb1e8ad1ad9aa6981d965f04105c4fce86c93a3e (diff)
downloadslackbuilds-466c36d08af26e3389d9d431d64b7b944630d483.tar.gz
development/facile: Updated for version 1.1
Diffstat (limited to 'development/facile/facile.SlackBuild')
-rw-r--r--development/facile/facile.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/development/facile/facile.SlackBuild b/development/facile/facile.SlackBuild
index ce3973ef6e..cbc227fbcf 100644
--- a/development/facile/facile.SlackBuild
+++ b/development/facile/facile.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for facile
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -35,10 +35,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -52,10 +55,10 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-mkdir -p $PKG/usr/lib/ocaml/facile
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/ocaml/facile
./configure \
- --faciledir $PKG/usr/lib/ocaml/facile
+ --faciledir $PKG/usr/lib$LIBDIRSUFFIX/ocaml/facile
make
make install
@@ -71,4 +74,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}