x11-libs/pixman: Use tc-has-openmp

Closes: https://bugs.gentoo.org/684656
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2019-06-17 11:40:52 -04:00
parent 6e63e33be6
commit 43dafe5bc3
2 changed files with 10 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
fi
inherit ${GIT_ECLASS} meson multilib-minimal
inherit ${GIT_ECLASS} meson multilib-minimal toolchain-funcs
DESCRIPTION="Low-level pixel manipulation routines"
HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/"
@@ -30,6 +30,9 @@ src_unpack() {
}
multilib_src_configure() {
local openmp=disabled
tc-has-openmp && openmp=enabled
local emesonargs=(
$(meson_feature cpu_flags_arm_iwmmxt iwmmxt)
$(meson_use cpu_flags_arm_iwmmxt2 iwmmxt2)
@@ -41,7 +44,7 @@ multilib_src_configure() {
$(meson_feature loongson2f loongson-mmi)
-Dgtk=disabled
-Dlibpng=disabled
-Dopenmp=auto # only used in unit tests
-Dopenmp=$openmp # only used in unit tests
)
meson_src_configure
}

View File

@@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git-r3"
fi
inherit ${GIT_ECLASS} meson multilib-minimal
inherit ${GIT_ECLASS} meson multilib-minimal toolchain-funcs
DESCRIPTION="Low-level pixel manipulation routines"
HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/"
@@ -30,6 +30,9 @@ src_unpack() {
}
multilib_src_configure() {
local openmp=disabled
tc-has-openmp && openmp=enabled
local emesonargs=(
$(meson_feature cpu_flags_arm_iwmmxt iwmmxt)
$(meson_use cpu_flags_arm_iwmmxt2 iwmmxt2)
@@ -41,7 +44,7 @@ multilib_src_configure() {
$(meson_feature loongson2f loongson-mmi)
-Dgtk=disabled
-Dlibpng=disabled
-Dopenmp=auto # only used in unit tests
-Dopenmp=$openmp # only used in unit tests
)
meson_src_configure
}