diff options
Diffstat (limited to 'gis/qgis/qgis.SlackBuild')
-rwxr-xr-x[-rw-r--r--] | gis/qgis/qgis.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gis/qgis/qgis.SlackBuild b/gis/qgis/qgis.SlackBuild index 1b6bd785c6ade..0de4b5e79dfd5 100644..100755 --- a/gis/qgis/qgis.SlackBuild +++ b/gis/qgis/qgis.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qgis -VERSION=${VERSION:-2.18.4} +VERSION=${VERSION:-2.18.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -81,6 +81,11 @@ if [ "${SERVER:-no}" = "yes" ]; then WITHSERVER="-DWITH_SERVER=TRUE -DQGIS_CGIBIN_SUBDIR=$CGIBINDIR" fi +WITHNINJA="" +if [ "${NINJA:-no}" = "yes" ]; then + WITHNINJA="-GNinja" +fi + # fix double qjson target patch -p1 < $CWD/qjson.cmake.diff @@ -91,7 +96,6 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \ -DQGIS_LIB_SUBDIR=lib${LIBDIRSUFFIX} \ -DQGIS_LIBEXEC_SUBDIR=lib${LIBDIRSUFFIX}/qgis \ -DQGIS_PLUGIN_SUBDIR=lib${LIBDIRSUFFIX}/qgis \ @@ -99,8 +103,14 @@ cd build -DQWTPOLAR_INCLUDE_DIR=/usr/include/qwt \ -DENABLE_TESTS=FALSE \ $WITHSERVER \ - $WITHGRASS - make install DESTDIR=$PKG + $WITHGRASS \ + $WITHNINJA + + if [ -z "$WITHNINJA" ]; then + make install DESTDIR=$PKG + else + DESTDIR=$PKG ninja install + fi cd - find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ |