aboutsummaryrefslogtreecommitdiff
path: root/development/gtkdialog/gtkdialog.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <jsun@freeshell.org>2010-05-11 22:22:33 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:22:33 +0200
commitebe06dfc073dff259a0acb304db14ead7b3ce803 (patch)
tree53fab10e04dfc5c2539fe3f0c7d58223c9d1ae7f /development/gtkdialog/gtkdialog.SlackBuild
parent8d9e7eff310ad62124e8ff88fb881dde4db37101 (diff)
development/gtkdialog: Updated for version 0.7.20
Diffstat (limited to 'development/gtkdialog/gtkdialog.SlackBuild')
-rw-r--r--development/gtkdialog/gtkdialog.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/development/gtkdialog/gtkdialog.SlackBuild b/development/gtkdialog/gtkdialog.SlackBuild
index fc4ddf0f4aa38..98a2ec5cfd0c9 100644
--- a/development/gtkdialog/gtkdialog.SlackBuild
+++ b/development/gtkdialog/gtkdialog.SlackBuild
@@ -7,7 +7,7 @@
PRGNAM=gtkdialog
VERSION=0.7.20
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -36,6 +38,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
-o -perm 400 \) -exec chmod 644 {} \;
+# 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
+
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
make
make DESTDIR=$PKG install-strip