Lines 2-9
Link Here
|
2 |
# $FreeBSD: head/graphics/gmt/Makefile 403689 2015-12-13 20:42:23Z bapt $ |
2 |
# $FreeBSD: head/graphics/gmt/Makefile 403689 2015-12-13 20:42:23Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= gmt |
4 |
PORTNAME= gmt |
5 |
PORTVERSION= 4.5.13 |
5 |
PORTVERSION= 4.5.14 |
6 |
PORTREVISION= 2 |
6 |
DISTVERSIONSUFFIX= -src |
7 |
CATEGORIES= graphics |
7 |
CATEGORIES= graphics |
8 |
MASTER_SITES= ftp://ftp.soest.hawaii.edu/%SUBDIR%/ \ |
8 |
MASTER_SITES= ftp://ftp.soest.hawaii.edu/%SUBDIR%/ \ |
9 |
ftp://ftp.geologi.uio.no/pub/%SUBDIR%/ \ |
9 |
ftp://ftp.geologi.uio.no/pub/%SUBDIR%/ \ |
Lines 14-20
Link Here
|
14 |
ftp://ftp.soest.hawaii.edu/gshhg/:gshhg \ |
14 |
ftp://ftp.soest.hawaii.edu/gshhg/:gshhg \ |
15 |
ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/:gshhg |
15 |
ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/:gshhg |
16 |
MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/legacy |
16 |
MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/legacy |
17 |
DISTFILES= ${DISTNAME}-src${EXTRACT_SUFX} \ |
17 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
18 |
${GSHHG_DISTNAME}.tar.gz:gshhg |
18 |
${GSHHG_DISTNAME}.tar.gz:gshhg |
19 |
|
19 |
|
20 |
MAINTAINER= ports@FreeBSD.org |
20 |
MAINTAINER= ports@FreeBSD.org |
Lines 30-40
Link Here
|
30 |
|
30 |
|
31 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
31 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
32 |
|
32 |
|
33 |
USES= gmake shebangfix tar:bzip2 |
33 |
USES= autoreconf:build gmake pkgconfig shebangfix tar:bzip2 |
34 |
SHEBANG_FILES= gmtswitch doc/examples/*/*.sh src/GMT.in \ |
34 |
SHEBANG_FILES= gmtswitch doc/examples/*/*.sh src/GMT.in \ |
35 |
src/gmt_shell_functions.sh.in src/gmtget.in \ |
35 |
src/gmt_shell_functions.sh.in src/gmtget.in \ |
36 |
src/gmtlogo.in src/isogmt.in |
36 |
src/gmtlogo.in src/isogmt.in |
37 |
USE_AUTOTOOLS= autoconf |
37 |
GNU_CONFIGURE= yes |
38 |
CONFIGURE_ARGS= --datadir=${DATADIR} \ |
38 |
CONFIGURE_ARGS= --datadir=${DATADIR} \ |
39 |
--with-gshhg-dir=${DATADIR}/coast |
39 |
--with-gshhg-dir=${DATADIR}/coast |
40 |
INSTALL_TARGET= install-gmt install-data install-man install-doc |
40 |
INSTALL_TARGET= install-gmt install-data install-man install-doc |
Lines 50-56
Link Here
|
50 |
|
50 |
|
51 |
DEBUG_CONFIGURE_ON= --enable-debug --enable-devdebug |
51 |
DEBUG_CONFIGURE_ON= --enable-debug --enable-devdebug |
52 |
EPS_DESC= Set .eps as default output format, otherwise .ps |
52 |
EPS_DESC= Set .eps as default output format, otherwise .ps |
53 |
EPS_CONFNIGURE_ON= --enable-eps |
53 |
EPS_CONFIGURE_ON= --enable-eps |
54 |
GDAL_DESC= Compile in experimental GDAL support |
54 |
GDAL_DESC= Compile in experimental GDAL support |
55 |
GDAL_LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal |
55 |
GDAL_LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal |
56 |
GDAL_CONFIGURE_ON= --enable-gdal |
56 |
GDAL_CONFIGURE_ON= --enable-gdal |
Lines 66-72
Link Here
|
66 |
X11_USE= XORG=x11,xaw,xmu,xt |
66 |
X11_USE= XORG=x11,xaw,xmu,xt |
67 |
X11_CONFIGURE_OFF= --disable-xgrid |
67 |
X11_CONFIGURE_OFF= --disable-xgrid |
68 |
|
68 |
|
69 |
STRIP_FILES= blockmean blockmedian blockmode filter1d fitcircle \ |
69 |
STRIP_BINS= blockmean blockmedian blockmode filter1d fitcircle \ |
70 |
gmt2rgb gmtconvert gmtdefaults gmtmath gmtselect \ |
70 |
gmt2rgb gmtconvert gmtdefaults gmtmath gmtselect \ |
71 |
gmtset grd2cpt grd2xyz grdblend grdclip \ |
71 |
gmtset grd2cpt grd2xyz grdblend grdclip \ |
72 |
grdcontour grdcut grdedit grdfft grdfilter \ |
72 |
grdcontour grdcut grdedit grdfft grdfilter \ |
Lines 79-101
Link Here
|
79 |
psmask psrose psscale pstext pswiggle \ |
79 |
psmask psrose psscale pstext pswiggle \ |
80 |
psxy psxyz sample1d spectrum1d splitxyz \ |
80 |
psxy psxyz sample1d spectrum1d splitxyz \ |
81 |
surface trend1d trend2d triangulate xyz2grd |
81 |
surface trend1d trend2d triangulate xyz2grd |
|
|
82 |
STRIP_LIBS= libgmt.so.4 libgmtps.so.4 libpsl.so.4 |
82 |
|
83 |
|
83 |
# http://www.soest.hawaii.edu/pwessel/gshhg/ |
84 |
# http://www.soest.hawaii.edu/pwessel/gshhg/ |
84 |
GSHHG_DISTNAME= gshhg-gmt-2.3.0 |
85 |
GSHHG_DISTNAME= gshhg-gmt-2.3.4 |
85 |
|
86 |
|
86 |
.include <bsd.port.options.mk> |
87 |
pre-configure: |
|
|
88 |
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} AUTOHEADER="${TRUE}" \ |
89 |
${AUTORECONF} -f -i) |
87 |
|
90 |
|
88 |
post-install: |
91 |
post-install: |
89 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so |
|
|
90 |
@${MKDIR} ${STAGEDIR}${DATADIR}/coast |
92 |
@${MKDIR} ${STAGEDIR}${DATADIR}/coast |
91 |
(cd ${WRKDIR}/${GSHHG_DISTNAME} && ${INSTALL_DATA} README.TXT *.nc \ |
93 |
(cd ${WRKDIR}/${GSHHG_DISTNAME} && ${INSTALL_DATA} README.TXT *.nc \ |
92 |
${STAGEDIR}${DATADIR}/coast) |
94 |
${STAGEDIR}${DATADIR}/coast) |
93 |
.if ${PORT_OPTIONS:MX11} |
95 |
.for i in ${STRIP_BINS} |
|
|
96 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i} |
97 |
.endfor |
98 |
|
99 |
post-install-X11-on: |
94 |
(cd ${WRKSRC}/src/xgrid && ${INSTALL_PROGRAM} xgridedit \ |
100 |
(cd ${WRKSRC}/src/xgrid && ${INSTALL_PROGRAM} xgridedit \ |
95 |
${STAGEDIR}${PREFIX}/bin) |
101 |
${STAGEDIR}${PREFIX}/bin) |
96 |
.endif |
102 |
|
97 |
.for i in ${STRIP_FILES} |
103 |
post-install-SHARED-on: |
98 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i} |
104 |
.for i in ${STRIP_LIBS} |
|
|
105 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${i} |
99 |
.endfor |
106 |
.endfor |
100 |
|
107 |
|
101 |
.include <bsd.port.mk> |
108 |
.include <bsd.port.mk> |