mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
graphics/qt5-q3d: convert AVX2 detection hack to OPTIONS (+)
Force qt5-qmake to pass CXXFLAGS to cpu features test. Define AVX OPTION only amd64/i386 arches due to cpu used. Off by default to keep out-of-box behavior and allow to build qt5-q3d and its consumes on any old processors. Necromages, go forward! :) PR: 255753 With hat: desktop Sponsored by: Netzkommune GmbH
This commit is contained in:
parent
1a2add4b17
commit
183d079fd6
@ -1,6 +1,6 @@
|
||||
PORTNAME= qmake
|
||||
DISTVERSION= ${QT5_VERSION}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
PKGNAMEPREFIX= qt5-
|
||||
|
||||
|
6
devel/qt5-qmake/files/patch-config.tests_arch_arch.pro
Normal file
6
devel/qt5-qmake/files/patch-config.tests_arch_arch.pro
Normal file
@ -0,0 +1,6 @@
|
||||
--- config.tests/arch/arch.pro.orig 2021-05-26 21:40:42 UTC
|
||||
+++ config.tests/arch/arch.pro
|
||||
@@ -1,2 +1,3 @@
|
||||
SOURCES = arch.cpp
|
||||
+QMAKE_CXXFLAGS += $$(CXXFLAGS)
|
||||
include(write_info.pri)
|
@ -1,6 +1,6 @@
|
||||
PORTNAME= 3d
|
||||
DISTVERSION= ${QT5_VERSION}
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= graphics
|
||||
PKGNAMEPREFIX= qt5-
|
||||
|
||||
@ -12,6 +12,12 @@ LIB_DEPENDS= libassimp.so:multimedia/assimp
|
||||
USES= compiler:c++11-lang pkgconfig qmake:norecursive qt-dist:5,3d
|
||||
USE_QT= concurrent core declarative gui network buildtools_build
|
||||
|
||||
OPTIONS_DEFINE_amd64= AVX
|
||||
OPTIONS_DEFINE_i386= AVX
|
||||
|
||||
AVX_DESC= Build for Intel CPUs with AVX* support (Haswell+)
|
||||
AVX_EXTRA_PATCHES= ${FILESDIR}/extrapatch-src_core_configure.json
|
||||
|
||||
QT_BINARIES= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user