1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/science/openkim/Makefile
Gerald Pfeifer 1cd277bdce Update the default version of GCC used in the Ports Collection from
GCC 4.6.4 to GCC 4.7.3.  This entails updating the lang/gcc port as
well as changing the default in Mk/bsd.default-versions.mk.

Part II, Bump PORTREVISIONs.

PR:		182136
Supported by:	Christoph Moench-Tegeder <cmt@burggraben.net> (fixing many ports)
Tested by:	bdrewery (two -exp runs)
2014-03-10 20:55:20 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Jason Bacon
# $FreeBSD$
PORTNAME= openkim
PORTVERSION= 1.1.1
PORTREVISION= 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>