summaryrefslogtreecommitdiff
path: root/libraries/gtkglext/gtkglext.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-12 17:40:51 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:40:51 +0200
commit86817acae962ce73f73e97f07e604abf1223195e (patch)
treebdeb210e4bcedbbf5a4a539b97cb432a3e5545a1 /libraries/gtkglext/gtkglext.SlackBuild
parent4d8909c721498cbca4cb26fdd8fa03bdeb08828a (diff)
downloadslackbuilds-86817acae962ce73f73e97f07e604abf1223195e.tar.gz
libraries/gtkglext: Updated for version 1.2.0
Diffstat (limited to 'libraries/gtkglext/gtkglext.SlackBuild')
-rw-r--r--libraries/gtkglext/gtkglext.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/libraries/gtkglext/gtkglext.SlackBuild b/libraries/gtkglext/gtkglext.SlackBuild
index 66f38f6528..132ee8dc40 100644
--- a/libraries/gtkglext/gtkglext.SlackBuild
+++ b/libraries/gtkglext/gtkglext.SlackBuild
@@ -35,8 +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
@@ -59,16 +64,20 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--disable-static \
--enable-gtk-doc \
- --enable-debug=no
+ --enable-debug=no \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION