graphics/nomacs: Updated for version 3.4.

Build the plugins too, also if most of them
don't seem to work yet...

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2016-12-28 17:55:09 +01:00 committed by Willy Sudiarto Raharjo
parent ebf246f5e2
commit 51d16425b5
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 18 additions and 8 deletions

View File

@ -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

View File

@ -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"