2018-08-24 19:54:03 +02:00
PORTNAME = octopus
2021-08-09 03:57:09 +02:00
DISTVERSION = 10.5
2018-08-24 19:54:03 +02:00
CATEGORIES = science
2020-04-05 03:17:39 +02:00
MASTER_SITES = https://octopus-code.org/download/${ DISTVERSION } /
2018-08-24 19:54:03 +02:00
MAINTAINER = yuri@FreeBSD.org
COMMENT = Scientific program aimed at the ab initio virtual experimentation
LICENSE = GPLv2
BUILD_DEPENDS = bash:shells/bash
2018-10-04 23:10:42 +02:00
LIB_DEPENDS = libarpack.so:math/arpack-ng \
2018-08-24 19:54:03 +02:00
libblas.so:math/blas \
libfftw3.so:math/fftw3 \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libgd.so:graphics/gd \
libgsl.so:math/gsl \
liblapack.so:math/lapack \
2018-12-14 03:21:27 +01:00
libnlopt.so:math/nlopt \
2019-06-16 18:05:28 +02:00
libpng.so:graphics/png \
2019-01-20 02:04:39 +01:00
libsymspg.so:science/spglib \
2018-08-24 19:54:03 +02:00
libtiff.so:graphics/tiff \
2020-10-13 07:36:02 +02:00
libvdwxcfort.so:science/libvdwxc \
2018-08-24 19:54:03 +02:00
libwebp.so:graphics/webp \
2020-10-13 07:36:02 +02:00
libxc.so:science/libxc \
libyaml.so:textproc/libyaml
2018-08-24 19:54:03 +02:00
2020-10-13 07:36:02 +02:00
USES = compiler:c++11-lang fortran gmake jpeg localbase:ldflags perl5 python shebangfix
SHEBANG_FILES = src/fdep/fortran_dependencies.pl testsuite/performance/create_combinations.py
2018-08-24 19:54:03 +02:00
GNU_CONFIGURE = yes
CONFIGURE_SHELL = ${ PREFIX } /bin/bash
USE_CXXSTD = c++11
2020-10-13 07:36:02 +02:00
LDFLAGS += -lsymspg
2018-08-24 19:54:03 +02:00
FCFLAGS += -I${ LOCALBASE } /include -ffree-line-length-none
2019-01-20 02:04:39 +01:00
OPTIONS_DEFINE = OPENMP
OPTIONS_DEFAULT = OPENMP
OPENMP_CONFIGURE_ENABLE = openmp
2020-11-17 23:39:17 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
# workaround for:
# Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see '-fno-allow-invalid-boz']
. i f $ { G C C _ D E F A U L T } > = 1 0
FCFLAGS += -fallow-argument-mismatch -fallow-invalid-boz
. e n d i f
2018-08-24 19:54:03 +02:00
post-stage : # https://gitlab.com/octopus-code/octopus/issues/108
@${ RM } ${ STAGEDIR } ${ PREFIX } /include/yaml.h
2020-11-17 23:39:17 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >