1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/science/cdf/Makefile

62 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= cdf3
PORTVERSION= 3.3.0
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@FreeBSD.org
COMMENT= Device independent view of the CDF data model
2014-01-27 18:00:26 +00:00
MAKE_FLAGS= INSTALLDIR=${STAGEDIR}${PREFIX} OS=${OPSYS:L} ENV=gnu \
FORTRAN=yes FC_freebsd=${F77}
2006-12-13 23:23:58 +00:00
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= 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} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
pre-configure:
.for def in ${DEFS}
${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
${WRKSRC}/src/definitions/definitions.${def}
.endfor
post-install:
2014-01-27 18:00:26 +00:00
${MV} ${STAGEDIR}${PREFIX}/lib/libcdf.so ${STAGEDIR}${PREFIX}/lib/libcdf.so.0
${LN} -sf ${STAGEDIR}${PREFIX}/lib/libcdf.so.0 ${STAGEDIR}${PREFIX}/lib/libcdf.so
.if !defined(NOPORTDOCS)
2014-01-27 18:00:26 +00:00
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
2014-01-27 18:00:26 +00:00
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
.endif
regression-test:
(cd ${BUILD_WRKSRC} ; \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
.include <bsd.port.post.mk>