1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/math/cglm/Makefile
Mark Linimon 14f4c9f35b Add compiler:c11 to USES to fix build on GCC-based systems:
CMake Error in CMakeLists.txt:
  Target "cglm" requires the language dialect "C11" (with compiler
  extensions), but CMake does not know the compile flags to use to enable it.

Approved by:	portmgr (tier-2 blanket)
2020-06-17 20:19:23 +00:00

26 lines
579 B
Makefile

# $FreeBSD$
PORTNAME= cglm
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.6
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Highly optimized graphics math (glm) for C
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c11
USE_GITHUB= yes
GH_ACCOUNT= recp
USE_LDCONFIG= yes
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DCGLM_USE_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>