1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/science/openkim/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

51 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= openkim
PORTVERSION= 1.1.1
PORTREVISION= 10
CATEGORIES= science
MASTER_SITES= http://s3.openkim.org/openkim-api/
DISTNAME= ${PORTNAME}-api-v${PORTVERSION}
MAINTAINER= jwb@FreeBSD.org
COMMENT= Knowledgebase of Interatomic Models
LICENSE= CDDL
MAKE_ENV+= KIM_DIR=${WRKSRC}
USES= gmake fortran tar:tgz
MAKE_JOBS_UNSAFE=yes
.include <bsd.port.options.mk>
# determine if we are on a 32-bit arch
.if ! ${ARCH:M*64*}
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
do-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>