commit:     01f68afeea7cb9de49af4834d49e36dd0c12e6be
Author:     Yixun Lan <dlan <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  5 22:00:37 2026 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Jan  5 22:18:04 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01f68afe

media-libs/imlib2: add 1.12.6

Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 media-libs/imlib2/Manifest             |   1 +
 media-libs/imlib2/imlib2-1.12.6.ebuild | 118 +++++++++++++++++++++++++++++++++
 2 files changed, 119 insertions(+)

diff --git a/media-libs/imlib2/Manifest b/media-libs/imlib2/Manifest
index 10e4ed4cdf89..09b15b5be497 100644
--- a/media-libs/imlib2/Manifest
+++ b/media-libs/imlib2/Manifest
@@ -1,3 +1,4 @@
 DIST imlib2-1.11.0.tar.xz 820368 BLAKE2B 
2e1dec04c44ce14429910c0dd6b7b5173bc70e8968912c9c25e8b47d38fdfd6753c29de2e5a2ae0b0e6498550e207989ae927682b09032b637baf759744dfbec
 SHA512 
2727b217ae18e1015591f2587f885a5a8d59471d6051f1aefb761329fd0fc979163e228154b2bff8728a3a2acc28437f189989d24a4d6e37bfc6f69445bd47e7
 DIST imlib2-1.12.3.tar.xz 833128 BLAKE2B 
3c02b103bf65ed54319b30d3112b8c4a1b8f41333f2a8848fc44bc1380e1e5dbe3a21e311685d80f77f08815bb11a2a1073beb1683df852919f2c6003535fcaf
 SHA512 
79feea73fb67508ffdce52f8430c2c887b06d8bcb70f6e3bc551c86d521ebf61fc1eff10994b69def4d7a237873f107066aefa367e05b5f89b5d675751d9314f
 DIST imlib2-1.12.5.tar.xz 839464 BLAKE2B 
13370398b8aaa876d98910122949ec40ae8f7eea6c68fd8cdea991cef617e7619cc7b5dc59871b09fc08100c4d4039e13b82467ee6ee5a8f4d0aa41ee3d624a9
 SHA512 
ac83840506b3c104936c57fab370b11e460854857218f91975bf8b589f3037dd628e5ff274caf67af4a64c0930ef3ad4884bef048b889fc926410cc068e3144c
+DIST imlib2-1.12.6.tar.xz 844488 BLAKE2B 
785c5b9168252df7947d0fc83f31be08ab9736473890460be23cb83e3953910684d0e3659c117dfde16c5224285f5f83f0cc57a8b2f6e3792e818744b126c786
 SHA512 
e62b7e89f6d75fb6a649a589f06fea34d08bba696c68d9ece59ee9500558af874c1073ffecae2d1cadd6d603f1acf4d071a415dbf2ba73b505ccf11fe45eea62

