diff options
Diffstat (limited to 'media-gfx/imagemagick/imagemagick-9999.ebuild')
-rw-r--r-- | media-gfx/imagemagick/imagemagick-9999.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/media-gfx/imagemagick/imagemagick-9999.ebuild b/media-gfx/imagemagick/imagemagick-9999.ebuild index ce2194dd3355..0b6122942f86 100644 --- a/media-gfx/imagemagick/imagemagick-9999.ebuild +++ b/media-gfx/imagemagick/imagemagick-9999.ebuild @@ -85,6 +85,14 @@ PATCHES=( 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 eautoreconf @@ -129,9 +137,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 @@ -140,6 +145,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} @@ -179,7 +185,6 @@ src_configure() { $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) $(use_with wmf) $(use_with xml) - --${openmp}-openmp ) CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}" } |