1 # $NetBSD: Makefile,v 1.38 2011/10/11 22:56:33 zafer Exp $
7 MASTER_SITES
= ftp
://ftp.scc.u-tokai.ac.jp
/pub
/gmt
/4/ \
8 ftp
://ftp.iris.washington.edu
/pub
/gmt
/4/
9 DISTFILES
= GMT4.1
.4_man.
tar.bz2 GMT4.1
.4_pdf.
tar.bz2 \
10 GMT4.1
.4_scripts.
tar.bz2 GMT4.1
.4_share.
tar.bz2 \
11 GMT4.1
.4_src.
tar.bz2 GMT4.1
.4_suppl.
tar.bz2 \
12 GMT4.1
.4_tut.
tar.bz2 GMT4.1
.4_web.
tar.bz2 \
13 GMT4.1_coast.
tar.bz2 GMT4.1_high.
tar.bz2 \
16 MAINTAINER
= pkgsrc-users@NetBSD.org
17 HOMEPAGE
= http
://gmt.soest.hawaii.edu
/
18 COMMENT
= Generic Mapping Tools
22 EXTRACT_SUFX
= .
tar.bz2
23 DIST_SUBDIR
= ${DISTNAME}
29 CONFIGURE_ARGS
+=--includedir=${PREFIX}/include/gmt
30 CONFIGURE_ARGS
+=--datadir=${PREFIX}/share
/gmt
31 CONFIGURE_ARGS
+=--enable-eps
32 CONFIGURE_ARGS
+=--enable-netcdf
=${BUILDLINK_PREFIX.netcdf
:Q
}
33 CONFIGURE_ARGS
+=--enable-www
=${PREFIX}/share
/doc
/html
34 CONFIGURE_ARGS
+=--enable-mansect
=1
35 CONFIGURE_ARGS
+=--disable-mex
37 BUILD_TARGET
= all suppl
38 INSTALL_TARGET
= install-all
39 LIBS
+= ${X11_LDFLAGS} # XXX: LDFLAGS doesn't work
42 ${MV} -f
${WRKSRC}/www
/gmt
/doc
/pdf
${WRKSRC}
43 ${RM} -f
${WRKSRC}/examples
/*.bat
${WRKSRC}/examples
/*/*.bat
45 INSTALLATION_DIRS
= share
/doc
/gmt share
/examples
/gmt
/tutorial share
/gmt
48 rm -f
${WRKSRC}/share
/.gmtdefaults_SI.orig
49 rm -f
${WRKSRC}/share
/.gmtdefaults_US.orig
50 rm -f
${WRKSRC}/share
/gmt.conf.orig
53 cd
${WRKSRC}/pdf
&& ${INSTALL_DATA} GMT_Docs.pdf \
54 GMT_Tutorial.pdf
${DESTDIR}${PREFIX}/share
/doc
/gmt
55 ln
-sf ..
/..
/..
/gmt
${DESTDIR}${PREFIX}/share
/doc
/html
/gmt
/doc
/pdf
56 cd
${WRKSRC}/tutorial
&& ${INSTALL_DATA} bermuda.nc quakes.cpt \
57 ship.xyz us.nc data quakes.ngdc topo.cpt \
58 ${DESTDIR}${PREFIX}/share
/examples
/gmt
/tutorial
;
59 cd
${WRKSRC}/share
&& pax
-rw .
${DESTDIR}${PREFIX}/share
/gmt
60 cd
${WRKDIR}/share
&& pax
-rw .
${DESTDIR}${PREFIX}/share
/gmt
61 cd
${WRKSRC}/examples
&& pax
-rw .
${DESTDIR}${PREFIX}/share
/examples
/gmt
63 .
include "../../devel/netcdf/buildlink3.mk"
64 .
include "../../x11/libXaw/buildlink3.mk"
65 .
include "../../x11/libXp/buildlink3.mk"
66 .
include "../../mk/bsd.pkg.mk"