Skip to content

Commit

Permalink
science/multiwfn: Small corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Jun 20, 2023
1 parent 2651c3e commit c7610a5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions science/multiwfn/Makefile
Expand Up @@ -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
Expand All @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit c7610a5

Please sign in to comment.