summaryrefslogtreecommitdiff
path: root/x11-toolkits/nanogui/Makefile
blob: 3c400b85d3757069b07fa8f9c86c3c33711ca947 (plain)
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=	nanogui
DISTVERSION=	g20190922
PORTREVISION=	1
CATEGORIES=	x11-toolkits

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Minimalistic GUI library for OpenGL

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libglfw.so:graphics/glfw

USES=		cmake compiler:c++14-lang eigen:3,build,run gl xorg
USE_GITHUB=	yes
GH_ACCOUNT=	wjakob
GH_TAGNAME=	e9ec8a1a9861cf578d9c6e85a6420080aa715c03
GH_TUPLE=	wjakob:nanovg:50826f7bf0d910962e6aba2c3310ede889726917:wjakob_nanovg/ext/nanovg
USE_GL=		gl
USE_XORG=	x11 xcursor xi xinerama xrandr xxf86vm
USE_LDCONFIG=	yes
CMAKE_OFF=	NANOGUI_BUILD_EXAMPLE GLFW_BUILD_EXAMPLES

OPTIONS_DEFINE=	PYTHON
OPTIONS_DEFAULT=	PYTHON
OPTIONS_SUB=	yes

PYTHON_CMAKE_BOOL=	NANOGUI_BUILD_PYTHON
PYTHON_USES=		python
PYTHON_BUILD_DEPENDS=	${LOCALBASE}/include/pybind11/pybind11.h:devel/pybind11
PYTHON_RUN_DEPENDS=	pybind11>0:devel/pybind11

post-install:
	${INSTALL_DATA} ${WRKSRC}/ext/nanovg/src/*.h ${STAGEDIR}${PREFIX}/include/nanogui/  # bundled dependency headers aren't installed

post-install-PYTHON-on:
	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
	${MV} ${STAGEDIR}${PREFIX}/lib/nanogui*.so ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}

.include <bsd.port.mk>