summaryrefslogtreecommitdiff
path: root/graphics/GMT/Makefile
diff options
context:
space:
mode:
authorjtb <jtb>2001-01-27 08:16:00 +0000
committerjtb <jtb>2001-01-27 08:16:00 +0000
commitaf4b841b2c96ead336d2c4acf2ec7ed9ca620a3f (patch)
tree46ffae04884c0d89db05f18a9dcb175c4c64fca2 /graphics/GMT/Makefile
parent0173e7817afb0adc8c62b09996214bbde8a716b5 (diff)
downloadpkgsrc-af4b841b2c96ead336d2c4acf2ec7ed9ca620a3f.tar.gz
Added the 39 supplemental programs, html documentation, and example scripts.
Diffstat (limited to 'graphics/GMT/Makefile')
-rw-r--r--graphics/GMT/Makefile69
1 files changed, 54 insertions, 15 deletions
diff --git a/graphics/GMT/Makefile b/graphics/GMT/Makefile
index 0e62ddfaa3c..9cb34b9e77d 100644
--- a/graphics/GMT/Makefile
+++ b/graphics/GMT/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2000/11/26 22:48:12 jtb Exp $
+# $NetBSD: Makefile,v 1.2 2001/01/27 08:16:00 jtb Exp $
DISTNAME= GMT3.3.6
PKGNAME= GMT-3.3.6
@@ -9,43 +9,82 @@ MASTER_SITES= ftp://gmt.soest.hawaii.edu/pub/gmt/ \
ftp://ftp.geologi.uio.no/pub/gmt/ \
ftp://life.csu.edu.au/pub/gmt/ \
ftp://ftp.eos.hokudai.ac.jp/pub/gmt/
-DISTFILES= GMT3.3.6_progs.tar.bz2 GMT3.3.6_doc.tar.bz2 GMT_share.tar.bz2
+DISTFILES= GMT3.3.6_progs.tar.bz2 GMT3.3.6_doc.tar.bz2 GMT_share.tar.bz2 \
+ GMT3.3.6_suppl.tar.bz2 GMT3.3.6_scripts.tar.bz2 \
+ GMT3.3.6_web.tar.bz2
MAINTAINER= jtb@netbsd.org
HOMEPAGE= http://imina.soest.hawaii.edu/gmt/
DEPENDS+= netcdf>=3.0:../../devel/netcdf
-BUILD_DEPENDS+= ${LOCALBASE}/bin/autoreconf:../../devel/autoconf
+BUILD_DEPENDS+= autoreconf:../../devel/autoconf
EXTRACT_SUFFIX= .tar.bz2
WRKSRC= ${WRKDIR}/${DISTNAME}
-
+USE_X11= YES
+USE_XAW= YES
DIST_SUBDIR= GMT
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
-EVAL_PREFIX+= NETCDF=netcdf
+EVAL_PREFIX+= NETCDF=netcdf BASH_PREFIX=bash
CONFIGURE_ARGS+="--includedir=${PREFIX}/include/gmt"
CONFIGURE_ARGS+="--datadir=${PREFIX}/share/gmt"
CONFIGURE_ARGS+="--enable-eps"
-INSTALL_TARGET= install install-man install-data
+CONFIGURE_ARGS+="--enable-www=${PREFIX}/share/doc/html"
+ALL_TARGET= all suppl
+INSTALL_TARGET= install-all
-pre-configure:
- @(cd ${WRKSRC} && ${LOCALBASE}/bin/autoreconf 2>/dev/null)
+post-extract:
+ ${MV} -f ${WRKSRC}/www/gmt/doc/ps/ ${WRKSRC}
+ for e in ${WRKSRC}/examples/*.bat ${WRKSRC}/examples/*/*.bat; do\
+ ${RM} -f $$e; \
+ done
+ for h in ${WRKSRC}/examples/do_view.bash \
+ ${WRKSRC}/examples/do_view.csh ; do \
+ ${SED} -e 's:ghostview:gv:g' < $$h > $$h.tmp && \
+ ${MV} -f $$h.tmp $$h; \
+ done
+.if exists(${BASH_PREFIX}/bin/bash)
+ for b in ${WKRSRC}/examples/*.bash ${WKRSRC}/examples/*/*.bash; do \
+ ${SED} -e 's:\/bin:'${BASH_PREFIX}':g' < $$b > $$b.tmp && \
+ ${MV} -f $$b.tmp $$b; \
+ done
+.endif
-do-build:
- @(cd ${WRKSRC}/src && ${MAKE})
+pre-configure:
+ (cd ${WRKSRC} && autoreconf)
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gmt
- @for f in GMT_Docs.ps GMT_Tutorial.ps ; do \
- ${INSTALL_DATA} ${WRKSRC}/www/gmt/doc/ps/$$f ${PREFIX}/share/doc/gmt; \
+ for f in GMT_Docs.ps GMT_Tutorial.ps ; do \
+ ${INSTALL_DATA} ${WRKSRC}/ps/$$f ${PREFIX}/share/doc/gmt; \
done
+ (cd ${PREFIX}/share/doc/html/gmt/gmt/doc && ${LN} -sf \
+ ../../../../gmt ps)
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt/tutorial
- @for f in bermuda.grd quakes.cpt ship.xyz us.grd data quakes.ngdc \
- topo.cpt ; do \
- ${INSTALL_DATA} ${WRKSRC}/tutorial/$$f ${PREFIX}/share/examples/gmt; \
+ for f in bermuda.grd quakes.cpt ship.xyz us.grd data quakes.ngdc \
+ topo.cpt ; do \
+ ${INSTALL_DATA} ${WRKSRC}/tutorial/$$f \
+ ${PREFIX}/share/examples/gmt/tutorial; \
done;
${INSTALL_DATA} ${WRKSRC}/../share/* ${PREFIX}/share/gmt
+ for i in ${WRKSRC}/examples/*.bash ${WRKSRC}/examples/*.csh \
+ ${WRKSRC}/examples/README.SCRIPTS ; do \
+ ${INSTALL_DATA} $$i ${PREFIX}/share/examples/gmt; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt
+ for f in README.SCRIPTS do_examples.bash do_examples.csh \
+ do_view.bash do_view.csh; do \
+ ${INSTALL_DATA} ${WRKSRC}/examples/$$f \
+ ${PREFIX}/share/examples/gmt; \
+ done
+ for i in 01 02 03 04 05 06 07 08 09 10 \
+ 11 12 13 14 15 16 17 18 19 20 ; do \
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt/ex$$i; \
+ for j in ${WRKSRC}/examples/ex$$i/* ; do \
+ ${INSTALL_DATA} $$j ${PREFIX}/share/examples/gmt/ex$$i; \
+ done; \
+ done
.include "../../mk/bsd.pkg.mk"