diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2014-02-21 15:39:56 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2014-02-21 15:39:56 +0000 |
commit | 52d72cd2b819680bc61f47afb6416c5b4fc39cf8 (patch) | |
tree | 0d86cd5bf671c46b63cf1e485badd73cedf5b058 /science | |
parent | d1c07899dac9bb0c7d9385bb69d0f0c7aea0ac28 (diff) | |
download | ports-52d72cd2b819680bc61f47afb6416c5b4fc39cf8.tar.gz ports-52d72cd2b819680bc61f47afb6416c5b4fc39cf8.zip |
Notes
Diffstat (limited to 'science')
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/openkim/Makefile | 51 | ||||
-rw-r--r-- | science/openkim/distinfo | 2 | ||||
-rw-r--r-- | science/openkim/files/patch-KIM_API__GNU_compiler_settings.mk | 10 | ||||
-rw-r--r-- | science/openkim/pkg-descr | 6 | ||||
-rw-r--r-- | science/openkim/pkg-plist | 9 |
6 files changed, 79 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index b5ae437c111e..a4b0d299bf7d 100644 --- a/science/Makefile +++ b/science/Makefile @@ -110,6 +110,7 @@ SUBDIR += netcdf4 SUBDIR += nifticlib SUBDIR += openbabel + SUBDIR += openkim SUBDIR += p5-Algorithm-SVMLight SUBDIR += p5-Chemistry-3DBuilder SUBDIR += p5-Chemistry-Bond-Find diff --git a/science/openkim/Makefile b/science/openkim/Makefile new file mode 100644 index 000000000000..c4053c59b34e --- /dev/null +++ b/science/openkim/Makefile @@ -0,0 +1,51 @@ +# Created by: Jason Bacon +# $FreeBSD$ + +PORTNAME= openkim +PORTVERSION= 1.1.1 +CATEGORIES= science +MASTER_SITES= http://s3.openkim.org/openkim-api/ +DISTNAME= ${PORTNAME}-api-v${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= jwbacon@tds.net +COMMENT= Knowledgebase of Interatomic Models + +LICENSE= CDDL + +MAKE_ENV+= KIM_DIR=${WRKSRC} + +USES= gmake fortran + +MAKE_JOBS_UNSAFE=yes + +.include <bsd.port.options.mk> + +# Is there a better way to detect 32-bit systems? +.if ${ARCH} == "i386" || ${ARCH} == "powerpc" +MAKE_ENV+= KIM_SYSTEM32="yes" +.endif + +post-patch: + ${REINPLACE_CMD} \ + -e "s|gcc|${CC}|g" \ + -e "s|g++|${CXX}|g" \ + -e "s|= gfortran|= ${FC}|g" \ + -e "s|-O3|${CFLAGS}|g" \ + -e "s|LINKLIBFLAG =|LINKLIBFLAG = ${LDFLAGS}|" \ + ${WRKSRC}/KIM_API/GNU_compiler_settings.mk + +# Required for main build to succeed +pre-build: + (cd ${WRKSRC} && ${MAKE_CMD} KIM_DIR=${WRKSRC} examples) + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/include/KIM_API + ${INSTALL_DATA} ${WRKSRC}/KIM_API/libkim.a ${STAGEDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/KIM_API/*.h ${STAGEDIR}${PREFIX}/include/KIM_API + +regression-test: + (cd ${WRKSRC}/TESTs/ex_test_Ar_free_cluster_CLUSTER_F90 && \ + ${ECHO_CMD} "ex_model_Ar_P_MLJ_CLUSTER_C" | ./ex_test_Ar_free_cluster_CLUSTER_F90) + +.include <bsd.port.mk> diff --git a/science/openkim/distinfo b/science/openkim/distinfo new file mode 100644 index 000000000000..997ab7791add --- /dev/null +++ b/science/openkim/distinfo @@ -0,0 +1,2 @@ +SHA256 (openkim-api-v1.1.1.tgz) = 683bda8011754b2525e6f935f52909c141e9d39c2184cefb98babb9e4e5e0959 +SIZE (openkim-api-v1.1.1.tgz) = 1529043 diff --git a/science/openkim/files/patch-KIM_API__GNU_compiler_settings.mk b/science/openkim/files/patch-KIM_API__GNU_compiler_settings.mk new file mode 100644 index 000000000000..6c4a5caeef3e --- /dev/null +++ b/science/openkim/files/patch-KIM_API__GNU_compiler_settings.mk @@ -0,0 +1,10 @@ +--- KIM_API/GNU_compiler_settings.mk.orig 2012-08-19 23:13:47.000000000 +0200 ++++ KIM_API/GNU_compiler_settings.mk 2014-02-21 16:11:02.000000000 +0100 +@@ -53,7 +53,3 @@ + # Add libforgranbegin if needed. + LINKLIBFLAG += -lgfortranbegin + endif +-ifdef KIM_DYNAMIC +- # Add libdl if dynamic linking is being used +- LINKLIBFLAG += -ldl +-endif diff --git a/science/openkim/pkg-descr b/science/openkim/pkg-descr new file mode 100644 index 000000000000..5ab2ea064286 --- /dev/null +++ b/science/openkim/pkg-descr @@ -0,0 +1,6 @@ +An online resource for standardized testing and long-term warehousing of +interatomic models and data. This includes the development of application +programming interface (API) standards for coupling atomistic simulation +codes and interatomic potential subroutines. + +WWW: https://openkim.org/ diff --git a/science/openkim/pkg-plist b/science/openkim/pkg-plist new file mode 100644 index 000000000000..3a9a89f78288 --- /dev/null +++ b/science/openkim/pkg-plist @@ -0,0 +1,9 @@ +include/KIM_API/KIM_API.h +include/KIM_API/KIM_API_C.h +include/KIM_API/KIM_API_status.h +include/KIM_API/KIM_AUX.h +include/KIM_API/Unit_Handling.h +include/KIM_API/model_init_include.h +include/KIM_API/model_kim_str_include.h +lib/libkim.a +@dirrm include/KIM_API |