diff options
Diffstat (limited to 'media-gfx/imagemagick/imagemagick-7.1.0.13.ebuild')
-rw-r--r-- | media-gfx/imagemagick/imagemagick-7.1.0.13.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/media-gfx/imagemagick/imagemagick-7.1.0.13.ebuild b/media-gfx/imagemagick/imagemagick-7.1.0.13.ebuild index 18d26de38e7a..ac18f6d0a928 100644 --- a/media-gfx/imagemagick/imagemagick-7.1.0.13.ebuild +++ b/media-gfx/imagemagick/imagemagick-7.1.0.13.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="8" @@ -81,6 +81,14 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${MY_P}" +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + src_prepare() { default @@ -124,9 +132,6 @@ src_configure() { use q8 && depth=8 use q32 && depth=32 - local openmp=disable - use openmp && { tc-has-openmp && openmp=enable; } - use perl && perl_check_env [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket @@ -135,6 +140,7 @@ src_configure() { $(use_enable static-libs static) $(use_enable hdri) $(use_enable opencl) + $(use_enable openmp) --with-threads --with-modules --with-quantum-depth=${depth} @@ -174,7 +180,6 @@ src_configure() { $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) $(use_with wmf) $(use_with xml) - --${openmp}-openmp --with-gcc-arch=no-automagic ) CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}" |