aboutsummaryrefslogtreecommitdiff
path: root/science/cdf/Makefile
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-01-28 20:40:56 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-01-28 20:40:56 +0000
commit3a596ded2ec8ffd02e1156c11295f40cf4b22765 (patch)
treea390ed6e9651fd151b196ec02b4cce33212db94b /science/cdf/Makefile
parent8a76f84f7fb3f00363b52f53601b1dbb77f64c37 (diff)
downloadports-3a596ded2ec8ffd02e1156c11295f40cf4b22765.tar.gz
ports-3a596ded2ec8ffd02e1156c11295f40cf4b22765.zip
Notes
Diffstat (limited to 'science/cdf/Makefile')
-rw-r--r--science/cdf/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/science/cdf/Makefile b/science/cdf/Makefile
new file mode 100644
index 000000000000..57ad05920bf0
--- /dev/null
+++ b/science/cdf/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: cdf
+# Date created: 26 January 2006
+# Whom: Thierry Thomas <thierry@pompo.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cdf3
+PORTVERSION= 3.1
+CATEGORIES= science
+MASTER_SITES= http://windsor.gsfc.nasa.gov/standards/cdf/dist/cdf${VER}/unix/
+DISTNAME= cdf${VER}-dist-cdf
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Device independent view of the CDF data model
+
+MAKE_FLAGS= INSTALLDIR=${PREFIX} OS=${OPSYS:L} ENV=ports \
+ FORTRAN=yes F77=${F77}
+INSTALLS_SHLIB= yes
+
+VER= ${PORTVERSION:S/.//}
+
+F77?= f77
+
+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
+
+pre-configure:
+.for def in ${DEFS}
+ ${REINPLACE_CMD} -e 's|<path>|${PREFIX}|' \
+ -e 's|/home/cdf/cdf30-dist|${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} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ ${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
+ @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
+.endif
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.if defined(MAINTAINER_MODE)
+test: build
+ (cd ${BUILD_WRKSRC} ; \
+ ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
+.endif
+
+.include <bsd.port.mk>