summaryrefslogtreecommitdiffstats
path: root/graphics/fotoxx/fotoxx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fotoxx/fotoxx.SlackBuild')
-rw-r--r--graphics/fotoxx/fotoxx.SlackBuild42
1 files changed, 34 insertions, 8 deletions
diff --git a/graphics/fotoxx/fotoxx.SlackBuild b/graphics/fotoxx/fotoxx.SlackBuild
index 488d45894a..5000136fcf 100644
--- a/graphics/fotoxx/fotoxx.SlackBuild
+++ b/graphics/fotoxx/fotoxx.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for fotoxx
-# Copyright 2010-2014 Robby Workman, Northport, Alabama, USA
+# Copyright 2010-2016 Robby Workman, Tuscaloosa, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fotoxx
-VERSION=${VERSION:-14.01.1}
+VERSION=${VERSION:-16.01.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+MAPSRC=$PRGNAM-maps
+MAPVERS=${MAPVERS:-1.1}
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -58,6 +61,8 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
+
+# Install fotoxx
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
@@ -69,18 +74,39 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# No thanks, we'll handle the deps
-printf "#!/bin/sh\n/bin/true\n" > dependencies.sh
-
-# Install the "normal" stuff and manual page
+make \
+ CPPFLAGS="$SLKCFLAGS" \
+ PREFIX=/usr \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ MANDIR=/usr/man/man1
make install \
- CXXFLAGS="$SLKCFLAGS -Wno-deprecated-declarations" \
- LDFLAGS="$SLKCFLAGS -Wall -rdynamic" \
PREFIX=/usr \
DOCDIR=/usr/doc/$PRGNAM-$VERSION \
MANDIR=/usr/man/man1 \
DESTDIR=$PKG
+# Install the fotoxx-maps stuff
+cd $TMP
+rm -rf $MAPSRC-$MAPVERS
+tar xvf $CWD/$MAPSRC-$MAPVERS.tar.gz
+cd $MAPSRC-$MAPVERS
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+make \
+ PREFIX=/usr \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION/$MAPSRC \
+ MANDIR=/usr/man/man1
+make install \
+ PREFIX=/usr \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION/$MAPSRC \
+ MANDIR=/usr/man/man1 \
+ DESTDIR=$PKG
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true