summaryrefslogtreecommitdiff
path: root/math/glm/Makefile
blob: 6e293c8199945ea2124989e5686743e8a1c1d1e6 (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
PORTNAME=	glm
PORTVERSION=	0.9.9.8
PORTEPOCH=	1
CATEGORIES=	math graphics

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	C++ mathematics library for software based on the OpenGL GLSL

LICENSE=	MIT

USES=		cmake compiler:c++11-lang pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	g-truc
NO_ARCH=	yes

SUB_FILES=	glm.pc

PORTDOCS=	*

OPTIONS_DEFINE=	TEST DOCS
TEST_CMAKE_BOOL=	GLM_TEST_ENABLE
TEST_TEST_TARGET=	test

post-patch:
	@${REINPLACE_CMD} -e '/printf/ s|EndTime - StartTime|static_cast<long>(&)|' \
		${WRKSRC}/test/core/core_func_matrix.cpp

do-install:
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "glm" ${STAGEDIR}${PREFIX}/include \
		"-not -name CMakeLists.txt"
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cmake/glm
	${INSTALL_DATA} ${WRKSRC}/cmake/glm/*.cmake ${STAGEDIR}${PREFIX}/lib/cmake/glm
	${INSTALL_DATA} ${WRKDIR}/glm.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig

do-install-DOCS-on:
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "doc *.md" ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>