blob: b7ad6fa69f9db3118fcbebff24ac83ec684e9657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= multiwfn
DISTVERSIONPREFIX= v
DISTVERSION= 3.8
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-${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
WWW= http://sobereva.com/multiwfn/index.html
LICENSE= GPLv2
ONLY_FOR_ARCHS= 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 \
libopenblas.so:math/openblas
RUN_DEPENDS= bash:shells/bash
USES= gl gmake fortran motif xorg
USE_GL= gl
USE_XORG= x11 xt
#USE_GITHUB= yes
#GH_ACCOUNT= stecue
#GH_PROJECT= gMultiwfn
WRKSRC= ${WRKDIR}/Multiwfn_${DISTVERSION}_dev_src_Linux
FCFLAGS+= -ffree-line-length-none
LDFLAGS+= -lblas -llapack
ALL_TARGET= default
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-${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
${INSTALL_PROGRAM} ${WRKSRC}/Multiwfn_noGUI ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
|