diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2016-12-28 17:55:09 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-31 08:22:29 +0700 |
commit | 51d16425b53a423f24b8f245afd4751b59761e5d (patch) | |
tree | deac142fddeffe2165678c8e95af3d739d3be030 /graphics/nomacs/nomacs.SlackBuild | |
parent | ebf246f5e22bceddb76141da5c9a65f3a60a47bc (diff) | |
download | slackbuilds-51d16425b53a423f24b8f245afd4751b59761e5d.tar.gz |
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>
Diffstat (limited to 'graphics/nomacs/nomacs.SlackBuild')
-rw-r--r-- | graphics/nomacs/nomacs.SlackBuild | 18 |
1 files changed, 13 insertions, 5 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 |