summaryrefslogtreecommitdiff
path: root/libraries/gtkdatabox/gtkdatabox.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/gtkdatabox/gtkdatabox.SlackBuild')
-rw-r--r--libraries/gtkdatabox/gtkdatabox.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/libraries/gtkdatabox/gtkdatabox.SlackBuild b/libraries/gtkdatabox/gtkdatabox.SlackBuild
index 0462853b9d..010197181e 100644
--- a/libraries/gtkdatabox/gtkdatabox.SlackBuild
+++ b/libraries/gtkdatabox/gtkdatabox.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for GtkDatabox
-# Copyright 2015 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2015-2016 Kyle Guinn <elyk03@gmail.com>, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,15 +21,14 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
PRGNAM=gtkdatabox
-VERSION=${VERSION:-0.9.2.0}
+VERSION=${VERSION:-0.9.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$(uname -m) ;;
esac
@@ -45,6 +44,9 @@ DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
@@ -67,11 +69,6 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-# Examples need -lm for sin(). Add it.
-sed -i 's/\(@GTK_LIBS@\)/\1 -lm/' examples/Makefile.am
-autoreconf -vif
-
-CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -84,7 +81,8 @@ CFLAGS="$SLKCFLAGS" \
--disable-dependency-tracking \
--enable-libglade \
--enable-glade \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ CFLAGS="$SLKCFLAGS" \
make
make check