diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2019-02-17 17:51:14 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-02-23 08:26:58 +0700 |
commit | 46a459aa5e51d3e82a41c7b0f89da0dc689c0585 (patch) | |
tree | 34541e3dab722ea6aa53924a5fdaa024938441ab /misc/subsurface/subsurface.SlackBuild | |
parent | 3776713bf28d09b07c57a746cb86540d05806ec5 (diff) |
misc/subsurface: Updated for version 4.8.5
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'misc/subsurface/subsurface.SlackBuild')
-rw-r--r-- | misc/subsurface/subsurface.SlackBuild | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/misc/subsurface/subsurface.SlackBuild b/misc/subsurface/subsurface.SlackBuild index f8665f2141dcc..48c8b25e9333d 100644 --- a/misc/subsurface/subsurface.SlackBuild +++ b/misc/subsurface/subsurface.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for subsurface -# Copyright 2014-2018 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2014-2019 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,8 +24,8 @@ PRGNAM=subsurface SRCNAM=Subsurface -VERSION=${VERSION:-4.8.4} -MD5LONG=${MD5LONG:-54a357f9590d9cf011bf1713589f66bad65e00eb} +VERSION=${VERSION:-4.8.5} +GOOGLEMAPSVER=${MD5LONG:-0.0.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -65,7 +65,7 @@ rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tgz cd $SRCNAM-$VERSION tar xvf $CWD/libdivecomputer-$PRGNAM-branch-$VERSION.tgz -tar xvf $CWD/googlemaps-$MD5LONG.tar.gz +tar xvf $CWD/googlemaps-v.${GOOGLEMAPSVER}.tar.gz chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -82,37 +82,37 @@ sed -e 's|grantlee/|Grantlee5/grantlee/|' \ > grantlee_templates_local.h # Fix the location detection of googlemaps -sed -i "s|../install-root|googlemaps-$MD5LONG|" CMakeLists.txt +sed -i "s|../install-root|googlemaps-v.${GOOGLEMAPSVER}|" CMakeLists.txt # We already have packages for libdivecomputer and marble on the system. # Subsurface requires newer (custom) packages then what is currently available, # so we're going to compile them into the Subsurface package. # Similar to packaging/ubuntu/debian/rules. cd libdivecomputer-$PRGNAM-branch-$VERSION -if [ ! -f configure ]; then - autoreconf -ivf -fi -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --enable-static=yes \ - --enable-shared=no \ - --enable-logging=no \ - --disable-silent-rules - -make -make install DESTDIR="$PWD/.." + if [ ! -f configure ]; then + autoreconf -ivf + fi + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --enable-static=yes \ + --enable-shared=no \ + --enable-logging=no \ + --disable-silent-rules + + make + make install DESTDIR="$PWD/.." cd - # Build qt5 locations googlemaps plugin -cd googlemaps-$MD5LONG -qmake-qt5 QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXLAGS+="$SLKCFLAGS" \ - -o Makefile googlemaps.pro +cd googlemaps-v.${GOOGLEMAPSVER} + qmake-qt5 QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXLAGS+="$SLKCFLAGS" \ + -o Makefile googlemaps.pro -make -make install INSTALL_ROOT=$PKG + make + make install INSTALL_ROOT=$PKG cd - # Build subsurface with libftdi support. Default is no. @@ -136,6 +136,7 @@ cd build -DFTDISUPPORT:BOOL="$FTDISUPPORT" \ -DUSE_WEBENGINE:BOOL="$QWEBSUPPORT" \ -DMAKE_TESTS:BOOL=OFF \ + -DLIBGIT2_DYNAMIC:BOOL=ON \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DLIBDIVECOMPUTER_INCLUDE_DIR="../usr/include" \ |