blob: 1549f627d5b8a17527b3ff2740eb3379c6fe4bdf (
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
66
67
|
# $NetBSD: Makefile,v 1.34 2008/05/26 02:13:20 joerg Exp $
DISTNAME= GMT4.1.4
PKGNAME= GMT-4.1.4
PKGREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.iris.washington.edu/pub/gmt/4/ \
ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/4/
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
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gmt.soest.hawaii.edu/
COMMENT= Generic Mapping Tools
EXTRACT_SUFX= .tar.bz2
DIST_SUBDIR= ${DISTNAME}
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pax
CONFIGURE_ARGS+=--includedir=${PREFIX}/include/gmt
CONFIGURE_ARGS+=--datadir=${PREFIX}/share/gmt
CONFIGURE_ARGS+=--enable-eps
CONFIGURE_ARGS+=--enable-netcdf=${BUILDLINK_PREFIX.netcdf:Q}
CONFIGURE_ARGS+=--enable-www=${PREFIX}/share/doc/html
CONFIGURE_ARGS+=--enable-mansect=1
CONFIGURE_ARGS+=--disable-mex
BUILD_TARGET= all suppl
INSTALL_TARGET= install-all
LIBS+= ${X11_LDFLAGS} # XXX: LDFLAGS doesn't work
post-extract:
${MV} -f ${WRKSRC}/www/gmt/doc/pdf ${WRKSRC}
${RM} -f ${WRKSRC}/examples/*.bat ${WRKSRC}/examples/*/*.bat
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gmt
cd ${WRKSRC}/pdf && ${INSTALL_DATA} GMT_Docs.pdf \
GMT_Tutorial.pdf ${PREFIX}/share/doc/gmt
(cd ${PREFIX}/share/doc/html/gmt/doc && ${LN} -sf \
../../../gmt pdf)
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gmt/tutorial
cd ${WRKSRC}/tutorial && ${INSTALL_DATA} bermuda.nc quakes.cpt \
ship.xyz us.nc data quakes.ngdc topo.cpt \
${PREFIX}/share/examples/gmt/tutorial;
${INSTALL_DATA_DIR} ${PREFIX}/share/gmt
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/share
cd ${WRKSRC}/share && pax -rw . ${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
${RM} ${PREFIX}/share/gmt/.gmtdefaults_SI.orig
${RM} ${PREFIX}/share/gmt/.gmtdefaults_US.orig
${RM} ${PREFIX}/share/gmt/gmt.conf.orig
cd ${WRKDIR}/share && pax -rw . ${PREFIX}/share/gmt
.include "../../devel/netcdf/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|