blob: 609f71b277a263248303f658f1e137a2080d7f69 (
plain)
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
39
|
PORTNAME= fp16
PORTVERSION= g20200514
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Conversion to/from half-precision floating point formats
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ${LOCALBASE}/include/psimd.h:devel/psimd
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= Maratyszcza
GH_PROJECT= ${PORTNAME:tu}
GH_TAGNAME= 4dfe081cf6bcd15db339cf2680b9281b8451eeb3
CMAKE_OFF= FP16_BUILD_TESTS FP16_BUILD_BENCHMARKS
NO_BUILD= yes
NO_ARCH= yes
PLIST_FILES= include/fp16.h \
include/fp16/__init__.py \
include/fp16/avx.py \
include/fp16/avx2.py \
include/fp16/bitcasts.h \
include/fp16/fp16.h
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFP16_BUILD_TESTS: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>
|