6 MASTER_SITES= https://octopus-code.org/download/${DISTVERSION}/
8 MAINTAINER= yuri@FreeBSD.org
9 COMMENT= Scientific program aimed at the ab initio virtual experimentation
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 \
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
29 USES= compiler:c++11-lang fortran gmake jpeg localbase:ldflags perl5 shebangfix
30 SHEBANG_FILES= src/fdep/fortran_dependencies.pl
32 CONFIGURE_SHELL= ${PREFIX}/bin/bash
35 FCFLAGS+= -I${LOCALBASE}/include -ffree-line-length-none
37 OPTIONS_DEFINE= OPENMP
38 OPTIONS_DEFAULT= OPENMP
39 OPENMP_CONFIGURE_ENABLE= openmp
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|'
45 post-stage: # https://gitlab.com/octopus-code/octopus/issues/108
46 @${RM} ${STAGEDIR}${PREFIX}/include/yaml.h
48 .include <bsd.port.mk>