diff --git a/science/ocean/Makefile b/science/ocean/Makefile index be6c0abb02f7..b01af1c17067 100644 --- a/science/ocean/Makefile +++ b/science/ocean/Makefile @@ -1,54 +1,56 @@ PORTNAME= ocean DISTVERSIONPREFIX= v -DISTVERSION= 3.0.5 +DISTVERSION= 3.1.0 CATEGORIES= science PKGNAMESUFFIX= -spectroscopy-code MAINTAINER= yuri@FreeBSD.org COMMENT= BSE code for core spectroscopy WWW= https://github.com/times-software/OCEAN LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/License LIB_DEPENDS= libfftw3.so:math/fftw3 \ libopenblas.so:math/openblas RUN_DEPENDS= abinit>0:science/abinit \ quantum-espresso>0:science/quantum-espresso USES= fortran gmake localbase perl5 shebangfix USE_PERL5= build run SHEBANG_GLOB= *.pl USE_GITHUB= yes GH_ACCOUNT= times-software GH_PROJECT= ${PORTNAME:tu} -MAKE_ARGS= MPIFC=${MPIFC} MPI_HOME=${MPI_HOME} +MAKE_ARGS= MPIFC=${MPIFC} \ + MPI_HOME=${MPI_HOME} \ + MPI_LIBS="${MPI_LIBS}" BINARY_ALIAS= make=${GMAKE} OPTIONS_SINGLE= MPI OPTIONS_SINGLE_MPI= MPICH OPENMPI OPTIONS_DEFAULT= OPENMPI MPICH_USES= mpi:mpich OPENMPI_USES= mpi:openmpi post-extract: # copy in the Makefile.arch file @${LN} -s ${FILESDIR}/Makefile.arch ${WRKSRC}/ # set execution flag on all *.pl files @${FIND} ${WRKSRC} -name "*.pl" | ${XARGS} ${CHMOD} +x post-patch: # patch the bash path (but run_examples.pl is currently dysfunctional, according to README) @${REINPLACE_CMD} -i '' -e 's|#!/bin/bash|#!${LOCALBASE}/bin/bash|' ${WRKSRC}/EXAMPLE/run_examples.pl post-install: # strip binaries @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*.x .include diff --git a/science/ocean/distinfo b/science/ocean/distinfo index b057ea0ff21d..67e8685ea93d 100644 --- a/science/ocean/distinfo +++ b/science/ocean/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1697388765 -SHA256 (times-software-OCEAN-v3.0.5_GH0.tar.gz) = afa10aab7d088f5fef232d5a145be2ed8ae255e47e57176b26d34b4d8544df15 -SIZE (times-software-OCEAN-v3.0.5_GH0.tar.gz) = 8881149 +TIMESTAMP = 1697526501 +SHA256 (times-software-OCEAN-v3.1.0_GH0.tar.gz) = 0f3a0a575c53b0bd40e63b68d4459cd90bc5db115a51364a771b5e882362ef55 +SIZE (times-software-OCEAN-v3.1.0_GH0.tar.gz) = 8881276 diff --git a/science/ocean/files/Makefile.arch b/science/ocean/files/Makefile.arch index 1c6c1d23d2a5..1e73eba991e8 100644 --- a/science/ocean/files/Makefile.arch +++ b/science/ocean/files/Makefile.arch @@ -1,29 +1,29 @@ MPIFORT=${MPIFC} OPTIONS=-I${LOCALBASE}/include ${FCFLAGS} # enables fortran preprocessor OPTIONS += -cpp # Currently the bse solver needs MPI and BLAS OPTIONS += -DBLAS -DMPI # Some installations of MPI don't have latest calls # ( MPI_IALLREDUCE, etc. ) OPTIONS += -D__OLD_MPI OPTIONS += -fallow-argument-mismatch OPTIONS += -ffree-line-length-512 OPTIONS += -D__FFTW3 FFTWI = -I$(PREFIX)/include/ FFTWL = -L$(PREFIX)/lib/ -lfftw3 BLAS = -L$(PREFIX) -lopenblas # Install Directory INSTDIR = $(DESTDIR)$(PREFIX)/bin -MPI_LDFLAGS= -L${MPI_HOME}/lib +MPI_LDFLAGS= ${MPI_LIBS}