2006-01-28 20:40:56 +00:00
|
|
|
# New ports collection makefile for: cdf
|
|
|
|
# Date created: 26 January 2006
|
|
|
|
# Whom: Thierry Thomas <thierry@pompo.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cdf3
|
2010-01-21 21:14:54 +00:00
|
|
|
PORTVERSION= 3.3.0
|
2006-01-28 20:40:56 +00:00
|
|
|
CATEGORIES= science
|
2007-01-17 06:42:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
2007-12-11 21:08:51 +00:00
|
|
|
ftp://cdaweb.gsfc.nasa.gov/pub/cdf/dist/cdf${VER}/unix/
|
|
|
|
MASTER_SITE_SUBDIR= thierry/${PORTNAME}
|
2006-01-28 20:40:56 +00:00
|
|
|
DISTNAME= cdf${VER}-dist-cdf
|
2009-01-09 19:08:44 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
|
2006-01-28 20:40:56 +00:00
|
|
|
|
2009-04-05 20:50:49 +00:00
|
|
|
MAINTAINER= stephen@missouri.edu
|
2006-01-28 20:40:56 +00:00
|
|
|
COMMENT= Device independent view of the CDF data model
|
|
|
|
|
2007-01-18 02:28:26 +00:00
|
|
|
MAKE_FLAGS= INSTALLDIR=${PREFIX} OS=${OPSYS:L} ENV=gnu \
|
|
|
|
FORTRAN=yes FC_freebsd=${F77}
|
2006-12-13 23:23:58 +00:00
|
|
|
USE_LDCONFIG= yes
|
2009-11-18 22:39:55 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2006-01-28 20:40:56 +00:00
|
|
|
|
2008-08-19 21:40:14 +00:00
|
|
|
VER= ${PORTVERSION:S/.//:S/./_/}
|
2006-01-28 20:40:56 +00:00
|
|
|
|
2007-07-14 01:33:55 +00:00
|
|
|
USE_FORTRAN= yes
|
2006-01-28 20:40:56 +00:00
|
|
|
|
2008-08-19 21:40:14 +00:00
|
|
|
WRKSRC= ${WRKDIR}/cdf${VER}-dist
|
2006-01-28 20:40:56 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
DEFS= B C K
|
|
|
|
PORTDOCS= CDF_copyright.txt CHANGES.txt Release.notes Welcome.txt
|
|
|
|
|
2006-03-29 20:25:38 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
2006-01-28 20:40:56 +00:00
|
|
|
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)
|
2008-08-19 21:40:14 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2006-01-28 20:40:56 +00:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
2008-08-19 21:40:14 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2006-01-28 20:40:56 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
|
|
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2007-12-11 21:08:51 +00:00
|
|
|
regression-test:
|
2006-01-28 20:40:56 +00:00
|
|
|
(cd ${BUILD_WRKSRC} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
|
|
|
|
|
2006-03-29 20:25:38 +00:00
|
|
|
.include <bsd.port.post.mk>
|