diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2024-03-10 20:49:58 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2024-03-10 20:51:18 +0100 |
commit | 1d5f3078732b4e7102719f3ab73628f1570deebf (patch) | |
tree | 6f09729366768b676164d50d893c71cb07e954aa /media-gfx/exact-image/exact-image-1.2.1-r1.ebuild | |
parent | sys-libs/libblockdev: Add missing test dependency (diff) | |
download | gentoo-1d5f3078732b4e7102719f3ab73628f1570deebf.tar.gz gentoo-1d5f3078732b4e7102719f3ab73628f1570deebf.tar.bz2 gentoo-1d5f3078732b4e7102719f3ab73628f1570deebf.zip |
media-gfx/exact-image: add jpegxl use flag
Closes: https://bugs.gentoo.org/926688
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'media-gfx/exact-image/exact-image-1.2.1-r1.ebuild')
-rw-r--r-- | media-gfx/exact-image/exact-image-1.2.1-r1.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/media-gfx/exact-image/exact-image-1.2.1-r1.ebuild b/media-gfx/exact-image/exact-image-1.2.1-r1.ebuild new file mode 100644 index 000000000000..7480e98e5c79 --- /dev/null +++ b/media-gfx/exact-image/exact-image-1.2.1-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua-single toolchain-funcs + +DESCRIPTION="A fast, modern and generic image processing library" +HOMEPAGE="https://exactcode.com/opensource/exactimage/" +SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="expat jpeg jpegxl lua openexr perl png swig tiff truetype X" +REQUIRED_USE="lua? ( swig ) perl? ( swig )" +# Tests are broken; 'make check' fails and referenced testsuite dir not found +RESTRICT="test" + +RDEPEND=" + x11-libs/agg[truetype] + sys-libs/zlib + expat? ( dev-libs/expat ) + jpeg? ( media-libs/libjpeg-turbo:= ) + jpegxl? ( <media-libs/libjxl-0.9:= ) + lua? ( ${LUA_DEPS} ) + openexr? ( media-libs/openexr:= ) + perl? ( dev-lang/perl ) + png? ( >=media-libs/libpng-1.2.43 ) + tiff? ( media-libs/tiff:= ) + truetype? ( >=media-libs/freetype-2 ) + X? ( + x11-libs/libXext + x11-libs/libXt + x11-libs/libICE + x11-libs/libSM + )" +DEPEND=" + ${RDEPEND} + swig? ( dev-lang/swig ) +" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${PN}-1.0.2-g++.patch +) + +src_prepare() { + default + + # Respect user CFLAGS/CXXFLAGS. + sed -i \ + -e '/C\(XX\)\?FLAGS =/s/-O2//' \ + -e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \ + Makefile || die + + # Show commands. Use qualified CC/CXX. + sed -i \ + -e '/^Q =/d' \ + -e '/^\t@echo /d' \ + -e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \ + build/bottom.make || die +} + +src_configure() { + # evas -> enlightenment overlay + # bardecode -> protected by custom license + # libungif -> not supported anymore + # python -> allegedly not python3, but python2 only + + ./configure \ + --prefix=/usr \ + --libdir=/usr/$(get_libdir) \ + $(use_with X x11) \ + $(use_with truetype freetype) \ + --without-evas \ + $(use_with jpeg libjpeg) \ + $(use_with jpegxl libjxl) \ + $(use_with tiff libtiff) \ + $(use_with png libpng) \ + --without-libgif \ + --without-jasper \ + $(use_with openexr) \ + $(use_with expat) \ + --without-lcms \ + --without-bardecode \ + $(use_with lua) \ + $(use_with swig) \ + $(use_with perl) \ + --without-python \ + --without-php \ + --without-ruby || die +} |