diff options
author | Niels Horn <niels.horn@gmail.com> | 2010-06-12 07:41:43 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-12 07:47:29 -0500 |
commit | b499012a50ff5c4f539f685a94bc9d05b1b5dd80 (patch) | |
tree | 32f661d444cb4563aacf687ad946a3d811e98179 /libraries/wxGTK/wxGTK.SlackBuild | |
parent | 1a0d0d9b4d297bac6532832b0dcc44ea04e370f1 (diff) | |
download | slackbuilds-b499012a50ff5c4f539f685a94bc9d05b1b5dd80.tar.gz |
libraries/wxGTK: Updated for version 2.8.11.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/wxGTK/wxGTK.SlackBuild')
-rw-r--r-- | libraries/wxGTK/wxGTK.SlackBuild | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/libraries/wxGTK/wxGTK.SlackBuild b/libraries/wxGTK/wxGTK.SlackBuild index 9409a771c3..7e35372ee9 100644 --- a/libraries/wxGTK/wxGTK.SlackBuild +++ b/libraries/wxGTK/wxGTK.SlackBuild @@ -25,14 +25,22 @@ # Lots of key help from Eric Hameleers and the SBo admins. # Versions >= 2.8.10 by Niels Horn <niels.horn@gmail.com> -# revision date: 2010/03/27 +# revision date: 2010/06/01 PRGNAM=wxGTK -VERSION=2.8.10 -ARCH=${ARCH:-i486} +VERSION=${VERSION:-2.8.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -58,14 +66,20 @@ elif [ "$ARCH" = "arm" ]; then SLKCFLAGS="-O2 -march=armv4t" LIBDIRSUFFIX="" ARCHQUADLET="-gnueabi" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" + ARCHQUADLET="" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -73,9 +87,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Apply patch for newer gtk2 versions -patch -p1 < $CWD/newgtk.patch - # Set unicode flag as desired by UNICODE variable if [ "$UNICODE" = "YES" ]; then _do_unicode="en" @@ -92,11 +103,10 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-shared \ --with-opengl \ --${_do_unicode}able-unicode \ - --build=$ARCH-slackware-linux$ARCHQUADLET \ - || exit 1 + --build=$ARCH-slackware-linux$ARCHQUADLET -make || exit 1 -make install DESTDIR=$PKG || exit 1 +make +make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |