blob: 4fa5445df2266fccaaf34f29a1421cf1ce66fe86 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Created by: sec@42.org
# $FreeBSD$
PORTNAME= gmt
PORTVERSION= 4.5.14
DISTVERSIONSUFFIX= -src
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.soest.hawaii.edu/%SUBDIR%/ \
ftp://ftp.geologi.uio.no/pub/%SUBDIR%/ \
ftp://ftp.iag.usp.br/%SUBDIR%/ \
ftp://ftp.scc.u-tokai.ac.jp/pub/%SUBDIR%/ \
http://gd.tuwien.ac.at/graphics/visual/%SUBDIR%/ \
http://gmt.mirror.ac.za/%SUBDIR%/ \
ftp://ftp.soest.hawaii.edu/gshhg/:gshhg \
ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/:gshhg
MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/legacy
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${GSHHG_DISTNAME}.tar.gz:gshhg
MAINTAINER= ports@FreeBSD.org
COMMENT= Generic Mapping Tools - data processing and display software package
LICENSE= GPLv2 LGPL3
LICENSE_COMB= multi
LICENSE_DISTFILES_GPLv2= ${DISTNAME}${EXTRACT_SUFX}
LICENSE_DISTFILES_LGPL3= ${GSHHG_DISTNAME}${EXTRACT_SUFX}
LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= autoreconf:build gmake pkgconfig shebangfix tar:bzip2
SHEBANG_FILES= gmtswitch doc/examples/*/*.sh src/GMT.in \
src/gmt_shell_functions.sh.in src/gmtget.in \
src/gmtlogo.in src/isogmt.in
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${DATADIR} \
--with-gshhg-dir=${DATADIR}/coast
INSTALL_TARGET= install-gmt install-data install-man install-doc
MAKE_JOBS_UNSAFE= yes
PORTDOCS= *
PORTSCOUT= limitw:0,even
OPTIONS_DEFINE= DEBUG DOCS EPS GDAL IMPERIAL OCTAVE SHARED X11
OPTIONS_DEFAULT= GDAL SHARED X11
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ON= --enable-debug --enable-devdebug
EPS_DESC= Set .eps as default output format, otherwise .ps
EPS_CONFIGURE_ON= --enable-eps
GDAL_DESC= Compile in experimental GDAL support
GDAL_LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal
GDAL_CONFIGURE_ON= --enable-gdal
IMPERIAL_DESC= Choose Imperial (inch) units over metric (cm)
IMPERIAL_CONFIGURE_ON= --enable-US
OCTAVE_DESC= Build GMT-octave interface
OCTAVE_RUN_DEPENDS= octave:${PORTSDIR}/math/octave
OCTAVE_CONFIGURE_ON= --enable-octave --enable-mex
OCTAVE_CONFIGURE_OFF= --disable-mex
SHARED_DESC= Build shared (dynamic) libraries
SHARED_CONFIGURE_ON= --enable-shared
SHARED_USE= LDCONFIG=yes
X11_USE= XORG=x11,xaw,xmu,xt
X11_CONFIGURE_OFF= --disable-xgrid
STRIP_BINS= blockmean blockmedian blockmode filter1d fitcircle \
gmt2rgb gmtconvert gmtdefaults gmtmath gmtselect \
gmtset grd2cpt grd2xyz grdblend grdclip \
grdcontour grdcut grdedit grdfft grdfilter \
grdgradient grdhisteq grdimage grdinfo grdlandmask \
grdmask grdmath grdpaste grdproject grdreformat \
grdsample grdtrack grdtrend grdvector grdview \
grdvolume greenspline makecpt mapproject minmax \
nearneighbor project ps2raster psbasemap psclip \
pscoast pscontour pshistogram psimage pslegend \
psmask psrose psscale pstext pswiggle \
psxy psxyz sample1d spectrum1d splitxyz \
surface trend1d trend2d triangulate xyz2grd
STRIP_LIBS= libgmt.so.4 libgmtps.so.4 libpsl.so.4
# http://www.soest.hawaii.edu/pwessel/gshhg/
GSHHG_DISTNAME= gshhg-gmt-2.3.4
pre-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} AUTOHEADER="${TRUE}" \
${AUTORECONF} -f -i)
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/coast
(cd ${WRKDIR}/${GSHHG_DISTNAME} && ${INSTALL_DATA} README.TXT *.nc \
${STAGEDIR}${DATADIR}/coast)
.for i in ${STRIP_BINS}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
post-install-X11-on:
(cd ${WRKSRC}/src/xgrid && ${INSTALL_PROGRAM} xgridedit \
${STAGEDIR}${PREFIX}/bin)
post-install-SHARED-on:
.for i in ${STRIP_LIBS}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${i}
.endfor
.include <bsd.port.mk>
|