mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
graphics/qt6-3d: Fix pkg-plist on i386
OPTIONS_SUB was subbing out %%SIMD%% in pkg-plist as "" for i386, even if CPUTYPE was not set, but bsd.cpu.mk only assumes that sse2 instructions are available for amd64 in this case. Reported by: pkg-fallout
This commit is contained in:
parent
825e8ab53b
commit
5405244f34
1 changed files with 3 additions and 3 deletions
|
@ -34,19 +34,19 @@ OPTIONS_DEFINE_i386= SIMD
|
|||
OPTIONS_DEFINE_amd64= SIMD
|
||||
OPTIONS_DEFAULT_i386= SIMD
|
||||
OPTIONS_DEFAULT_amd64= SIMD
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSIMD}
|
||||
. if !empty(MACHINE_CPU:Mavx2)
|
||||
CMAKE_ARGS+= -DINPUT_qt3d_simd=avx2
|
||||
PLIST_SUB+= AVX2=""
|
||||
PLIST_SUB+= AVX2="" SIMD=""
|
||||
. elif !empty(MACHINE_CPU:Msse2)
|
||||
CMAKE_ARGS+= -DINPUT_qt3d_simd=sse2
|
||||
PLIST_SUB+= AVX2="@comment "
|
||||
PLIST_SUB+= AVX2="@comment " SIMD=""
|
||||
. else
|
||||
CMAKE_ARGS+= -DINPUT_qt3d_simd=no
|
||||
PLIST_SUB+= SIMD="@comment "
|
||||
. endif
|
||||
.else
|
||||
CMAKE_ARGS+= -DINPUT_qt3d_simd=no
|
||||
|
|
Loading…
Add table
Reference in a new issue