freebsd-ports/science/cdf/Makefile
Gerald Pfeifer e4b7b9118a Bump PORTREVISIONS for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.8.5 to GCC 4.9.4 (at least under some
circumstances such as versions of FreeBSD or platforms), part II.

The first part covered  ports with USE_GCC=yes, USE_GCC=any, or one of
gcc-c++11-lib, openmp, nestedfct, c++11-lib as well as c++14-lang,
c++11-lang, c++0x, c11 requested via USES=compiler.

This adds ports with USES=fortran and ports using Mk/bsd.octave.mk
which in turn has USES=fortran.

PR:		214965
Reported by:	thierry
2016-12-07 13:24:56 +00:00

57 lines
1.6 KiB
Makefile

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= cdf3
PORTVERSION= 3.3.0
PORTREVISION= 6
CATEGORIES= science
MASTER_SITES= LOCAL/thierry/${PORTNAME} \
ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/cdf${VER}/unix/
DISTNAME= cdf${VER}-dist-cdf
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= stephen@FreeBSD.org
COMMENT= Device independent view of the CDF data model
LICENSE= NASA-G
LICENSE_NAME= NASA/Goddard Space Flight Center
LICENSE_FILE= ${WRKSRC}/CDF_copyright.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= fortran ncurses
USE_LDCONFIG= yes
MAKE_FLAGS= INSTALLDIR=${STAGEDIR}${PREFIX} OS=freebsd ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/cdf${VER}-dist
SUB_FILES= pkg-message
VER= ${PORTVERSION:S/.//:S/./_/}
DEFS= B C K
PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
.for def in ${DEFS}
@${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
${WRKSRC}/src/definitions/definitions.${def}
.endfor
post-install:
${MV} ${STAGEDIR}${PREFIX}/lib/libcdf.so \
${STAGEDIR}${PREFIX}/lib/libcdf.so.0
${LN} -sf libcdf.so.0 ${STAGEDIR}${PREFIX}/lib/libcdf.so
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
${SED} -i '' 's,${STAGEDIR},,g' ${STAGEDIR}${PREFIX}/bin/definitions.?
regression-test: build
@${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} test -C ${BUILD_WRKSRC}
.include <bsd.port.mk>