aboutsummaryrefslogtreecommitdiff
path: root/cad/ifcopenshell/Makefile
blob: ec7d87e9a63281b65e22009ea2c6bac3a1efc99a (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
# $FreeBSD$

PORTNAME=	ifcopenshell
DISTVERSIONPREFIX=	v
DISTVERSION=	0.6.0
DISTVERSIONSUFFIX=	b0
PORTREVISION=	2
CATEGORIES=	cad

MAINTAINER=	lbartoletti@FreeBSD.org
COMMENT=	Open source IFC library and geometry engine

LICENSE=	LGPL3+
LICENSE_FILE=	${WRKSRC}/COPYING.LESSER

BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
		libTKernel.so:cad/opencascade

USES=		cmake compiler:c++11-lang eigen:3 gnome
USE_GNOME=	libxml2
USE_LDCONFIG=	yes
USE_GITHUB=	yes
GH_PROJECT=	IfcOpenShell

CMAKE_SOURCE_PATH=	${WRKSRC}/cmake

CMAKE_OFF=	BUILD_IFCPYTHON \
		COLLADA_SUPPORT
CMAKE_ON=	BUILD_SHARED_LIBS \
		ENABLE_BUILD_OPTIMIZATIONS \
		GLTF_SUPPORT
CMAKE_ARGS=	-Djson_hpp=${LOCALBASE}/include/nlohmann \
		-DOCC_INCLUDE_DIR=${LOCALBASE}/include/OpenCASCADE \
		-DOCC_LIBRARY_DIR=${LOCALBASE}/lib

.include <bsd.port.mk>