2016-11-11 16:49:21 +00:00
|
|
|
# Created by: Pedro F. Giffuni
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tfel
|
2020-12-13 14:48:11 +00:00
|
|
|
PORTVERSION= 3.4.0
|
2016-11-11 16:49:21 +00:00
|
|
|
CATEGORIES= science
|
|
|
|
MASTER_SITES= SF/${PORTNAME}/
|
|
|
|
PKGNAMESUFFIX= -mfront
|
|
|
|
|
2020-12-07 00:34:02 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2016-11-11 16:49:21 +00:00
|
|
|
COMMENT= Code generation tool dedicated to material knowledge
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2018-03-09 21:55:37 +00:00
|
|
|
BUILD_DEPENDS= gnuplot:math/gnuplot
|
|
|
|
RUN_DEPENDS= gnuplot:math/gnuplot
|
2017-11-25 10:43:57 +00:00
|
|
|
|
2020-11-07 08:19:42 +00:00
|
|
|
USES= cmake compiler:c++0x fortran tar:bzip2
|
2017-05-04 20:30:48 +00:00
|
|
|
|
2020-12-13 14:48:11 +00:00
|
|
|
CONFLICTS_INSTALL= tfel-mfront-edf-3.*
|
2020-11-26 20:46:02 +00:00
|
|
|
|
2020-11-07 08:19:42 +00:00
|
|
|
OPTIONS_DEFINE= DOCS PYTHON
|
|
|
|
OPTIONS_DEFAULT= DOCS PYTHON
|
2019-12-01 15:56:04 +00:00
|
|
|
|
2018-03-09 21:55:37 +00:00
|
|
|
OPTIONS_SUB= yes
|
2016-11-11 16:49:21 +00:00
|
|
|
|
2020-11-07 08:19:42 +00:00
|
|
|
PYTHON_USES= localbase python
|
|
|
|
PYTHON_BUILD_DEPENDS= ${PYNUMPY}
|
|
|
|
PYTHON_LIB_DEPENDS= ${PY_BOOST} \
|
|
|
|
libboost_thread.so:devel/boost-libs
|
|
|
|
PYTHON_RUN_DEPENDS= ${PYNUMPY}
|
|
|
|
PYTHON_CMAKE_BOOL= enable-python enable-python-bindings
|
2016-11-11 16:49:21 +00:00
|
|
|
|
2020-11-07 08:19:42 +00:00
|
|
|
CMAKE_ON= enable-aster enable-calculix enable-fortran
|
|
|
|
CMAKE_ARGS+= -DCOMPILER_CXXFLAGS="${CXXFLAGS}" -DCOMPILER_FLAGS="${CFLAGS}"
|
2016-11-11 16:49:21 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2017-05-04 20:30:48 +00:00
|
|
|
.ifdef PACKAGE_BUILDING
|
2019-11-27 00:54:13 +00:00
|
|
|
CMAKE_ON+= enable-portable-build
|
2017-05-04 20:30:48 +00:00
|
|
|
.endif
|
2017-01-19 18:14:22 +00:00
|
|
|
|
2016-11-11 16:49:21 +00:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2020-12-13 14:48:11 +00:00
|
|
|
post-install:
|
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,})
|
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,})
|
|
|
|
|
2016-11-11 16:49:21 +00:00
|
|
|
.include <bsd.port.mk>
|