blob: 51246beb2aacfa9ab0fc19bef4b0b0473b710f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.18 2003/06/02 01:19:33 jschauma Exp $
DISTNAME= GMT3.4
PKGNAME= GMT-3.4
WRKSRC= ${WRKDIR}/${DISTNAME}
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= tech-pkg@netbsd.org
HOMEPAGE= http://gmt.soest.hawaii.edu/
COMMENT= Generic Mapping Tools
DEPENDS+= netcdf>=3.4:../../devel/netcdf
EXTRACT_SUFFIX= .tar.bz2
DIST_SUBDIR= ${DISTNAME}
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
NETCDF_DEFAULT= ${LOCALBASE}
EVAL_PREFIX+= NETCDF=netcdf
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
ALL_TARGET= all suppl
INSTALL_TARGET= install-all
post-extract:
${MV} -f ${WRKSRC}/www/gmt/doc/ps/ ${WRKSRC}
${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
(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} ${WRKSRC}/../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 "../../mk/bsd.pkg.mk"
|