diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-14 00:01:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-14 00:01:24 +0100 |
commit | 59c2499e0c9720169c9d5a02168c51c807a21467 (patch) | |
tree | 48c68a8a7e0094b2edaace12850e6c059bc3636b /media-libs/libwebp | |
parent | a25cc082a26782e5d39ded4559c91ff11bc3c299 (diff) |
gentoo auto-resync : 14:05:2024 - 00:01:24
Diffstat (limited to 'media-libs/libwebp')
-rw-r--r-- | media-libs/libwebp/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libwebp/libwebp-1.4.0.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/media-libs/libwebp/Manifest b/media-libs/libwebp/Manifest index dbb1b882097c..ef456c182f94 100644 --- a/media-libs/libwebp/Manifest +++ b/media-libs/libwebp/Manifest @@ -1,4 +1,6 @@ AUX libwebp-1.2.3-libpng-pkg-config.patch 1894 BLAKE2B 80c19e65b1f913fdf0e9dd37ca603bcf89bd7dd71cf81ebd8beab6bcf671b76482b3d6d053f53558463c7f3e139897382c90aad5a5cebbd8c49ce4512e7f048c SHA512 3b80c89eb4643a315af594158ca370b71f38ab285cfaa3d1b8d90b09aa420750dccd46f1222b1b9a983af6e9dc501da2d6c732c05a2a3b097ba0437785cc80c7 DIST libwebp-1.3.2.tar.gz 4162949 BLAKE2B 12b3ff3aa9952dd32ce13656146556d5efb6a66860249a8676721980aee10253a1b0335685a769d995e9954cd305190a8ed1878ba4fefce9dcaf41a3976f9e3d SHA512 2b624d2ecfbff6b4db2719e38f146722638ae262acd96327073a04451dd05fb27ef70c5681187821d251df728a6be7e89209c861c561a13bfb786495a830bc20 +DIST libwebp-1.4.0.tar.gz 4281370 BLAKE2B 022cef190284b69af781718a82b28ee9806d7e6b1e642ee0833e608f64f691ef918a83e99db02335fb9f60d24d6f0cfc58e7e05e99a3f13d2118719d40a71722 SHA512 1217363fbb5c860b17c2ba4612f240f121c74ced6e3e58e8aa61252a9022f59893c5874bfa433cc50a7e65bac1ae2bfa99fa2cede070183b7a467f148cebb0bd EBUILD libwebp-1.3.2.ebuild 1941 BLAKE2B 117fedba4fd4191623eb05f0772fff70a84a9e853c3813446e6c04816d1157a7e36c255c32ec209464084e9210f430139a4878b05dd2e9582e0aea732f8e41b9 SHA512 4f03417a90e2dd2e9d1de1008f3b0aaea56820fbd9956717075eee20668031446582e8bbe0a782574bf0b0a58fad75eb2b520df7612ab3732f99b66676bf89a6 +EBUILD libwebp-1.4.0.ebuild 1949 BLAKE2B fd9b98adba39d3d5a77a19163bfc31a7deb4400b8cf4c9ab664e9f96807d5b05014942adb139a6e7b92352123b68dcab8b689eb5982c2cf1c21a64fd50dd812b SHA512 974827c3a00fef5a5ec732f5f46dc7f35405349bc188966bec4bb5cf77e1dee1ccf4a60e114276f8ec2433886decc2e2fc05ab098ddeac7fb1b16919272f29a8 MISC metadata.xml 442 BLAKE2B 3700315ba8872e208756f663236158c42f967eab7bec9b440b238b14f76357fe7721e571b7c11d79fff0f8df90f9ad35504cef3f6dc2803b8e5394ac0e3ea437 SHA512 5fceda7410ea654e3d9297f3adcad43b99c298b436ec5d77a9396259b61a0c9dd2945b98f7fa7d0b7d38622e14bf82bcfbbbdc18f011f0b949ae61a9a8794800 diff --git a/media-libs/libwebp/libwebp-1.4.0.ebuild b/media-libs/libwebp/libwebp-1.4.0.ebuild new file mode 100644 index 000000000000..d9a49f914a11 --- /dev/null +++ b/media-libs/libwebp/libwebp-1.4.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +MY_P="${P/_/-}" + +DESCRIPTION="A lossy image compression format" +HOMEPAGE="https://developers.google.com/speed/webp/download" +SRC_URI="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0/7" # subslot = libwebp soname version +if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +fi +IUSE="cpu_flags_arm_neon cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 gif +jpeg opengl +png static-libs swap-16bit-csp tiff" + +# TODO: dev-lang/swig bindings in swig/ subdirectory +RDEPEND="gif? ( media-libs/giflib:= ) + jpeg? ( media-libs/libjpeg-turbo:= ) + opengl? ( + media-libs/freeglut + virtual/opengl + ) + png? ( media-libs/libpng:= ) + tiff? ( media-libs/tiff:= )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.3-libpng-pkg-config.patch +) + +src_prepare() { + default + # Needed for pkg-config patch; use elibtoolize instead if that's ever dropped + eautoreconf +} + +multilib_src_configure() { + local args=( + --enable-libwebpmux + --enable-libwebpdemux + --enable-libwebpdecoder + $(use_enable static-libs static) + $(use_enable swap-16bit-csp) + $(use_enable jpeg) + $(use_enable png) + $(use_enable opengl gl) + $(use_enable tiff) + + $(use_enable cpu_flags_x86_sse2 sse2) + $(use_enable cpu_flags_x86_sse4_1 sse4.1) + $(use_enable cpu_flags_arm_neon neon) + + # Only used for gif2webp binary wrt bug #486646 + $(multilib_native_use_enable gif) + ) + + ECONF_SOURCE="${S}" econf "${args[@]}" +} + +multilib_src_install() { + emake DESTDIR="${D}" install +} + +multilib_src_install_all() { + find "${ED}" -type f -name "*.la" -delete || die + dodoc AUTHORS ChangeLog doc/*.txt NEWS README.md +} |