summaryrefslogtreecommitdiff
path: root/games/freeminer/freeminer.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/freeminer/freeminer.SlackBuild')
-rw-r--r--games/freeminer/freeminer.SlackBuild29
1 files changed, 18 insertions, 11 deletions
diff --git a/games/freeminer/freeminer.SlackBuild b/games/freeminer/freeminer.SlackBuild
index 461647ae40..174bec3a3e 100644
--- a/games/freeminer/freeminer.SlackBuild
+++ b/games/freeminer/freeminer.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for freeminer
-# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada
+# Copyright 2014-2015 Dimitris Zlatanidis Orestiada, Greece
+# I thank Larry Hajali for update to version 0.4.13.7
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=freeminer
-VERSION=${VERSION:-0.4.12.6}
+VERSION=${VERSION:-0.4.13.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,16 +68,27 @@ 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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Fix jsoncpp detection.
+sed -i 's|json/|jsoncpp/|' src/*.{h,cpp} src/script/*/*.cpp cmake/Modules/FindJson.cmake
mkdir -p build
cd build
cmake \
- -DRUN_IN_PLACE=0 \
+ -DRUN_IN_PLACE:BOOL=0 \
+ -DENABLE_SYSTEM_JSONCPP:BOOL=1 \
+ -DENABLE_SYSTEM_MSGPACK:BOOL=1 \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCUSTOM_BINDIR:PATH=games \
+ -DCUSTOM_MANDIR:PATH=man \
+ -DCUSTOM_LOCALEDIR:PATH=share/locale \
+ -DCUSTOM_DOCDIR:PATH=doc/$PRGNAM-$VERSION \
+ -DCUSTOM_EXAMPLE_CONF_DIR:PATH=doc/$PRGNAM-$VERSION \
-DCMAKE_BUILD_TYPE=Release ..
+
make
make install DESTDIR=$PKG
cd ..
@@ -84,15 +96,10 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/man
-mv $PKG/usr/share/man/man6 $PKG/usr/man
-rm -rf $PKG/usr/share/man
-
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE.txt README.md doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.txt *md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install