aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2018-08-24 16:05:04 +0800
committeryuri <yuri@FreeBSD.org>2018-08-24 16:05:04 +0800
commit2683dac3f6f2fa6dd7c772e100a009f23655f0b0 (patch)
treecaa933143635bc17d8a48b835390baf47900cf9b /science
parent5cac819b158234d6b4d5e5b54a7d82ce8491f805 (diff)
downloadfreebsd-ports-gnome-2683dac3f6f2fa6dd7c772e100a009f23655f0b0.tar.gz
freebsd-ports-gnome-2683dac3f6f2fa6dd7c772e100a009f23655f0b0.tar.zst
freebsd-ports-gnome-2683dac3f6f2fa6dd7c772e100a009f23655f0b0.zip
science/nwchem: Add additional build steps and environment variables
Otherwise the binary fails for some testcases. Reported by: upstream maintainer, user edoapra on github
Diffstat (limited to 'science')
-rw-r--r--science/nwchem/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/science/nwchem/Makefile b/science/nwchem/Makefile
index 1ffca3d584fd..5265c25f5940 100644
--- a/science/nwchem/Makefile
+++ b/science/nwchem/Makefile
@@ -2,7 +2,7 @@
PORTNAME= nwchem
DISTVERSION= 6.8.1-release-94
-PORTREVISION= 1
+PORTREVISION= 2
DISTVERSIONSUFFIX= -g1a262862b
CATEGORIES= science
@@ -27,7 +27,8 @@ SHEBANG_GLOB= *.sh
USE_GITHUB= yes
GH_ACCOUNT= nwchemgit
MAKEFILE= GNUmakefile
-MAKE_ENV= NWCHEM_TOP=${WRKSRC}/.. NWCHEM_MODULES=all NWCHEM_LONG_PATHS=Y NWCHEM_TARGET=LINUX64 USE_MPI=Y USE_INTERNALBLAS=Y EXTERNAL_GA_PATH=${LOCALBASE} BLAS_SIZE=4
+MAKE_ENV= NWCHEM_TOP=${WRKSRC}/.. NWCHEM_MODULES=all NWCHEM_LONG_PATHS=Y NWCHEM_TARGET=LINUX64 USE_MPI=Y USE_INTERNALBLAS=Y EXTERNAL_GA_PATH=${LOCALBASE} \
+ BLAS_SIZE=4 USE_64TO32=y
SUB_FILES= nwchemrc
@@ -37,6 +38,11 @@ BINARY_ALIAS= gcc=${CC}
post-patch:
@${REINPLACE_CMD} 's|nwchrc="/etc/nwchemrc"|nwchrc="${PREFIX}/etc/nwchemrc"|' ${WRKSRC}/util/util_nwchemrc.F
+pre-build:
+ @cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} nwchem_config && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} 64_to_32
+
do-install:
${INSTALL_DATA} ${WRKDIR}/nwchemrc ${STAGEDIR}${PREFIX}/etc/nwchemrc
${INSTALL_PROGRAM} ${WRKSRC}/../bin/LINUX64/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.shadow