~cypheon/pkgsrc-wip

pkgsrc-wip/glm/Makefile -rw-r--r-- 786 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD$

DISTNAME=	glm-0.9.9.8
CATEGORIES=	graphics math
MASTER_SITES=	${MASTER_SITE_GITHUB:=g-truc/}
EXTRACT_SUFX=	.zip

MAINTAINER=	jihbed.research@gmail.com
HOMEPAGE=	https://glm.g-truc.net/
COMMENT=	C++ mathematics library for software based on the OpenGL GLSL
LICENSE=	mit

NO_BUILD=	yes
NO_CONFIGURE=	yes

USE_TOOLS+=	pax
USE_TOOLS+=	pkg-config

GLM_DIR=		include/glm
INSTALLATION_DIRS=	${GLM_DIR}

do-install:
	${RUN}cd ${WRKSRC}/glm && \
		${CHMOD} 644 *hpp detail/* ext/* gtc/* gtx/* simd/*
	${RUN}cd ${WRKSRC}/glm && \
		pax -rw *hpp detail ext gtc gtx simd \
			${DESTDIR}${PREFIX}/${GLM_DIR}

# for test target
USE_CMAKE=     yes
USE_LANGUAGES=	c c++
do-test:
	${RUN}cd ${WRKSRC} && \
		cmake -DGLM_TEST_MODE=ON CMakeLists.txt && \
		make

.include "../../mk/bsd.pkg.mk"