diff --git a/science/qt6-quick3dphysics/Makefile b/science/qt6-quick3dphysics/Makefile index 2f8ac5d7d9f6..578413a0b34a 100644 --- a/science/qt6-quick3dphysics/Makefile +++ b/science/qt6-quick3dphysics/Makefile @@ -1,18 +1,44 @@ PORTNAME= quick3dphysics DISTVERSION= ${QT6_VERSION} +PORTREVISION= 1 CATEGORIES= science PKGNAMEPREFIX= qt6- MAINTAINER= kde@FreeBSD.org COMMENT= High-level API for physics simulation WWW= https://qt.io BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon USES= cmake compiler:c++17-lang gl pkgconfig qt-dist:6 USE_GL= opengl +USE_LDCONFIG= yes USE_LOCALE= C.UTF-8 USE_QT= base declarative quick3d shadertools +OPTIONS_DEFINE_aarch64= SIMD +OPTIONS_DEFINE_amd64= SIMD +OPTIONS_DEFINE_armv7= SIMD +OPTIONS_DEFINE_i386= SIMD +OPTIONS_DEFAULT_aarch64=SIMD +OPTIONS_DEFAULT_amd64= SIMD +OPTIONS_DEFAULT_armv7= SIMD + +.include + +# Either SSE2 or NEON instruction sets are required on i386/amd64 or armv7/ +# aarch64, respectively, to compile vector intrinsics. However i386 does not +# guarantee SSE2, nor does armv7 NEON, but from what I understand, llvm implies +# NEON for armv7. If the SIMD option is selected on i386 and SSE2 is not +# available, we ignore. SIMD support on other platforms is not implemented. + +.if ${PORT_OPTIONS:MSIMD} +. if ${ARCH} == "i386" && empty(MACHINE_CPU:Msse2) +IGNORE= sse2 instructions required +. endif +.else +CFLAGS+= -DPX_SIMD_DISABLED +.endif + .include