2012-10-06 16:10:39 +02:00
|
|
|
# $NetBSD: Makefile,v 1.33 2012/10/06 14:10:59 asau Exp $
|
2001-01-29 05:32:11 +01:00
|
|
|
|
|
|
|
DISTNAME= igmt_v1.2
|
2001-11-29 02:12:24 +01:00
|
|
|
PKGNAME= iGMT-1.2
|
2007-09-02 15:33:44 +02:00
|
|
|
PKGREVISION= 5
|
2001-01-29 05:32:11 +01:00
|
|
|
CATEGORIES= graphics
|
2006-10-04 23:35:58 +02:00
|
|
|
MASTER_SITES= http://www.gfz-potsdam.de/pb1/op/igmt/
|
2001-01-29 05:32:11 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:35:58 +02:00
|
|
|
HOMEPAGE= http://www.gfz-potsdam.de/pb1/op/igmt/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= Interactive Mapping of Geoscientific Datasets
|
2001-01-29 05:32:11 +01:00
|
|
|
|
2001-04-26 22:56:38 +02:00
|
|
|
DEPENDS+= GMT>=3.3.6:../../graphics/GMT
|
2005-01-08 20:15:47 +01:00
|
|
|
DEPENDS+= tcl>=8.0:../../lang/tcl
|
|
|
|
DEPENDS+= tk>=8.0:../../x11/tk
|
2001-01-29 05:32:11 +01:00
|
|
|
DEPENDS+= gv-[0-9]*:../../print/gv
|
2002-03-13 18:36:35 +01:00
|
|
|
DEPENDS+= ImageMagick>=5.3.9nb1:../../graphics/ImageMagick
|
2001-01-29 05:32:11 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/igmt_1.2
|
2001-05-19 19:48:27 +02:00
|
|
|
NO_BUILD= yes
|
2001-05-03 23:06:12 +02:00
|
|
|
|
2007-09-02 15:33:44 +02:00
|
|
|
USE_TOOLS+= gs:run ksh:run
|
2001-05-03 23:06:12 +02:00
|
|
|
GMT_PREFIX_DEFAULT= ${LOCALBASE}
|
|
|
|
EVAL_PREFIX+= GMT_PREFIX=GMT
|
|
|
|
EVAL_PREFIX+= TK_PREFIX=tk
|
2007-09-02 15:33:44 +02:00
|
|
|
|
|
|
|
REPLACE_KSH= igmt igmt_helper* img2latlongrd.batch
|
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
2001-01-29 05:32:11 +01:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
for i in ${WRKSRC}/igmt ${WRKSRC}/igmt_configure.tcl; do \
|
|
|
|
${SED} -e 's:@PREFIX@:'${PREFIX}':g' \
|
|
|
|
-e 's:@GMT_PREFIX@:'${GMT_PREFIX}':g' \
|
|
|
|
-e 's:@TK_PREFIX@:'${TK_PREFIX}':g' \
|
2001-04-26 22:56:38 +02:00
|
|
|
$$i > $$i.tmp && ${MV} -f $$i.tmp $$i; \
|
2001-01-29 05:32:11 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
do-install:
|
2008-03-04 16:39:09 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/igmt ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/igmt
|
2001-04-26 22:56:38 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} manual.ps README.TXT NOTES.TXT \
|
2008-03-04 16:39:09 +01:00
|
|
|
COPYING COPYRIGHT ${DESTDIR}${PREFIX}/share/igmt/
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/igmt/colormaps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/colormaps/* \
|
|
|
|
${DESTDIR}${PREFIX}/share/igmt/colormaps/
|
2001-05-07 14:00:58 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_SCRIPT} igmt*.tcl *.awk \
|
2008-03-04 16:39:09 +01:00
|
|
|
igmt_helper* *.batch ${DESTDIR}${PREFIX}/share/igmt/
|
2001-05-07 14:00:58 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} 01_02-98.cmt \
|
2001-04-26 22:56:38 +02:00
|
|
|
gps.vel hotspots.dat nuvel.yx igmt_def.gif \
|
|
|
|
allslabs_rum.gmt volcanoes.dat wcity.dat \
|
|
|
|
wcity_major.dat igmt_gmtdefaults_3.0 \
|
|
|
|
igmt_gmtdefaults_3.1 igmt_gmtdefaults_3.2 \
|
2008-03-04 16:39:09 +01:00
|
|
|
igmt_gmtdefaults_3.3 ${DESTDIR}${PREFIX}/share/igmt/
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/igmt
|
2001-04-26 22:56:38 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} example*.ps.gz \
|
2008-03-04 16:39:09 +01:00
|
|
|
${WRKSRC}/example*.dat \
|
|
|
|
${DESTDIR}${PREFIX}/share/examples/igmt/
|
2001-01-29 05:32:11 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|