diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-18 08:54:06 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-18 08:54:06 -0500 |
commit | 444bbb921d559712a69496900babac0d3e4d04f3 (patch) | |
tree | 82522bb26cef476b38a2c2344fec2728a6010c14 /libraries/gtkmm/gtkmm.SlackBuild | |
parent | e5761c26571678ace124a292ab26f32e51d5d813 (diff) | |
download | slackbuilds-444bbb921d559712a69496900babac0d3e4d04f3.tar.gz |
libraries/gtkmm: Updated for version 2.18.2.
Diffstat (limited to 'libraries/gtkmm/gtkmm.SlackBuild')
-rwxr-xr-x[-rw-r--r--] | libraries/gtkmm/gtkmm.SlackBuild | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/libraries/gtkmm/gtkmm.SlackBuild b/libraries/gtkmm/gtkmm.SlackBuild index 5a4c8706a3..4a7ba08a16 100644..100755 --- a/libraries/gtkmm/gtkmm.SlackBuild +++ b/libraries/gtkmm/gtkmm.SlackBuild @@ -25,11 +25,20 @@ # Modified by Robby Workman <rworkman@slackbuilds.org> PRGNAM=gtkmm -VERSION=${VERSION:-2.14.3} -ARCH=${ARCH:-i486} +VERSION=${VERSION:-2.18.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -44,6 +53,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -68,20 +80,14 @@ CXXFLAGS="$SLKCFLAGS" \ --disable-static \ --build=$ARCH-slackware-linux -make -make install-strip DESTDIR=$PKG +make libdocdir=/usr/doc/$PRGNAM-$VERSION +make install-strip DESTDIR=$PKG libdocdir=/usr/doc/$PRGNAM-$VERSION -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/doc/gtkmm-2.4/* $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS CHANGES COPYING ChangeLog INSTALL NEWS PORTING README* \ - $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/devhelp/books/gtkmm-2.4/gtkmm-2.4.devhelp \ +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS PORTING README* \ $PKG/usr/doc/$PRGNAM-$VERSION -rm -rf $PKG/usr/share cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -# Remove API docs -rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/docs/reference \ - $PKG/usr/doc/$PRGNAM-$VERSION/examples +## Remove API docs +rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/docs/{reference,examples} mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |