1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/science/cdf/Makefile
Dennis Herrmann cf8759b2c9 - Update maintainer mail address
PR:		ports/133397
Submitted by:	Stephen Montgomery-Smith <stephen@missouri.edu> (maintainer)
Approved by:	tabthorpe (co-mentor)
2009-04-05 20:50:49 +00:00

70 lines
1.7 KiB
Makefile

# New ports collection makefile for: cdf
# Date created: 26 January 2006
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= cdf3
PORTVERSION= 3.2.1
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_LOCAL} \
ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/cdf${VER}/unix/
MASTER_SITE_SUBDIR= thierry/${PORTNAME}
DISTNAME= cdf${VER}-dist-cdf
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= stephen@missouri.edu
COMMENT= Device independent view of the CDF data model
MAKE_FLAGS= INSTALLDIR=${PREFIX} OS=${OPSYS:L} ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
USE_LDCONFIG= yes
VER= ${PORTVERSION:S/.//:S/./_/}
USE_FORTRAN= yes
WRKSRC= ${WRKDIR}/cdf${VER}-dist
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
DEFS= B C K
PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on ${ARCH}
.endif
pre-configure:
.for def in ${DEFS}
${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
${WRKSRC}/src/definitions/definitions.${def}
.endfor
post-install:
${MV} ${PREFIX}/lib/libcdf.so ${PREFIX}/lib/libcdf.so.0
${LN} -sf ${PREFIX}/lib/libcdf.so.0 ${PREFIX}/lib/libcdf.so
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
.endif
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
regression-test:
(cd ${BUILD_WRKSRC} ; \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
.include <bsd.port.post.mk>