# Created by: Pedro F. Giffuni
# $FreeBSD: head/science/tfel/Makefile 467711 2018-04-18 13:57:42Z jbeich $

PORTNAME=	tfel
PORTVERSION=	3.1.1
PORTREVISION=	1
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 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>
