aboutsummaryrefslogtreecommitdiffstats
path: root/science/tfel/Makefile
blob: 2ba165e4b5e348f587ff7f6eeec5ec96c3739cc8 (plain) (blame)
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
# Created by: Pedro F. Giffuni
# $FreeBSD$

PORTNAME=   tfel
PORTVERSION=    3.1.2
PORTREVISION=   4
CATEGORIES= science
MASTER_SITES=   SF/${PORTNAME}/
PKGNAMESUFFIX=  -mfront

MAINTAINER= pfg@FreeBSD.org
COMMENT=    Code generation tool dedicated to material knowledge

LICENSE=    GPLv3

BUILD_DEPENDS=  gnuplot:math/gnuplot
RUN_DEPENDS=    gnuplot:math/gnuplot

USES=       cmake compiler:c++0x tar:bzip2

OPTIONS_DEFINE=     DOCS PYTHON
OPTIONS_DEFAULT=    PYTHON
OPTIONS_SUB=        yes

PYTHON_LIB_DEPENDS= ${PY_BOOST}
PYTHON_USES=        localbase python:2.7
PYTHON_CMAKE_ARGS=  `-Denable-python=ON -Denable-python-bindings=ON`
PYTHON_CMAKE_ARGS+= -Denable-broken-boost-python-module-visibility-handling

CMAKE_ARGS+=    -Denable-aster=ON
CMAKE_ARGS+=    -Denable-calculix=ON
USE_LDCONFIG=   yes

.ifdef PACKAGE_BUILDING
CMAKE_ARGS+=    -Denable-portable-build=ON
.endif

TEST_TARGET=    check

.include <bsd.port.mk>