summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2023-04-24 02:56:59 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2023-04-28 18:13:36 +0200
commit48cc556c9e9dfba6d40ebac37b5df51ac20df6d7 (patch)
tree37b18f1e7b65d62a10a5f818d35b338a12355456
parentnet/iodine: update to 0.8.0 (diff)
misc/vfc: fix build on armv7
Supply -mfpu=neon-fp16 in CXXFLAGS to permit use of half-precision floats in NEON code. This is supported by armv7 devices as early as the Raspberry Pi 2, but excludes armv6 devices (these don't have NEON). Approved by: portmgr (build fix blanket)
-rw-r--r--misc/vfc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/vfc/Makefile b/misc/vfc/Makefile
index a0de1ad1c3a7..e87abb5c08bb 100644
--- a/misc/vfc/Makefile
+++ b/misc/vfc/Makefile
@@ -10,6 +10,9 @@ WWW= https://github.com/akb825/VertexFormatConvert
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+NOT_FOR_ARCHS= armv6
+NOT_FOR_ARCHS_REASON= requires NEON with FP16 support on ARM
+
TEST_DEPENDS= googletest>0:devel/googletest
USES= cmake:testing compiler:c++14-lang
@@ -24,4 +27,7 @@ CMAKE_ON= VFC_SHARED
CMAKE_OFF= VFC_BUILD_TESTS
CMAKE_TESTING_ON= VFC_BUILD_TESTS
+CXXFLAGS+= ${CXXFLAGS_${ARCH}}
+CXXFLAGS_armv7= -mfpu=neon-fp16
+
.include <bsd.port.mk>