summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-06-26 17:55:53 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-06-26 17:55:53 -0400
commit409edb079a07cdfd7034dcaba56e97a999331186 (patch)
treea9d15056f0a01b3738e2bb78eb1870073c1f1620
parent278ecadf9c8bce035a51fee33ea7fc5c89c0aa5b (diff)
downloadgentoo-overlay-409edb079a07cdfd7034dcaba56e97a999331186.tar.xz
gentoo-overlay-409edb079a07cdfd7034dcaba56e97a999331186.zip
media-libs/libjxl: more fixes
-rw-r--r--media-libs/libjxl/libjxl-9999.ebuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/media-libs/libjxl/libjxl-9999.ebuild b/media-libs/libjxl/libjxl-9999.ebuild
index b5b243e..27675c3 100644
--- a/media-libs/libjxl/libjxl-9999.ebuild
+++ b/media-libs/libjxl/libjxl-9999.ebuild
@@ -13,7 +13,7 @@ EGIT_SUBMODULES=(third_party/lodepng third_party/skcms)
LICENSE="Apache-2.0"
SLOT="0"
-IUSE="apng doc gif jpeg +man openexr test viewers"
+IUSE="apng doc gif jpeg +man openexr static-libs test viewers"
RDEPEND="app-arch/brotli
dev-libs/highway
@@ -53,11 +53,20 @@ src_configure() {
-DJPEGXL_FORCE_SYSTEM_BROTLI=ON
-DJPEGXL_WARNINGS_AS_ERRORS=OFF
+ $(cmake_use_find_package apng PNG)
+ $(cmake_use_find_package apng ZLIB)
+ $(cmake_use_find_package doc Doxygen)
$(cmake_use_find_package gif GIF)
$(cmake_use_find_package jpeg JPEG)
- $(cmake_use_find_package png PNG)
- $(cmake_use_find_package doc Doxygen)
)
cmake_src_configure
}
+
+src_install() {
+ cmake_src_install
+ dobin "${BUILD_DIR}/examples/jxlinfo"
+ if ! use static-libs; then
+ rm "${ED}"/usr/$(get_libdir)/libjxl{,_dec}.a
+ fi
+}