aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-03-22 22:09:27 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-03-22 22:09:27 +0000
commitb50b662db32b1e0a070f38e30750ec8f21be111e (patch)
treebc1c6125d858abcb4e5359d7b476be9351c12517 /science
parentaca7029af8092f198097a5972054b29dcf5489bc (diff)
downloadports-b50b662db32b1e0a070f38e30750ec8f21be111e.tar.gz
ports-b50b662db32b1e0a070f38e30750ec8f21be111e.zip
Notes
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/netcdf-ftn/Makefile16
-rw-r--r--science/netcdf/Makefile10
-rw-r--r--science/netcdf/pkg-plist1
4 files changed, 26 insertions, 2 deletions
diff --git a/science/Makefile b/science/Makefile
index 7fec66addb43..bd84dd7c2988 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -87,6 +87,7 @@
SUBDIR += mpqc-mpich
SUBDIR += ncs
SUBDIR += netcdf
+ SUBDIR += netcdf-ftn
SUBDIR += netcdf4
SUBDIR += nifticlib
SUBDIR += oases
diff --git a/science/netcdf-ftn/Makefile b/science/netcdf-ftn/Makefile
new file mode 100644
index 000000000000..d7697c9950e4
--- /dev/null
+++ b/science/netcdf-ftn/Makefile
@@ -0,0 +1,16 @@
+# New ports collection makefile for: netcdf-ftn
+# Date created: Sun Mar 08 2009
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= netcdf
+
+COMMENT= Network Common Data Form, with Fortran support
+
+MASTERDIR= ${.CURDIR}/../netcdf
+
+WITH_FORTRAN= yes
+
+.include "${MASTERDIR}/Makefile"
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index b1c6a2c78848..888a39d146d5 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -13,17 +13,19 @@ MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
http://sunpoet.net/distfiles/
MAINTAINER= sunpoet@sunpoet.net
-COMMENT= Library for machine-independent, array-oriented data access
+COMMENT?= Library for machine-independent, array-oriented data access
CONFLICTS= hdf-4.* netcdf-4.*
CONFIGURE_ARGS= --enable-shared
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC ${FTNTYPE}"
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
#CONFIGURE_ENV+= ${MAKE_ENV}
+SLAVEDIRS= science/netcdf-ftn
+
MAN1= ncdump.1 ncgen.1
MAN3= netcdf.3
@@ -49,9 +51,13 @@ CONFIGURE_ARGS+=--disable-examples
.if defined(WITH_FORTRAN)
USE_FORTRAN= yes
+PKGNAMESUFFIX+= -ftn
+CONFLICTS+= netcdf-3.*
MAN3+= netcdf_f77.3 netcdf_f90.3
PLIST_SUB+= FORTRAN=""
+FTNTYPE= -DpgiFortran
.else
+CONFLICTS+= netcdf-ftn-3.*
CONFIGURE_ARGS+=--disable-f77
PLIST_SUB+= FORTRAN="@comment "
.endif
diff --git a/science/netcdf/pkg-plist b/science/netcdf/pkg-plist
index fdf6a628ef25..1780a6af93dd 100644
--- a/science/netcdf/pkg-plist
+++ b/science/netcdf/pkg-plist
@@ -3,6 +3,7 @@ bin/ncgen
include/ncvalues.h
include/netcdf.h
include/netcdf.hh
+%%FORTRAN%%include/netcdf.inc
%%FORTRAN%%include/netcdf.mod
include/netcdfcpp.h
%%FORTRAN%%include/typesizes.mod