freebsd-ports/science/netcdf-fortran/Makefile
Antoine Brodin c0ef6553ab Allow to build with texinfo from ports
With hat:	portmgr
2014-06-26 08:41:34 +00:00

40 lines
1.1 KiB
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= netcdf-fortran
PORTVERSION= 4.2
PORTREVISION= 3
CATEGORIES= science
MASTER_SITES= https://github.com/Unidata/${PORTNAME}/archive/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Fortran library for machine-independent, array-oriented data access
LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
CONFLICTS= netcdf-ftn-[0-9]* netcdf3-ftn-[0-9]*
CPPFLAGS+= -I${LOCALBASE}/include -fPIC -DPIC -DgFortran
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV= MAKEINFOFLAGS=--no-split
MAKE_JOBS_UNSAFE= yes
USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize
USE_LDCONFIG= yes
USES= fortran libtool makeinfo pathfix
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${PORTVERSION}
INFO= netcdf-f77 netcdf-f90
AUTOMAKE_ARGS= --add-missing
LIBTOOLIZE_ARGS=--copy --force --install
PATHFIX_MAKEFILEIN= Makefile.am
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnetcdff.so.5
regression-test test: build
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
.include <bsd.port.mk>