1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

science/multiwfn: Small corrections

This commit is contained in:
Yuri Victorovich 2023-06-20 14:49:52 -07:00
parent 2651c3e3ba
commit c7610a5f43

View File

@ -5,7 +5,7 @@ CATEGORIES= science
MASTER_SITES= http://sobereva.com/multiwfn/misc/:main \
https://www.dislin.de/downloads/unix/:dislin
DISTFILES= Multiwfn_${DISTVERSION}_dev_src_Linux.zip:main \
dislin-11.5.fbsd.64.tar.gz:dislin # (!!!) dislin is a closed-source library distributed as binary, source code is sold for $$
dislin-${DISLIN_VERSION}.fbsd.64.tar.gz:dislin # (!!!) dislin is a closed-source library distributed as binary, source code is sold for $$
MAINTAINER= yuri@FreeBSD.org
COMMENT= Multifunctional wavefunction analysis for quantum chemistry
@ -14,7 +14,7 @@ WWW= http://sobereva.com/multiwfn/index.html
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= dislin is closed source only available for amd64
ONLY_FOR_ARCHS_REASON= dislin library is closed source for which binary is only available for amd64
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
@ -36,14 +36,18 @@ LDFLAGS+= -lblas -llapack
ALL_TARGET= default
BINARY_ALIAS= ifort=gfortran12 \
DISLIN_VERSION= 11.5
BINARY_ALIAS= ifort=gfortran${GCC_DEFAULT} \
gcc=${CC}
PLIST_FILES= bin/Multiwfn \
bin/Multiwfn_noGUI
post-patch: # replace the dislin.a library with the FreeBSD version
@${CP} ${WRKDIR}/dislin-11.5/fbsd_64/lib/dislin_d-11.5.a ${WRKSRC}/dislin_d-11.0.a
@${CP} \
${WRKDIR}/dislin-${DISLIN_VERSION}/fbsd_64/lib/dislin_d-${DISLIN_VERSION}.a \
${WRKSRC}/dislin_d-11.0.a
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Multiwfn ${STAGEDIR}${PREFIX}/bin