summaryrefslogtreecommitdiff
path: root/misc/dwdiff/dwdiff.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <jsun@freeshell.org>2010-05-11 22:24:29 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:29 +0200
commit5684cf8ecba823a940ae6a34ef96f993a6aa6834 (patch)
tree29f8dc0815597d62effeb47bc742c6553c02688a /misc/dwdiff/dwdiff.SlackBuild
parent009ed29d43c8083a27aef6d11dbd3d42b830c1fe (diff)
downloadslackbuilds-5684cf8ecba823a940ae6a34ef96f993a6aa6834.tar.gz
misc/dwdiff: Updated for version 1.4
Diffstat (limited to 'misc/dwdiff/dwdiff.SlackBuild')
-rw-r--r--misc/dwdiff/dwdiff.SlackBuild17
1 files changed, 15 insertions, 2 deletions
diff --git a/misc/dwdiff/dwdiff.SlackBuild b/misc/dwdiff/dwdiff.SlackBuild
index a1bd6fd9c9..54969883d4 100644
--- a/misc/dwdiff/dwdiff.SlackBuild
+++ b/misc/dwdiff/dwdiff.SlackBuild
@@ -5,7 +5,7 @@
# Released under the WTFPL
PRGNAM=dwdiff
-VERSION=1.3
+VERSION=1.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -19,6 +19,14 @@ 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
+
+if [[ -z $UNICODE ]]; then
+ UNICODE=without
+else
+ UNICODE=with
fi
set -e
@@ -39,9 +47,14 @@ find . \
# This is one messed up makefile
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure --prefix=/usr --mandir='$(prefix)/usr/man'
+./configure \
+ --${UNICODE}-unicode \
+ --prefix=/usr \
+ --mandir='$(prefix)/man'
+
make LINGUAS="${NLS:=""}" prefix=$PKG/usr
make LINGUAS="${NLS:=""}" prefix=$PKG/usr install
+
mv $PKG/usr/share/doc $PKG/usr
if [ -z "$NLS" ]; then # share/ will be empty
rmdir $PKG/usr/share