summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/nomacs/nomacs.SlackBuild18
-rw-r--r--graphics/nomacs/nomacs.info8
2 files changed, 18 insertions, 8 deletions
diff --git a/graphics/nomacs/nomacs.SlackBuild b/graphics/nomacs/nomacs.SlackBuild
index 96da775357..b1ca8917b6 100644
--- a/graphics/nomacs/nomacs.SlackBuild
+++ b/graphics/nomacs/nomacs.SlackBuild
@@ -1,6 +1,7 @@
#!/bin/sh
# Slackware build script for nomacs
+
# Copyright 2013-2016 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
@@ -22,13 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nomacs
-VERSION=${VERSION:-3.2.0}
+VERSION=${VERSION:-3.4}
+PVERSION=${PVERSION:-20161219_7c06c4c}
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
@@ -39,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -62,7 +64,10 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION/ImageLounge
+tar xvf $CWD/$PRGNAM-plugins-$PVERSION.tar.xz
+mv $PRGNAM-plugins-$PVERSION plugins
+cd ..
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -82,6 +87,9 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DENABLE_PAINT=0 \
+ -DENABLE_THRESHOLD=0 \
+ -DENABLE_TRANSFORM=0 \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
diff --git a/graphics/nomacs/nomacs.info b/graphics/nomacs/nomacs.info
index 0aed8571f5..abb1f6759f 100644
--- a/graphics/nomacs/nomacs.info
+++ b/graphics/nomacs/nomacs.info
@@ -1,8 +1,10 @@
PRGNAM="nomacs"
-VERSION="3.2.0"
+VERSION="3.4"
HOMEPAGE="http://www.nomacs.org"
-DOWNLOAD="https://github.com/nomacs/nomacs/archive/3.2.0.tar.gz"
-MD5SUM="34cb7b5eda0dfff9fa1038389a8c74ce"
+DOWNLOAD="https://github.com/nomacs/nomacs/archive/3.4.tar.gz \
+ http://ponce.cc/slackware/sources/repo/nomacs-plugins-20161219_7c06c4c.tar.xz"
+MD5SUM="5f1a6586f51cebd01cb2ab71b38de649 \
+ 4e613f7bf1aea7abe7677af2192246bd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="opencv qt5"