summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-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
+}