summaryrefslogtreecommitdiff
path: root/math/geogram/Makefile
blob: 15f208375f5542200b66d5d8bfcb4cb65f47accb (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
41
42
43
PORTNAME=	geogram
DISTVERSIONPREFIX=	v
DISTVERSION=	1.9.0
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Programming library of geometric algorithms
WWW=		https://github.com/BrunoLevy/geogram # was: https://github.com/alicevision/geogram

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/doc/devkit/license.dox

ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	use of inline assembly for these architectures only, at least in src/lib/geogram/basic/atomics.h

LIB_DEPENDS=	libglfw.so:graphics/glfw

USES=		cmake gl localbase:ldflags xorg
USE_XORG=	x11 xcursor xi xinerama xrandr xxf86vm
USE_GL=		gl glu
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	BrunoLevy
GH_TUPLE=	ddemidov:amgcl:a705f0822a332e215c41bccbeb6a7d92e90c49f2:ddemidov_amgcl/src/lib/geogram/third_party/amgcl \
		glfw:glfw:b35641f4a3c62aa86a0b3c983d163bc0fe36026d:glfw_glfw/src/lib/third_party/glfw \
		ocornut:imgui:6d948ab47ecf984239af01434f3ed03808dbf188:ocornut_imgui/src/lib/geogram_gfx/third_party/imgui \
		LoicMarechal:libMeshb:e3678731ef14497c720ee7017a14450eba2602d2:LoicMarechal_libMeshb/src/lib/geogram/third_party/libMeshb \
		diegonehab:rply:4296cc91b5c8c26d4e7d7aac0cee2b194ffc5800:diegonehab_rply/src/lib/geogram/third_party/rply

CMAKE_ON=	GEOGRAM_USE_SYSTEM_GLFW3 VORPALINE_BUILD_DYNAMIC
CMAKE_ARGS=	-DVORPALINE_PLATFORM:STRING=FreeBSD

LDFLAGS+=	-pthread \
		-lexecinfo

post-install:
	# delete empty folders, see https://github.com/BrunoLevy/geogram/issues/185
	@${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete

# unclear how to run tests, see https://github.com/BrunoLevy/geogram/issues/186

.include <bsd.port.mk>