diff options
Diffstat (limited to 'gis/qmapshack/qmapshack.SlackBuild')
-rw-r--r-- | gis/qmapshack/qmapshack.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/gis/qmapshack/qmapshack.SlackBuild b/gis/qmapshack/qmapshack.SlackBuild index af723abc20b7c..e8e62e063298e 100644 --- a/gis/qmapshack/qmapshack.SlackBuild +++ b/gis/qmapshack/qmapshack.SlackBuild @@ -10,7 +10,7 @@ # http://sam.zoy.org/wtfpl/COPYING for more details. PRGNAM=qmapshack -VERSION=${VERSION:-1.13.1} +VERSION=${VERSION:-1.13.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -48,7 +48,18 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +cd ${PRGNAM}-V_${VERSION} + +# Patches provided in the source tree +patch -p1 < FindPROJ4.patch +patch -p1 < FindQuaZip5.patch +# Further patches and graphics required to build +patch -p1 < ${CWD}/addqmaptool.patch +patch -p1 < ${CWD}/qmt_map2jnx.patch +patch -p1 < ${CWD}/rgb2pct.patch +mkdir -p src/qmaptool/pic +cp ${CWD}/splash.png ${CWD}/line_3px_horizontal.png ${CWD}/line_3px_vertical.png src/qmaptool/pic + chown -R root:root . find -L . \ @@ -57,10 +68,6 @@ 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 {} \; -# Qmapshack expects proj to provide package information files created by cmake, the proj version on slackbuilds.org, however, is -# built using autotools, thus the config script fails. Again, thx to pAcAs for the hint. -cat $CWD/FindPROJ4.cmake > cmake/Modules/FindPROJ4.cmake - mkdir -p build cd build cmake \ |