summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-11-22 11:50:50 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-11-22 11:55:43 -0500
commite341167ac5353386cd5c9b3c52514450bbb405ea (patch)
tree077dcaf4f97f72ee22ef2b5416160026ed2c4309
parent3d65474c8699ad5b7b828428b9f9093be5402ee8 (diff)
downloadgentoo-overlay-e341167ac5353386cd5c9b3c52514450bbb405ea.tar.xz
gentoo-overlay-e341167ac5353386cd5c9b3c52514450bbb405ea.zip
media-libs/libjxl: various fixes
-rw-r--r--media-libs/libjxl/libjxl-9999.ebuild28
1 files changed, 12 insertions, 16 deletions
diff --git a/media-libs/libjxl/libjxl-9999.ebuild b/media-libs/libjxl/libjxl-9999.ebuild
index ebf703c..3a6a984 100644
--- a/media-libs/libjxl/libjxl-9999.ebuild
+++ b/media-libs/libjxl/libjxl-9999.ebuild
@@ -28,11 +28,10 @@ SLOT="0/7"
if [[ ${PV} != 9999 ]]; then
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
fi
-IUSE="apng doc gdk-pixbuf gif gimp java +jpeg +man openexr qt5 static-libs test"
+IUSE="apng doc gdk-pixbuf gif gimp java +jpeg +man openexr qt5 static-libs test +tools"
RDEPEND="app-arch/brotli[${MULTILIB_USEDEP}]
dev-cpp/highway[${MULTILIB_USEDEP}]
- media-libs/lcms[${MULTILIB_USEDEP}]
apng? (
media-libs/libpng[${MULTILIB_USEDEP}]
sys-libs/zlib[${MULTILIB_USEDEP}]
@@ -42,7 +41,7 @@ RDEPEND="app-arch/brotli[${MULTILIB_USEDEP}]
gimp? ( media-gfx/gimp:0/2 )
java? ( >=virtual/jre-1.8:* )
jpeg? ( virtual/jpeg[${MULTILIB_USEDEP}] )
- openexr? ( media-libs/openexr:=[${MULTILIB_USEDEP}] )
+ openexr? ( media-libs/openexr:= )
qt5? (
dev-qt/qtwidgets
dev-qt/qtx11extras
@@ -76,23 +75,20 @@ multilib_src_configure() {
-DJPEGXL_ENABLE_COVERAGE=OFF
-DJPEGXL_ENABLE_EXAMPLES=OFF
-DJPEGXL_ENABLE_FUZZERS=OFF
- -DJPEGXL_ENABLE_JNI=$(multilib_native_usex java ON OFF)
- -DJPEGXL_ENABLE_MANPAGES=$(multilib_native_usex man ON OFF)
- -DJPEGXL_ENABLE_OPENEXR=$(usex openexr ON OFF)
- -DJPEGXL_ENABLE_PLUGINS=ON # USE=gdk-pixbuf, USE=gimp handled in src_prepare
+ -DJPEGXL_ENABLE_TOOLS=$(multilib_native_usex tools)
+ -DJPEGXL_ENABLE_JNI=$(multilib_native_usex java)
+ -DJPEGXL_ENABLE_MANPAGES=$(multilib_native_usex man)
+ -DJPEGXL_ENABLE_OPENEXR=$(multilib_native_usex openexr)
+ -DJPEGXL_ENABLE_PLUGINS=$(multilib_is_native_abi && echo ON || echo OFF) # USE=gdk-pixbuf, USE=gimp handled in src_prepare
-DJPEGXL_ENABLE_SJPEG=OFF
-DJPEGXL_ENABLE_SKCMS=ON
-DJPEGXL_ENABLE_TCMALLOC=OFF
- -DJPEGXL_ENABLE_VIEWERS=$(multilib_native_usex qt5 ON OFF)
- -DJPEGXL_FORCE_SYSTEM_BROTLI=ON
- -DJPEGXL_FORCE_SYSTEM_GTEST=ON
- -DJPEGXL_FORCE_SYSTEM_HWY=ON
+ -DJPEGXL_ENABLE_VIEWERS=$(multilib_native_usex qt5)
- $(cmake_use_find_package apng PNG)
- $(cmake_use_find_package apng ZLIB)
+ -DCMAKE_DISABLE_FIND_PACKAGE_PNG=$(multilib_native_usex png OFF ON)
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
- $(cmake_use_find_package gif GIF)
- $(cmake_use_find_package jpeg JPEG)
+ -DCMAKE_DISABLE_FIND_PACKAGE_GIF=$(multilib_native_usex gif OFF ON)
+ -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=$(multilib_native_usex jpeg OFF ON)
)
cmake_src_configure
@@ -101,7 +97,7 @@ multilib_src_configure() {
multilib_src_install() {
cmake_src_install
if ! use static-libs; then
- rm "${ED}"/usr/$(get_libdir)/libjxl{,_dec}.a || die
+ rm "${ED}"/usr/lib*/*.a || die
fi
if use java && multilib_is_native_abi; then
java-pkg_doso tools/libjxl_jni.so