summaryrefslogtreecommitdiff
path: root/libraries/libinklevel/libinklevel.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-12 17:41:20 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:41:20 +0200
commit633a798584e63186345f8d40fcc14c85e1090a8e (patch)
tree74bda99caa03001072761180297adb9e9be59200 /libraries/libinklevel/libinklevel.SlackBuild
parent9a1e2c59529c4824acfbe457ee43810eb8c2c41b (diff)
downloadslackbuilds-633a798584e63186345f8d40fcc14c85e1090a8e.tar.gz
libraries/libinklevel: Updated for version 0.7.3
Diffstat (limited to 'libraries/libinklevel/libinklevel.SlackBuild')
-rw-r--r--libraries/libinklevel/libinklevel.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/libraries/libinklevel/libinklevel.SlackBuild b/libraries/libinklevel/libinklevel.SlackBuild
index c8e63f1a72..a00e6aaffc 100644
--- a/libraries/libinklevel/libinklevel.SlackBuild
+++ b/libraries/libinklevel/libinklevel.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libinklevel
-VERSION=0.7.2
+VERSION=0.7.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-fPIC"
fi
set -e
@@ -54,11 +56,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Apply a small patch to the default Makefile to respect additional CFLAGS
-# Sent upstream 20070105 --rworkman
-patch -p1 < $CWD/libinklevel-0.7.2-Makefile.diff
-
-CFLAGS="$SLKCFLAGS" make
+CFLAGS+="$SLKCFLAGS" make PREFIX=/usr
make install PREFIX=/usr DESTDIR=$PKG
( cd $PKG