aboutsummaryrefslogtreecommitdiffstats
path: root/science/cgnslib/Makefile
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2007-04-01 17:00:23 +0800
committerthierry <thierry@FreeBSD.org>2007-04-01 17:00:23 +0800
commit5319e44787f63b2ce543f2cb2e7bc11d08bade75 (patch)
tree6c4526216ced7b9c437cd665edef1b9cf69205a3 /science/cgnslib/Makefile
parenta5a95dd1d6d2de56a892841a5f75e2699b8b4c25 (diff)
downloadfreebsd-ports-gnome-5319e44787f63b2ce543f2cb2e7bc11d08bade75.tar.gz
freebsd-ports-gnome-5319e44787f63b2ce543f2cb2e7bc11d08bade75.tar.zst
freebsd-ports-gnome-5319e44787f63b2ce543f2cb2e7bc11d08bade75.zip
The CFD General Notation System (CGNS) provides a standard for recording and
recovering computer data associated with the numerical solution of the equations of fluid dynamics.
Diffstat (limited to 'science/cgnslib/Makefile')
-rw-r--r--science/cgnslib/Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/science/cgnslib/Makefile b/science/cgnslib/Makefile
new file mode 100644
index 000000000000..78b95a7ca61d
--- /dev/null
+++ b/science/cgnslib/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: cgnslib
+# Date created: Sat 24 oct 2007
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= cgnslib
+DISTVERSION= 2.4-5
+CATEGORIES= science
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= cgns
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= CFD General Notation System library code
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= F77=${F77}
+CONFIGURE_ARGS= --enable-shared=all
+MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
+USE_LDCONFIG= yes
+
+.if !defined(WITHOUT_HDF5)
+LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5
+CONFIGURE_ARGS+=--with-hdf5=${LOCALBASE}
+PLIST_SUB= HDF5=""
+.else
+CONFIGURE_ARGS+=--with-hdf5=no
+PLIST_SUB= HDF5="@comment "
+.endif
+
+.if !defined(WITHOUT_TESTS)
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
+TESTSBIN= rundbtest cgwrite cgread
+.endif
+
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:R}
+CNVBIN= adf2hdf hdf2adf
+
+post-build:
+.if !defined(WITHOUT_TESTS)
+ @(cd ${BUILD_WRKSRC}/tests; \
+ ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+ @(cd ${BUILD_WRKSRC}/tests; \
+ ${SETENV} ${MAKE_ENV} FOPTS="${FFLAGS} -I.." ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} fortran)
+.endif
+
+regression-test:
+.for pg in ${TESTSBIN}
+ @(cd ${BUILD_WRKSRC}/tests; ./${pg})
+.endfor
+
+post-install:
+ ${MV} ${PREFIX}/lib/libcgns.so ${PREFIX}/lib/libcgns.so.0
+ ${LN} -sf ${PREFIX}/lib/libcgns.so.0 ${PREFIX}/lib/libcgns.so
+ ${INSTALL_PROGRAM} ${CNVBIN:C|^|${BUILD_WRKSRC}/${OPSYS:U}/|} ${PREFIX}/bin
+
+.include <bsd.port.mk>