pkgsrc/graphics/iGMT/Makefile
jtb 02fcf56cb1 Install the docs in ${PREFIX}/share/igmt. Some of the help expects them
to be there, it's not the modifications to put them in
${PREFIX}/share/doc/igmt.  Bump version number.
2001-05-19 17:48:27 +00:00

53 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2001/05/19 17:48:27 jtb Exp $
DISTNAME= igmt_v1.2
PKGNAME= iGMT-1.2nb1
CATEGORIES= graphics
MASTER_SITES= http://op.gfz-potsdam.de/igmt/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://op.gfz-potsdam.de/igmt/
COMMENT= Interactive Mapping of Geoscientific Datasets
DEPENDS+= GMT>=3.3.6:../../graphics/GMT
DEPENDS+= tcl>=8.0:../../lang/tcl
DEPENDS+= tk>=8.0:../../x11/tk
DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript
DEPENDS+= gv-[0-9]*:../../print/gv
DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
WRKSRC= ${WRKDIR}/igmt_1.2
NO_BUILD= yes
GMT_PREFIX_DEFAULT= ${LOCALBASE}
EVAL_PREFIX+= GMT_PREFIX=GMT
EVAL_PREFIX+= TK_PREFIX=tk
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' \
$$i > $$i.tmp && ${MV} -f $$i.tmp $$i; \
done
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/igmt ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/igmt
cd ${WRKSRC} && ${INSTALL_DATA} manual.ps README.TXT NOTES.TXT \
COPYING COPYRIGHT ${PREFIX}/share/igmt/
${INSTALL_DATA_DIR} ${PREFIX}/share/igmt/colormaps
${INSTALL_DATA} ${WRKSRC}/colormaps/* ${PREFIX}/share/igmt/colormaps/
cd ${WRKSRC} && ${INSTALL_SCRIPT} igmt*.tcl *.awk \
igmt_helper* *.batch ${PREFIX}/share/igmt/
cd ${WRKSRC} && ${INSTALL_DATA} 01_02-98.cmt \
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 \
igmt_gmtdefaults_3.3 ${PREFIX}/share/igmt/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/igmt
cd ${WRKSRC} && ${INSTALL_DATA} example*.ps.gz \
${WRKSRC}/example*.dat ${PREFIX}/share/examples/igmt/
.include "../../mk/bsd.pkg.mk"