summaryrefslogtreecommitdiffstats
path: root/gis/GMT/GMT.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/GMT/GMT.SlackBuild')
-rw-r--r--gis/GMT/GMT.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/gis/GMT/GMT.SlackBuild b/gis/GMT/GMT.SlackBuild
index e3439958e4..a91b1f713f 100644
--- a/gis/GMT/GMT.SlackBuild
+++ b/gis/GMT/GMT.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=GMT
SRCNAM=gmt
-VERSION=${VERSION:-5.4.4}
+VERSION=${VERSION:-5.4.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -83,7 +83,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ "${SHEWCHUK:-no}" = "yes" ]; then
- LICFLAG="off"
+ LICFLAG="no"
else
LICFLAG="GPL"
fi
@@ -97,17 +97,22 @@ cd build
-DGMT_DATADIR=share/$SRCNAM \
-DGMT_DOCDIR=doc/$PRGNAM-$VERSION \
-DGMT_MANDIR=man \
- -DGSHHG_ROOT=$PKG/usr/share/$SRCNAM/gshhg \
-DDCW_ROOT=$PKG/usr/share/$SRCNAM/dcw \
+ -DGSHHG_ROOT=$PKG/usr/share/$SRCNAM/gshhg \
-DLICENSE_RESTRICTED=$LICFLAG \
-DCMAKE_BUILD_TYPE=Release ..
- make
+ make all
+ make docs_man
+ make docs_html
make install DESTDIR=$PKG
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
+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 $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild