diff options
author | bapt <bapt@FreeBSD.org> | 2013-07-11 14:15:02 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-07-11 14:15:02 +0800 |
commit | b30311f452921dce8d1fc51fb79e4e56b0cd1fa4 (patch) | |
tree | 4d45280c3f8a89ce0a1a600b42df6eb46e757a1a /graphics | |
parent | df17a20183feb5ae101ba3f3c770512d2739a945 (diff) | |
download | freebsd-ports-gnome-b30311f452921dce8d1fc51fb79e4e56b0cd1fa4.tar.gz freebsd-ports-gnome-b30311f452921dce8d1fc51fb79e4e56b0cd1fa4.tar.zst freebsd-ports-gnome-b30311f452921dce8d1fc51fb79e4e56b0cd1fa4.zip |
Mark job unsafe
Convert to USES=gmake
Use options helpers
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gmt/Makefile | 61 |
1 files changed, 17 insertions, 44 deletions
diff --git a/graphics/gmt/Makefile b/graphics/gmt/Makefile index ec51ee43876b..2bed383dcc82 100644 --- a/graphics/gmt/Makefile +++ b/graphics/gmt/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: gmt -# Date created: 10 May 2001 -# Whom: sec@42.org -# +# Created by: sec@42.org # $FreeBSD$ -# PORTNAME= gmt PORTVERSION= 4.5.8 @@ -21,12 +17,12 @@ MAINTAINER= ports@FreeBSD.org COMMENT= The Generic Mapping Tools data processing and display software package WRKSRC= ${WRKDIR}/${PORTNAME:U}${DISTVERSION} -USE_BZIP2= yes +USES= gmake USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes CONFIGURE_ARGS+=--datadir=${DATADIR} -USE_GMAKE= yes USE_XORG= x11 xaw xmu xt +MAKE_JOBS_UNSAFE= yes PORTDOCS= * PORTDATA= * @@ -41,51 +37,28 @@ NETCDF_DESC= With netCDF (7) support OCTAVE_DESC= With OCTAVE support .include "Makefile.man" -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MNETCDF} -LIB_DEPENDS+= netcdf:${PORTSDIR}/science/netcdf4 -CONFIGURE_ARGS+= --enable-netcdf -.endif -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+= --enable-debug --enable-devdebug -.endif +NETCDF_LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf4 +NETCDF_CONFIGURE_ON= --enable-netcdf +DEBUG_CONFIGURE_ON= --enable-debug --enable-devdebug +SHARED_CONFIGURE_ON= --enable-shared +IMPERIAL_CONFIGURE_ON= --enable-US +EPS_CONFNIGURE_ON= --enable-eps +GDAL_LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal +GDAL_CONFIGURE_ON= --enable-gdal +OCTAVE_RUN_DEPENDS= octave:${PORTSDIR}/math/octave +OCTAVE_CONFIGURE_ON= --enable-octave --enable-mex +OCTAVE_CONFIGURE_OFF= --disable-mex -.if ${PORT_OPTIONS:MDEVDEBUG} -CONFIGURE_ARGS+= --enable-devdebug -.endif +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MSHARED} -USE_LDCONFIG= yes -CONFIGURE_ARGS+= --enable-shared -.endif - -.if ${PORT_OPTIONS:MIMPERIAL} -CONFIGURE_ARGS+= --enable-US -.endif - -.if ${PORT_OPTIONS:MEPS} -CONFIGURE_ARGS+= --enable-eps -.endif - -.if ${PORT_OPTIONS:MGDAL} -LIB_DEPENDS+= gdal.17:${PORTSDIR}/graphics/gdal -CONFIGURE_ARGS+= --enable-gdal -.endif - -.if ${PORT_OPTIONS:MOCTAVE} -RUN_DEPENDS+= octave:${PORTSDIR}/math/octave -CONFIGURE_ARGS+= --enable-octave -CONFIGURE_ARGS+= --enable-mex -.else -CONFIGURE_ARGS+= --disable-mex +USE_LDCONFIG= yes .endif INSTALL_TARGET= install-gmt install-data install-man install-doc -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || \ - ${ARCH} == "alpha" || ${ARCH} == "sparc64" +.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64" CONFIGURE_ARGS+= --enable-64 .else CONFIGURE_ARGS+= --disable-64 |