Files
ports/math/universal/Makefile
T
2026-05-13 23:14:34 -07:00

37 lines
1.0 KiB
Makefile

PORTNAME= universal
DISTVERSIONPREFIX= v
DISTVERSION= 4.6.16
CATEGORIES= math
PKGNAMESUFFIX= -fp-library
MAINTAINER= yuri@FreeBSD.org
COMMENT= Header-only C++ template library for universal number arithmetic
WWW= https://github.com/stillwater-sc/universal
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++23-lang
USE_GITHUB= yes
GH_ACCOUNT= stillwater-sc
CMAKE_OFF= UNIVERSAL_ENABLE_TESTS BUILD_DEMONSTRATION BUILD_PLAYGROUND BUILD_EDUCATION BUILD_APPLICATIONS
OPTIONS_DEFINE= TOOLS
OPTIONS_SUB= yes
TOOLS_DESC= Build command line tools
TOOLS_CMAKE_BOOL= UNIVERSAL_BUILD_TOOLS_CMD_LINE
TOOLS_VARS_OFF= NO_ARCH=yes # header-only library w/out executables
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_OFF:C/(.*)/-D\1=ON/} ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
# tests as of 4.6.15: 100% tests passed, 0 tests failed out of 8
.include <bsd.port.mk>