ports/146416: [MAINTAINER] science/netcdf4: add option FORTRAN, fix typo
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Sun May 9 00:10:04 UTC 2010
>Number: 146416
>Category: ports
>Synopsis: [MAINTAINER] science/netcdf4: add option FORTRAN, fix typo
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun May 09 00:10:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed May 5 00:44:42 CST
>Description:
Changes for science/netcdf4:
- Add option FORTRAN
- Recall SZIP, fix typo (LIB_DEPEND -> LIB_DEPENDS)
- Sort pkg-plist
- Space/Tab twiddle
Change for science/netcdf-ftn:
- Add netcdf 4.x support
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- netcdf-4.1.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sunpoet/netcdf4/../../science/netcdf4/Makefile /usr/ports/sunpoet/netcdf4/Makefile
--- /usr/ports/sunpoet/netcdf4/../../science/netcdf4/Makefile 2010-04-22 18:53:29.000000000 +0800
+++ /usr/ports/sunpoet/netcdf4/Makefile 2010-05-09 07:30:37.000000000 +0800
@@ -13,29 +13,27 @@
http://sunpoet.net/distfiles/
MAINTAINER= sunpoet at sunpoet.net
-COMMENT= Library for machine-independent, array-oriented data access
+COMMENT?= Library for machine-independent, array-oriented data access
CONFLICTS= hdf-4.* netcdf-3.*
LATEST_LINK= netcdf4
+PORTSCOUT= limit:^4\.
-CONFIGURE_ARGS= --disable-f77 --disable-f90 \
- --enable-cxx --enable-cxx-4 --enable-netcdf-4 --enable-shared \
+CONFIGURE_ARGS= --enable-cxx --enable-cxx-4 --enable-netcdf-4 --enable-shared \
--with-hdf5=${LOCALBASE} --with-zlib=/usr
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
-MAKE_ENV+= MAKEINFOFLAGS="--no-split" INFODIR="${PREFIX}/${INFO_PATH}"
-
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC"
GNU_CONFIGURE= yes
-USE_LDCONFIG= yes
-
LIB_DEPENDS+= hdf5.6:${PORTSDIR}/science/hdf5-18
+MAKE_ENV+= MAKEINFOFLAGS="--no-split" INFODIR="${PREFIX}/${INFO_PATH}"
+USE_LDCONFIG= yes
-INFO= netcdf netcdf-c netcdf-cxx netcdf-f77 \
- netcdf-f90 netcdf-install netcdf-tutorial
-
-MAN1= ncdump.1 ncgen.1 ncgen3.1 nccopy.1
+INFO= netcdf netcdf-c netcdf-cxx netcdf-f77 netcdf-f90 \
+ netcdf-install netcdf-tutorial
+MAN1= nccopy.1 ncdump.1 ncgen.1 ncgen3.1
MAN3= netcdf.3
-OPTIONS= SZIP "SZIP support (required if HDF5 was built with SZIP)" off
+OPTIONS= FORTRAN "Build library for Fortran" off \
+ SZIP "SZIP support (required if HDF5 was built with SZIP)" off
.if !defined(NOPORTDOCS)
CONFIGURE_ARGS+=--enable-docs-install
@@ -43,9 +41,24 @@
CONFIGURE_ARGS+=--disable-docs-install
.endif
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_FORTRAN)
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -DpgiFortran"
+CONFLICTS+= netcdf-4.*
+MAN3+= netcdf_f77.3 netcdf_f90.3
+PKGNAMESUFFIX+= -ftn
+PLIST_SUB+= FORTRAN=""
+USE_FORTRAN= yes
+.else
+CONFIGURE_ARGS+=--disable-f77 --disable-f90
+CONFLICTS+= netcdf-ftn-4.*
+PLIST_SUB+= FORTRAN="@comment "
+.endif
+
.if defined(WITH_SZIP)
-CONFIGURE_ARGS+= --with-szlib=${LOCALBASE}
-LIB_DEPEND+= sz.2:${PORTSDIR}/science/szip
+CONFIGURE_ARGS+=--with-szlib=${LOCALBASE}
+LIB_DEPENDS+= sz.2:${PORTSDIR}/science/szip
.endif
post-patch:
@@ -57,7 +70,6 @@
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e '839 s/install-docDATA //' \
${WRKSRC}/man4/Makefile.in
-
.endif
post-configure:
@@ -69,4 +81,4 @@
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/sunpoet/netcdf4/../../science/netcdf4/pkg-plist /usr/ports/sunpoet/netcdf4/pkg-plist
--- /usr/ports/sunpoet/netcdf4/../../science/netcdf4/pkg-plist 2010-04-22 18:53:29.000000000 +0800
+++ /usr/ports/sunpoet/netcdf4/pkg-plist 2010-05-07 16:49:52.000000000 +0800
@@ -29,11 +29,14 @@
include/ncVar.h
include/ncVarAtt.h
include/ncVlenType.h
-include/netcdf
include/ncvalues.h
+include/netcdf
include/netcdf.h
include/netcdf.hh
include/netcdfcpp.h
+%%FORTRAN%%include/netcdf.inc
+%%FORTRAN%%include/netcdf.mod
+%%FORTRAN%%include/typesizes.mod
lib/libnetcdf.a
lib/libnetcdf.la
lib/libnetcdf.so
@@ -46,6 +49,10 @@
lib/libnetcdf_c++4.la
lib/libnetcdf_c++4.so
lib/libnetcdf_c++4.so.1
+%%FORTRAN%%lib/libnetcdff.a
+%%FORTRAN%%lib/libnetcdff.la
+%%FORTRAN%%lib/libnetcdff.so
+%%FORTRAN%%lib/libnetcdff.so.5
libdata/pkgconfig/netcdf.pc
%%PORTDOCS%%%%DOCSDIR%%/ncdump-man-1.html
%%PORTDOCS%%%%DOCSDIR%%/ncgen-man-1.html
--- netcdf-4.1.1.patch ends here ---
--- netcdf-ftn.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/science/netcdf-ftn/Makefile /usr/ports/sunpoet/netcdf-ftn/Makefile
--- /usr/ports/science/netcdf-ftn/Makefile 2009-03-23 06:09:27.000000000 +0800
+++ /usr/ports/sunpoet/netcdf-ftn/Makefile 2010-05-09 06:30:14.000000000 +0800
@@ -7,9 +7,16 @@
PORTNAME= netcdf
-COMMENT= Network Common Data Form, with Fortran support
+MAINTAINER= sunpoet at sunpoet.net
+COMMENT= NetCDF (network Common Data Form), with Fortran support
+NETCDF_VER?= 4
+
+.if ${NETCDF_VER} == 4
+MASTERDIR= ${.CURDIR}/../netcdf4
+.else
MASTERDIR= ${.CURDIR}/../netcdf
+.endif
WITH_FORTRAN= yes
--- netcdf-ftn.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list