- 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:
parent
aca7029af8
commit
b50b662db3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230708
@ -87,6 +87,7 @@
|
||||
SUBDIR += mpqc-mpich
|
||||
SUBDIR += ncs
|
||||
SUBDIR += netcdf
|
||||
SUBDIR += netcdf-ftn
|
||||
SUBDIR += netcdf4
|
||||
SUBDIR += nifticlib
|
||||
SUBDIR += oases
|
||||
|
16
science/netcdf-ftn/Makefile
Normal file
16
science/netcdf-ftn/Makefile
Normal 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"
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user