diff options
Diffstat (limited to 'development/gtkdialog/gtkdialog.SlackBuild')
-rw-r--r-- | development/gtkdialog/gtkdialog.SlackBuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/development/gtkdialog/gtkdialog.SlackBuild b/development/gtkdialog/gtkdialog.SlackBuild index 98a2ec5cfd..d0b30b51dc 100644 --- a/development/gtkdialog/gtkdialog.SlackBuild +++ b/development/gtkdialog/gtkdialog.SlackBuild @@ -5,9 +5,9 @@ # Released under the WTFPL PRGNAM=gtkdialog -VERSION=0.7.20 +VERSION=${VERSION:-0.7.20} ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -17,10 +17,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 @@ -41,6 +44,8 @@ find . \ # Fix an infinite loop caused by a pair of statements not being contained in # braces. Thanks to David B. Cortarello patch -p1 < $CWD/gtkdialog-0.7.20-variables-export-fix.patch +# Fix a redeclaration error/namespace issue +patch -p1 < $CWD/redeclaration.patch CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr make @@ -53,10 +58,11 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -name "Makefile*" -exec rm -f {} \; find $PKG/usr/doc -type f -exec chmod 0644 {} \; +rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/$PRGNAM.info mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |