Lines 1-6
Link Here
|
1 |
PORTNAME= cglm |
1 |
PORTNAME= cglm |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 0.8.4 |
3 |
DISTVERSION= 0.8.4 |
|
|
4 |
PORTREVISION= 1 |
4 |
CATEGORIES= math |
5 |
CATEGORIES= math |
5 |
|
6 |
|
6 |
MAINTAINER= yuri@FreeBSD.org |
7 |
MAINTAINER= yuri@FreeBSD.org |
Lines 9-24
COMMENT= Highly optimized graphics math (glm) for C
Link Here
|
9 |
LICENSE= MIT |
10 |
LICENSE= MIT |
10 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
11 |
|
12 |
|
12 |
USES= cmake compiler:c11 |
13 |
USES= compiler:c11 meson |
13 |
USE_LDCONFIG= yes |
14 |
USE_LDCONFIG= yes |
14 |
|
15 |
|
15 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
16 |
GH_ACCOUNT= recp |
17 |
GH_ACCOUNT= recp |
17 |
|
18 |
|
18 |
do-test: |
19 |
pre-test: |
19 |
@cd ${BUILD_WRKSRC} && \ |
20 |
@if [ ! -e ${WRKDIR}/.meson_build_testing ]; then \ |
20 |
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DCGLM_USE_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \ |
21 |
${RM} ${CONFIGURE_COOKIE} ${BUILD_COOKIE}; \ |
21 |
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ |
22 |
${MAKE} -C${.CURDIR} build MESON_ARGS="`make -V MESON_ARGS` --reconfigure -Dbuild_tests=true"; \ |
22 |
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test |
23 |
${TOUCH} ${WRKDIR}/.meson_build_testing; \ |
|
|
24 |
fi |
23 |
|
25 |
|
24 |
.include <bsd.port.mk> |
26 |
.include <bsd.port.mk> |