summaryrefslogtreecommitdiff
path: root/office/vym/vym.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:39:29 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:39:29 +0200
commit5cfebcb29d207e4239a1760043e5a71c9df342c2 (patch)
tree6f6f13c62ee7915cae3047a060ad2560dbb205c1 /office/vym/vym.SlackBuild
parent6fdc8e28a7f3fdc478572aa19f172b0efdcce036 (diff)
downloadslackbuilds-5cfebcb29d207e4239a1760043e5a71c9df342c2.tar.gz
office/vym: Updated for version 1.12.6
Diffstat (limited to 'office/vym/vym.SlackBuild')
-rw-r--r--office/vym/vym.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/office/vym/vym.SlackBuild b/office/vym/vym.SlackBuild
index cdc0f76dd9..fe2fe3b054 100644
--- a/office/vym/vym.SlackBuild
+++ b/office/vym/vym.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for vym
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=vym
-VERSION=1.12.2
+VERSION=1.12.6
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -35,10 +35,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
@@ -56,12 +59,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-qmake-qt4 \
+qmake \
+ QMAKE_CFLAGS+="$SLKCFLAGS" \
+ QMAKE_CXXFLAGS+="$SLKCFLAGS" \
PREFIX=/usr \
DOCDIR=/usr/doc/$PRGNAM-$VERSION
-sed -i "s|-pipe -g -Wall|$SLKCFLAGS -pipe -g -Wall|g" Makefile
-
make
make install INSTALL_ROOT=$PKG
@@ -83,4 +86,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}