2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.28 2006/03/04 21:29:45 jlam Exp $
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2001-04-19 22:51:30 +02:00
|
|
|
DISTNAME= GMT3.4
|
|
|
|
PKGNAME= GMT-3.4
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 1
|
2000-11-26 23:48:12 +01:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ftp://gmt.soest.hawaii.edu/pub/gmt/ \
|
|
|
|
ftp://falcon.grdl.noaa.gov/pub/gmt/ \
|
|
|
|
ftp://ftp.iag.usp.br/pub/gmt/ \
|
|
|
|
ftp://ftp.geologi.uio.no/pub/gmt/ \
|
|
|
|
ftp://life.csu.edu.au/pub/gmt/ \
|
|
|
|
ftp://ftp.eos.hokudai.ac.jp/pub/gmt/
|
2001-04-19 22:51:30 +02:00
|
|
|
DISTFILES= GMT3.4_progs.tar.bz2 GMT3.4_suppl.tar.bz2 GMT_share.tar.bz2 \
|
|
|
|
GMT3.4_ps.tar.bz2 GMT3.4_man.tar.bz2 GMT3.4_tut.tar.bz2 \
|
|
|
|
GMT3.4_scripts.tar.bz2 GMT3.4_web.tar.bz2
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-04-20 23:57:39 +02:00
|
|
|
HOMEPAGE= http://gmt.soest.hawaii.edu/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= Generic Mapping Tools
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2004-07-09 18:51:59 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2001-04-19 22:51:30 +02:00
|
|
|
DIST_SUBDIR= ${DISTNAME}
|
|
|
|
|
2001-04-13 02:56:26 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2001-05-03 23:06:12 +02:00
|
|
|
|
2001-04-19 22:51:30 +02:00
|
|
|
CONFIGURE_ARGS+=--includedir=${PREFIX}/include/gmt
|
|
|
|
CONFIGURE_ARGS+=--datadir=${PREFIX}/share/gmt
|
|
|
|
CONFIGURE_ARGS+=--enable-eps
|
|
|
|
CONFIGURE_ARGS+=--enable-www=${PREFIX}/share/doc/html
|
|
|
|
CONFIGURE_ARGS+=--enable-mansect=1
|
2005-06-22 10:34:54 +02:00
|
|
|
MAKE_ENV+= NETCDFHOME=${BUILDLINK_PREFIX.netcdf:Q}
|
|
|
|
MAKE_ENV+= LIBTOOL=${LIBTOOL:Q}
|
2001-01-27 11:36:53 +01:00
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= all suppl
|
2001-01-27 09:16:00 +01:00
|
|
|
INSTALL_TARGET= install-all
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2001-01-27 09:16:00 +01:00
|
|
|
post-extract:
|
2006-01-15 20:50:45 +01:00
|
|
|
${MV} -f ${WRKSRC}/www/gmt/doc/ps ${WRKSRC}
|
2001-04-13 02:56:26 +02:00
|
|
|
${RM} -f ${WRKSRC}/examples/*.bat ${WRKSRC}/examples/*/*.bat
|
|
|
|
for f in ${WRKSRC}/examples/do_view.bash \
|
|
|
|
${WRKSRC}/examples/do_view.csh; do \
|
|
|
|
${SED} -e 's:ghostview:gv:g' $$f > $$f.tmp && \
|
|
|
|
${MV} -f $$f.tmp $$f; \
|
2001-01-27 09:16:00 +01:00
|
|
|
done
|
2000-11-26 23:48:12 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gmt
|
2001-04-19 22:51:30 +02:00
|
|
|
cd ${WRKSRC}/ps && ${INSTALL_DATA} GMT_Docs.ps GMT_Tutorial.ps \
|
|
|
|
${PREFIX}/share/doc/gmt
|
2001-01-27 10:01:01 +01:00
|
|
|
(cd ${PREFIX}/share/doc/html/gmt/doc && ${LN} -sf \
|
|
|
|
../../../gmt ps)
|
2000-11-26 23:48:12 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt/tutorial
|
2001-04-19 22:51:30 +02:00
|
|
|
cd ${WRKSRC}/tutorial && ${INSTALL_DATA} bermuda.grd quakes.cpt \
|
|
|
|
ship.xyz us.grd data quakes.ngdc \
|
|
|
|
${PREFIX}/share/examples/gmt/tutorial;
|
2005-11-03 23:30:35 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/share/* ${PREFIX}/share/gmt
|
2001-01-27 09:16:00 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt
|
2001-04-19 22:51:30 +02:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/examples/
|
2001-11-14 15:47:53 +01:00
|
|
|
cd ${WRKSRC}/examples && ${PAX} -rw . ${PREFIX}/share/examples/gmt
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2005-04-05 12:17:47 +02:00
|
|
|
.include "../../devel/netcdf/buildlink3.mk"
|
2000-11-26 23:48:12 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|