From ea6f03ddd591a238d9c5004d5ffbfaf7215c01ee Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 22 Oct 2023 20:41:01 +0100 Subject: gentoo auto-resync : 22:10:2023 - 20:41:01 --- media-libs/sdl2-image/Manifest | 3 +- media-libs/sdl2-image/metadata.xml | 3 +- media-libs/sdl2-image/sdl2-image-2.6.3-r1.ebuild | 74 ++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 media-libs/sdl2-image/sdl2-image-2.6.3-r1.ebuild (limited to 'media-libs/sdl2-image') diff --git a/media-libs/sdl2-image/Manifest b/media-libs/sdl2-image/Manifest index a10adbccd257..46b688659402 100644 --- a/media-libs/sdl2-image/Manifest +++ b/media-libs/sdl2-image/Manifest @@ -1,5 +1,6 @@ DIST SDL2_image-2.0.5_p20210328.tar.gz 12397062 BLAKE2B ae4fe8c30b21bc7dca87e2e78cab43c83e891630962eb020c29ba84c2b206bb749491dccddd8bcc212f2fd07da651691151baf41212fb5ea954427543e3bf994 SHA512 9ba0b671dedfb7bde072424cebfa7d65e79d2d58416833d84548777aff6bf0edda8dbe30c3e423bbb724f794b4b191e609b148f38573b4166eef31203ab0005d DIST SDL2_image-2.6.3.tar.gz 9816720 BLAKE2B 24662637e4f621af83d9a66d1cca954549030be97fa47f4b8fc711b2a941eaa409cf99ede137eb91d25999af253791dcfb2d9229080d30ede84cc32d5c5ae997 SHA512 11f1d041a052829708560b6211a2a00b3a1ce26a6f23cb389f57fa5254372027e97d3a6ffe551134a77bc33718c3acea3df21fe8426e93a2b1955176c47c7647 EBUILD sdl2-image-2.0.5_p20210328-r1.ebuild 1765 BLAKE2B 7cc2a469c347c6aa9f2ff1306ea69ff27341f5e1de6d971dd1e03ef26cab01f247637d7cbeaf305bab2083efd2a31264fdb8c73bda56ce904f0543aa2f5a9675 SHA512 7fffbaed0ada9b2698d1a1e68eb0c116a5fbf58f4fd6ab39460d637ccc313d9e00cfdf067c414c8c1a1da9e654c11389e1e7c9b02902e57739e518b5e8ef70d2 +EBUILD sdl2-image-2.6.3-r1.ebuild 1934 BLAKE2B 3a43bd2195e373006e109d3da9a5d76aea0b6c51737e19a252d1e651be142eb1251bcf02a041ad436839e1bb194a5ea842770637509fbb0638ca49b21a0dfcf4 SHA512 59403e501eef626061988100fc5821a1673067cc55e3d50890f584c23febea1c45ddeccc17e28e81175468bd406451b8911413db78ad960006433a841434d185 EBUILD sdl2-image-2.6.3.ebuild 1821 BLAKE2B eee7b478fe2734d24ca7bff6bf259f2ded64440ebf2ab140358270617b29cc1a0aad4c6c49175cd2c2a53b3f7da41388d46fb0c06d92e42d174127ae8a2f7fe5 SHA512 3b3b96a1adacb6a10f33c771a094c4b5f0272a5975c1d502a3db0bd74dfb14da48e7a378dcccfd4f17bc86bbadc1cf702ef01ae2666d3d65afa8aa6df9b0943d -MISC metadata.xml 477 BLAKE2B b82e6a76ba3ecb3440fb39021a80e05daf57cda15e373ad611a5cac6e5a46b88758416a2957b781c9066240d76811bf2a818f95664cdfa903cbe36ffd99c1df4 SHA512 7690ef20ad091d13e3713ccbc07457f15325abc7af62742a55b042085b8b7e300717a329832238c9eaddff08acb4e43145905c060e1e174baadfdf90d671e1ff +MISC metadata.xml 555 BLAKE2B eedbbabfe13993b56208b36afa7ce41fa792330588ac1c74bca6817fc5184b733ee4815e800911482824f3404e55a81453bcabcdaac4c32bdab972e8f273c098 SHA512 bb677c9dca4657c5b09ac7df95d2afad3addd3c43fd60a5fdda154edd1dc2e6403649a45a8d9d56aec49adbc635ceeb24982ce38d8b88e3f90a26a1c3c62a2ec diff --git a/media-libs/sdl2-image/metadata.xml b/media-libs/sdl2-image/metadata.xml index 0cb609f528f0..3ca367e62e70 100644 --- a/media-libs/sdl2-image/metadata.xml +++ b/media-libs/sdl2-image/metadata.xml @@ -10,6 +10,7 @@ https://github.com/libsdl-org/SDL_image/issues - support loading WEBP images + Enable support for AVIF image format + Enable support for JPEG XL image format diff --git a/media-libs/sdl2-image/sdl2-image-2.6.3-r1.ebuild b/media-libs/sdl2-image/sdl2-image-2.6.3-r1.ebuild new file mode 100644 index 000000000000..b60029fcdb0e --- /dev/null +++ b/media-libs/sdl2-image/sdl2-image-2.6.3-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib multilib-minimal toolchain-funcs + +MY_P="SDL2_image-${PV}" +DESCRIPTION="Image file loading library" +HOMEPAGE="https://www.libsdl.org/projects/SDL_image/" +SRC_URI="https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.3/${MY_P}.tar.gz" +S="${WORKDIR}"/${MY_P} + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="avif gif jpeg jpegxl png static-libs tiff webp" + +RDEPEND=" + >=media-libs/libsdl2-2.0.9[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + avif? ( media-libs/libavif:=[${MULTILIB_USEDEP}] ) + png? ( >=media-libs/libpng-1.6.10:0[${MULTILIB_USEDEP}] ) + jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] ) + jpegxl? ( media-libs/libjxl:=[${MULTILIB_USEDEP}] ) + tiff? ( >=media-libs/tiff-3.9.7-r1:=[${MULTILIB_USEDEP}] ) + webp? ( >=media-libs/libwebp-0.3.0:=[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" + +multilib_src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + $(use_enable avif) + --disable-avif-shared + --disable-sdltest + --disable-stb-image + --enable-bmp + $(use_enable gif) + $(use_enable jpeg jpg) + --disable-jpg-shared + $(use_enable jpegxl jxl) + --disable-jxl-shared + --enable-lbm + --enable-pcx + $(use_enable png) + --disable-png-shared + --enable-pnm + --enable-tga + $(use_enable tiff tif) + --disable-tif-shared + --enable-qoi + --enable-xcf + --enable-xpm + --enable-xv + $(use_enable webp) + --disable-webp-shared + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_compile() { + emake OBJC="$(tc-getCC)" +} + +multilib_src_install() { + emake DESTDIR="${D}" install + multilib_is_native_abi && newbin .libs/showimage$(get_exeext) showimage2$(get_exeext) +} + +multilib_src_install_all() { + dodoc {CHANGES,README}.txt + find "${ED}" -type f -name "*.la" -delete || die +} -- cgit v1.2.3