diff --git a/media-libs/imlib2/imlib2-1.12.6.ebuild 
b/media-libs/imlib2/imlib2-1.12.6.ebuild
new file mode 100644
index 000000000000..8643aea356aa
--- /dev/null
+++ b/media-libs/imlib2/imlib2-1.12.6.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Must be bumped with media-plugins/imlib2_loaders!
+
+inherit libtool multilib-minimal toolchain-funcs
+
+DESCRIPTION="Version 2 of an advanced replacement library for libraries like 
libXpm"
+HOMEPAGE="https://www.enlightenment.org/
+       https://sourceforge.net/projects/enlightenment/files/imlib2-src/";
+SRC_URI="https://downloads.sourceforge.net/enlightenment/${P}.tar.xz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
+IUSE="+X apidoc avif bzip2 cpu_flags_x86_mmx cpu_flags_x86_sse2 debug
+eps +filters +gif +jpeg jpeg2k jpegxl heif lzma mp3 packing +png
+raw +shm static-libs svg +text +tools +tiff +webp y4m +zlib"
+
+REQUIRED_USE="shm? ( X )"
+
+RDEPEND="
+       X? (
+               x11-libs/libX11[${MULTILIB_USEDEP}]
+               x11-libs/libXext[${MULTILIB_USEDEP}]
+       )
+       shm? ( x11-libs/libxcb[${MULTILIB_USEDEP}] )
+       avif? ( media-libs/libavif:=[${MULTILIB_USEDEP}] )
+       bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+       eps? ( app-text/libspectre )
+       gif? ( media-libs/giflib:=[${MULTILIB_USEDEP}] )
+       heif? ( media-libs/libheif:=[${MULTILIB_USEDEP}] )
+       jpeg2k? ( media-libs/openjpeg:=[${MULTILIB_USEDEP}] )
+       jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
+       jpegxl? ( media-libs/libjxl:=[${MULTILIB_USEDEP}] )
+       lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
+       text? ( media-libs/freetype:2[${MULTILIB_USEDEP}] )
+       mp3? ( media-libs/libid3tag:=[${MULTILIB_USEDEP}] )
+       png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
+       raw? ( media-libs/libraw:=[${MULTILIB_USEDEP}] )
+       svg? ( >=gnome-base/librsvg-2.46.0:=[${MULTILIB_USEDEP}] )
+       tools? ( virtual/zlib:=[${MULTILIB_USEDEP}] )
+       tiff? ( >=media-libs/tiff-4.0.4:=[${MULTILIB_USEDEP}] )
+       webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
+       y4m? ( media-libs/libyuv:= )
+       zlib? ( virtual/zlib:=[${MULTILIB_USEDEP}] )
+       !<media-plugins/imlib2_loaders-1.10.0
+"
+DEPEND="${RDEPEND}
+       X? ( x11-base/xorg-proto )"
+BDEPEND="
+       virtual/pkgconfig
+       apidoc? ( app-text/doxygen )
+"
+
+# default DOCS will haul README.in we do not need
+DOCS=( AUTHORS ChangeLog README TODO )
+
+src_prepare() {
+       default
+       elibtoolize
+}
+
+multilib_src_configure() {
+       local myeconfargs=(
+               $(use_with X x)
+               $(multilib_native_use_enable apidoc doc-build)
+               $(use_with avif)
+               $(use_with bzip2 bz2)
+               $(use_enable debug)
+               $(multilib_native_use_with eps ps)
+               $(use_enable filters)
+               $(use_with gif)
+               $(use_with heif)
+               $(use_with jpeg)
+               $(use_with jpeg2k j2k)
+               $(use_with jpegxl jxl)
+               $(use_with lzma)
+               $(use_with mp3 id3)
+               $(use_enable packing)
+               $(use_with png)
+               $(use_with raw)
+               $(use_with shm x-shm-fd)
+               $(use_enable static-libs static)
+               $(use_with svg)
+               $(use_enable text)
+               $(use_enable tools progs)
+               $(use_with tiff)
+               $(use_with webp)
+               $(multilib_native_use_with y4m)
+               $(use_with zlib)
+
+               # needed if a package is dlopen-ing imlib2 with RTLD_LOCAL,
+               # which dev-perl/Image-Imlib2 *might* be doing (haven't
+               # verified). if not, then should be fine to disable.
+               # See also: 
https://git.enlightenment.org/old/legacy-imlib2/issues/30
+               --enable-rtld-local-support
+       )
+
+       # imlib2 has different configure options for x86/amd64 assembly
+       if [[ $(tc-arch) == amd64 ]]; then
+               myeconfargs+=( $(use_enable cpu_flags_x86_sse2 amd64) 
--disable-mmx )
+       else
+               myeconfargs+=( --disable-amd64 $(use_enable cpu_flags_x86_mmx 
mmx) )
+       fi
+
+       ECONF_SOURCE="${S}" \
+       econf "${myeconfargs[@]}"
+}
+
+multilib_src_install() {
+       V=1 emake install DESTDIR="${D}"
+       find "${D}" -name '*.la' -delete || die
+       multilib_is_native_abi && use apidoc &&
+               export HTML_DOCS=( "${BUILD_DIR}/doc/html/"* )
+}

Reply via email to