summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorMurat D. Kadirov <banderols@gmail.com>2010-09-14 23:05:08 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-09-14 23:05:08 -0500
commit98fc976001f47ad82c21fce4369f50b68d0d134b (patch)
treef283401c744a363f31d3ce86c1e0e7717d93e77d /graphics
parentebd0f6d096a71d7bdbf19900afe3cb59ac34d33e (diff)
downloadslackbuilds-98fc976001f47ad82c21fce4369f50b68d0d134b.tar.gz
graphics/djview4: Fixed to avoid build error with qt3 installed
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/djview4/djview4.SlackBuild16
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/djview4/djview4.SlackBuild b/graphics/djview4/djview4.SlackBuild
index 6546588b9f..ae6e173fcf 100644
--- a/graphics/djview4/djview4.SlackBuild
+++ b/graphics/djview4/djview4.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for DjView4
-# Copyright 2008-2009 Murat D. Kadirov <banderols@gmail.com>
+# Copyright 2008-2010 Murat D. Kadirov <banderols@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,15 +24,13 @@
PRGNAM=djview4
VERSION=${VERSION:-4.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
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
@@ -71,6 +69,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+if [ "$QTDIR" == "/opt/kde3/lib/qt3" ]; then
+ QTDIR=$QT4DIR
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -101,10 +103,8 @@ cp $PKG/usr/share/djvu/djview4/desktop/hi32-djview4.png \
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYRIGHT COPYING INSTALL NEWS README* TODO $PKG/usr/doc/$PRGNAM-$VERSION