summaryrefslogtreecommitdiff
path: root/libraries/libsigc++/libsigc++.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libsigc++/libsigc++.SlackBuild')
-rw-r--r--libraries/libsigc++/libsigc++.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/libraries/libsigc++/libsigc++.SlackBuild b/libraries/libsigc++/libsigc++.SlackBuild
index 7d77f3ce21..7684b3534e 100644
--- a/libraries/libsigc++/libsigc++.SlackBuild
+++ b/libraries/libsigc++/libsigc++.SlackBuild
@@ -26,7 +26,7 @@
# Modified by Michien van Wessem, <michiel@slackbuilds.org> - 20081029
PRGNAM=libsigc++
-VERSION=2.0.18
+VERSION=2.2.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,10 +40,13 @@ DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO examples"
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
rm -rf $PKG
@@ -59,9 +62,11 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-static=no \
+ --build=$ARCH-slackware-linux \
|| exit 1
make || exit 1
@@ -71,9 +76,10 @@ mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/libsigc-2.0/docs $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-rm -rf $PKG/usr/share # Remove empty directory
+rm -rf $PKG/usr/share # Remove empty directory
rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/images/ # Remove images
rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/reference # Remove API docs
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/index.html # Remove useless html file
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc