- Fix Fortran linking

- Add a slaveport so fortran enabled netcdf can be packaged

PR:		ports/132430
Submitted by:	thierry
Approved by:	maintainer timeout (14 days)
This commit is contained in:
Pav Lucistnik 2009-03-22 22:09:27 +00:00
parent aca7029af8
commit b50b662db3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230708
4 changed files with 26 additions and 2 deletions

View File

@ -87,6 +87,7 @@
SUBDIR += mpqc-mpich
SUBDIR += ncs
SUBDIR += netcdf
SUBDIR += netcdf-ftn
SUBDIR += netcdf4
SUBDIR += nifticlib
SUBDIR += oases

View File

@ -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"

View File

@ -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

View File

@ -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