summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2022-09-20 00:51:49 +0100
committerMarek Szuba <marecki@gentoo.org>2022-09-20 01:42:58 +0100
commitc9eaacb7f947b4fc08bc6631223b9398760ef7c4 (patch)
tree546e9fbe81c8cc6b00a19af773dffed01259658d /media-gfx
parentx11-misc/xwallpaper: update EAPI 7 -> 8 (diff)
downloadgentoo-c9eaacb7f947b4fc08bc6631223b9398760ef7c4.tar.gz
gentoo-c9eaacb7f947b4fc08bc6631223b9398760ef7c4.tar.bz2
gentoo-c9eaacb7f947b4fc08bc6631223b9398760ef7c4.zip
media-gfx/gmic: use different OpenMP library when using clang
Closes: https://bugs.gentoo.org/870823 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gmic/gmic-3.1.6.ebuild40
1 files changed, 23 insertions, 17 deletions
diff --git a/media-gfx/gmic/gmic-3.1.6.ebuild b/media-gfx/gmic/gmic-3.1.6.ebuild
index 936aba83276c..da836f3b546c 100644
--- a/media-gfx/gmic/gmic-3.1.6.ebuild
+++ b/media-gfx/gmic/gmic-3.1.6.ebuild
@@ -80,24 +80,30 @@ pkg_setup() {
}
gmic_emake() {
+ local mymakeargs=(
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ STRIP="/bin/true"
+ LIB="$(get_libdir)"
+ OPT_CFLAGS="${CXXFLAGS}"
+ OPT_LIBS="${LDFLAGS}"
+ GMIC_USE_CURL=$(usex curl)
+ GMIC_USE_EXR=$(usex openexr)
+ GMIC_USE_FFTW=$(usex fftw)
+ GMIC_USE_GRAPHICSMAGICK=$(usex graphicsmagick)
+ GMIC_USE_JPEG=$(usex jpeg)
+ GMIC_USE_OPENCV=$(usex opencv)
+ GMIC_USE_OPENMP=$(usex openmp)
+ GMIC_USE_PNG=$(usex png)
+ GMIC_USE_TIFF=$(usex tiff)
+ GMIC_USE_X11=$(usex X)
+ QMAKE="qmake5"
+ )
+
+ tc-is-clang && mymakeargs+=( OPENMP_LIBS="-lomp" )
+
emake -j1 -C src \
- CC="$(tc-getCC)" \
- CXX="$(tc-getCXX)" \
- STRIP="/bin/true" \
- LIB="$(get_libdir)" \
- OPT_CFLAGS="${CXXFLAGS}" \
- OPT_LIBS="${LDFLAGS}" \
- GMIC_USE_CURL=$(usex curl) \
- GMIC_USE_EXR=$(usex openexr) \
- GMIC_USE_FFTW=$(usex fftw) \
- GMIC_USE_GRAPHICSMAGICK=$(usex graphicsmagick) \
- GMIC_USE_JPEG=$(usex jpeg) \
- GMIC_USE_OPENCV=$(usex opencv) \
- GMIC_USE_OPENMP=$(usex openmp) \
- GMIC_USE_PNG=$(usex png) \
- GMIC_USE_TIFF=$(usex tiff) \
- GMIC_USE_X11=$(usex X) \
- QMAKE="qmake5" \
+ "${mymakeargs[@]}" \
$@
}