From 409edb079a07cdfd7034dcaba56e97a999331186 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sat, 26 Jun 2021 17:55:53 -0400 Subject: media-libs/libjxl: more fixes --- media-libs/libjxl/libjxl-9999.ebuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'media-libs') 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 +} -- cgit v1.2.3-70-g09d2