Update science/xtb to version 6.3.2
[dports.git] / science / octopus / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       octopus
4 DISTVERSION=    9.2
5 CATEGORIES=     science
6 MASTER_SITES=   https://octopus-code.org/download/${DISTVERSION}/
7
8 MAINTAINER=     yuri@FreeBSD.org
9 COMMENT=        Scientific program aimed at the ab initio virtual experimentation
10
11 LICENSE=        GPLv2
12
13 BUILD_DEPENDS=  bash:shells/bash
14 LIB_DEPENDS=    libarpack.so:math/arpack-ng \
15                 libblas.so:math/blas \
16                 libfftw3.so:math/fftw3 \
17                 libfontconfig.so:x11-fonts/fontconfig \
18                 libfreetype.so:print/freetype2 \
19                 libgd.so:graphics/gd \
20                 libgsl.so:math/gsl \
21                 liblapack.so:math/lapack \
22                 libnlopt.so:math/nlopt \
23                 libpng.so:graphics/png \
24                 libsymspg.so:science/spglib \
25                 libtiff.so:graphics/tiff \
26                 libwebp.so:graphics/webp \
27                 libxc.so:science/libxc
28
29 USES=           compiler:c++11-lang fortran gmake jpeg localbase:ldflags perl5 shebangfix
30 SHEBANG_FILES=  src/fdep/fortran_dependencies.pl
31 GNU_CONFIGURE=  yes
32 CONFIGURE_SHELL=        ${PREFIX}/bin/bash
33 USE_CXXSTD=     c++11
34
35 FCFLAGS+=       -I${LOCALBASE}/include -ffree-line-length-none
36
37 OPTIONS_DEFINE=                 OPENMP
38 OPTIONS_DEFAULT=                OPENMP
39 OPENMP_CONFIGURE_ENABLE=        openmp
40
41 post-extract: # unbundle spglib, see https://gitlab.com/octopus-code/octopus/issues/124
42         @${RM} -r ${WRKSRC}/external_libs/spglib-*
43         @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} 's|$$(top_builddir)/external_libs/spglib-1\.9\.9/src/libsymspg\.a|${LOCALBASE}/lib/libsymspg.so|'
44
45 post-stage: # https://gitlab.com/octopus-code/octopus/issues/108
46         @${RM} ${STAGEDIR}${PREFIX}/include/yaml.h
47
48 .include <bsd.port.mk>