pkgsrc/graphics/GMT/Makefile

64 lines
2.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.28 2006/03/04 21:29:45 jlam Exp $
DISTNAME= GMT3.4
PKGNAME= GMT-3.4
PKGREVISION= 1
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/
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
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gmt.soest.hawaii.edu/
COMMENT= Generic Mapping Tools
EXTRACT_SUFX= .tar.bz2
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
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
MAKE_ENV+= NETCDFHOME=${BUILDLINK_PREFIX.netcdf:Q}
MAKE_ENV+= LIBTOOL=${LIBTOOL:Q}
2001-01-27 11:36:53 +01:00
BUILD_TARGET= all suppl
INSTALL_TARGET= install-all
post-extract:
${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; \
done
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gmt
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)
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt/tutorial
cd ${WRKSRC}/tutorial && ${INSTALL_DATA} bermuda.grd quakes.cpt \
ship.xyz us.grd data quakes.ngdc \
${PREFIX}/share/examples/gmt/tutorial;
${INSTALL_DATA} ${WRKDIR}/share/* ${PREFIX}/share/gmt
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/examples/
cd ${WRKSRC}/examples && ${PAX} -rw . ${PREFIX}/share/examples/gmt
.include "../../devel/netcdf/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"