aboutsummaryrefslogtreecommitdiff
path: root/science/netcdf
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 22:08:22 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 22:08:22 +0000
commit70311449fae75ffea4fd9f53366895a06b4bc897 (patch)
treedcad9bcb676fb6eb1edd275685eb3589f7f31419 /science/netcdf
parent8a35140e06cecbb04d9d78df50ee65c13425e141 (diff)
downloadports-70311449fae75ffea4fd9f53366895a06b4bc897.tar.gz
ports-70311449fae75ffea4fd9f53366895a06b4bc897.zip
Convert science to new options framework
Notes
Notes: svn path=/head/; revision=316757
Diffstat (limited to 'science/netcdf')
-rw-r--r--science/netcdf/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index b3cf850f4c33..3a4853f9cc1e 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: netcdf
-# Date created: 29 July 1999
-# Whom: Thomas Gellekum <tg@FreeBSD.org>
-#
+# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= netcdf
PORTVERSION= 3.6.3
@@ -29,17 +25,18 @@ INFO= netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \
MAN1= ncdump.1 ncgen.1
MAN3= netcdf.3
-OPTIONS= FORTRAN "Build library for Fortran" off
+OPTIONS_DEFINE= FORTRAN DOCS
+FORTRAN_DESC= Build library for Fortran
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--enable-docs-install
.else
CONFIGURE_ARGS+=--disable-docs-install
.endif
-.include <bsd.port.options.mk>
-
-.if defined(WITH_FORTRAN)
+.if ${PORT_OPTIONS:MFORTRAN}
CPPFLAGS+= -DpgiFortran
CONFLICTS+= netcdf-3.*
MAN3+= netcdf_f77.3 netcdf_f90.3
@@ -59,7 +56,7 @@ post-patch:
@${REINPLACE_CMD} -e \
'271 s/\(info_docs\).*/html_docs\)/' \
${WRKSRC}/man4/Makefile.in
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '790 s/install-docDATA //' \
${WRKSRC}/man/Makefile.in
.endif