2013-09-01 14:14:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.40 2013/09/01 12:14:06 obache Exp $
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2006-11-14 14:16:00 +01:00
|
|
|
DISTNAME= GMT4.1.4
|
|
|
|
PKGNAME= GMT-4.1.4
|
2013-09-01 14:14:06 +02:00
|
|
|
PKGREVISION= 3
|
2000-11-26 23:48:12 +01:00
|
|
|
CATEGORIES= graphics
|
2011-10-12 00:56:33 +02:00
|
|
|
MASTER_SITES= ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/4/ \
|
|
|
|
ftp://ftp.iris.washington.edu/pub/gmt/4/
|
2006-11-14 14:16:00 +01:00
|
|
|
DISTFILES= GMT4.1.4_man.tar.bz2 GMT4.1.4_pdf.tar.bz2 \
|
|
|
|
GMT4.1.4_scripts.tar.bz2 GMT4.1.4_share.tar.bz2 \
|
|
|
|
GMT4.1.4_src.tar.bz2 GMT4.1.4_suppl.tar.bz2 \
|
|
|
|
GMT4.1.4_tut.tar.bz2 GMT4.1.4_web.tar.bz2 \
|
|
|
|
GMT4.1_coast.tar.bz2 GMT4.1_high.tar.bz2 \
|
|
|
|
GMT4.1_full.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
|
|
|
|
2009-06-05 12:10:28 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
2008-06-12 04:14:13 +02: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
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
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
|
2006-11-14 14:16:00 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-netcdf=${BUILDLINK_PREFIX.netcdf:Q}
|
2001-04-19 22:51:30 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-www=${PREFIX}/share/doc/html
|
|
|
|
CONFIGURE_ARGS+=--enable-mansect=1
|
2006-11-14 14:16:00 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-mex
|
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
|
2007-10-10 23:48:42 +02:00
|
|
|
LIBS+= ${X11_LDFLAGS} # XXX: LDFLAGS doesn't work
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2001-01-27 09:16:00 +01:00
|
|
|
post-extract:
|
2006-11-14 14:16:00 +01:00
|
|
|
${MV} -f ${WRKSRC}/www/gmt/doc/pdf ${WRKSRC}
|
2001-04-13 02:56:26 +02:00
|
|
|
${RM} -f ${WRKSRC}/examples/*.bat ${WRKSRC}/examples/*/*.bat
|
2000-11-26 23:48:12 +01:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
INSTALLATION_DIRS= share/doc/gmt share/examples/gmt/tutorial share/gmt
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
rm -f ${WRKSRC}/share/.gmtdefaults_SI.orig
|
|
|
|
rm -f ${WRKSRC}/share/.gmtdefaults_US.orig
|
|
|
|
rm -f ${WRKSRC}/share/gmt.conf.orig
|
|
|
|
|
2000-11-26 23:48:12 +01:00
|
|
|
post-install:
|
2006-11-14 14:16:00 +01:00
|
|
|
cd ${WRKSRC}/pdf && ${INSTALL_DATA} GMT_Docs.pdf \
|
2008-06-12 04:14:13 +02:00
|
|
|
GMT_Tutorial.pdf ${DESTDIR}${PREFIX}/share/doc/gmt
|
|
|
|
ln -sf ../../../gmt ${DESTDIR}${PREFIX}/share/doc/html/gmt/doc/pdf
|
2006-11-14 14:16:00 +01:00
|
|
|
cd ${WRKSRC}/tutorial && ${INSTALL_DATA} bermuda.nc quakes.cpt \
|
|
|
|
ship.xyz us.nc data quakes.ngdc topo.cpt \
|
2008-06-12 04:14:13 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/gmt/tutorial;
|
|
|
|
cd ${WRKSRC}/share && pax -rw . ${DESTDIR}${PREFIX}/share/gmt
|
|
|
|
cd ${WRKDIR}/share && pax -rw . ${DESTDIR}${PREFIX}/share/gmt
|
|
|
|
cd ${WRKSRC}/examples && pax -rw . ${DESTDIR}${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"
|
2007-02-15 15:58:19 +01:00
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
|
|
.include "../../x11/libXp/buildlink3.mk"
|
2000-11-26 23:48:12 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|