From 4a30f472147c2d8642bd558b78fcfce7b6a9c6b9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 Jul 2022 07:39:06 +0100 Subject: gentoo auto-resync : 14:07:2022 - 07:39:06 --- media-libs/babl/Manifest | 2 + media-libs/babl/babl-0.1.92-r1.ebuild | 68 ++++++++++++++++++++++ ...universal_nonlinear_rgb_u8_converter_sse2.patch | 17 ++++++ 3 files changed, 87 insertions(+) create mode 100644 media-libs/babl/babl-0.1.92-r1.ebuild create mode 100644 media-libs/babl/files/babl-0.1.92_universal_nonlinear_rgb_u8_converter_sse2.patch (limited to 'media-libs/babl') diff --git a/media-libs/babl/Manifest b/media-libs/babl/Manifest index ffce0861a9ed..1f0318327fc6 100644 --- a/media-libs/babl/Manifest +++ b/media-libs/babl/Manifest @@ -1,4 +1,6 @@ +AUX babl-0.1.92_universal_nonlinear_rgb_u8_converter_sse2.patch 625 BLAKE2B 869ce1637b29f11e69465a2e0b5ed565ded8a0fccc96270f7df004c80545e74b5230c32cccb4e7f951ae8536c1f7ab15e10bdd1611e66ebf6a1cf945ca0f24bd SHA512 dabcbffbe8e1db101ed05f307fb1d49367b7630b619848cd927c414fe5fc1e28a5bb94c2d154942e9bd9a138611b4387ab42ff4a1ab2603e15e4674bf0360755 DIST babl-0.1.92.tar.xz 309784 BLAKE2B c3c716ba1b54082743ba6ea33da99fb458dc971ab78ae72170af9840eadbc7f2aeb0a26d3270ede2a6e0d7b55489fc8f700b1c69731a4612ba4106f9672762d0 SHA512 c2baf39f576bf7f57786c59f2de0818257f4d1d62cadf44fdd802c9a534ed94390dd1616e7e72fcc9de1fb85a24a10fbacdbbabbe376a45ae598be46817e3bc0 +EBUILD babl-0.1.92-r1.ebuild 1927 BLAKE2B 1fa2ce4bd5ffac9412e1b319d6c328201de87b953aa1df8902b5f297365050fa84e1549af66ebfca5b7889656b828336b5cd8da355b0408e01bae70fae8f4e06 SHA512 ead7168764906bea081db8302d2c6403c0a2f7ea2cc0c2c50e1a1e88627b935f29d929f69379cc15c6fb0c33dc92e3e09e6ee990317ceaea9a2bdfd464260eeb EBUILD babl-0.1.92.ebuild 1829 BLAKE2B 6b63020df7b902a92183e79000d342c13821ad3e87f005159cae04071750abe2f82f7fa7fd09a0cec6f94a65d6481522f08703ed6d1049133de3fbd2984ac2a4 SHA512 cad47bf1d01849165c502789f232d46c23c0d9bebec5725881ec1bc7cf0f1086f5f7bca804e0833bc06ab7a177e8ae754fe75670e0e8b602ee16932125480606 EBUILD babl-9999.ebuild 1760 BLAKE2B ab87ef3372006a2c9907edd13ad0e0f5bb896860188cc3e84a7e97e3c794dbe82c6245653e3d8cc1f48c086186dcefeb9cb9adc81e1c889a3c994b8f35cffeec SHA512 6967e4fd78adcc1799b601aae900d45df2c63717f5b920ee82909335c1842101712544429acbf36c5a4c2c1f54c0d2b1760037f8af3f7af53eaa3b860285314f MISC metadata.xml 401 BLAKE2B a80bbfba7d3e6e613ecc32c54ccad9f6b92e945feab3567fb0491b3cf83f5fb51d90372b6954b1127bce5c1d2028bfb2ed6518a9dde72c2adfc8286884f9efc7 SHA512 5f30ae63c4b82933c885a60d010dd1bb7d92355478aae874ec2aaef647ca3ecdb9f85311280a31d31ed4068e028049d3e54aeac84ff6528f3174db14c938b62c diff --git a/media-libs/babl/babl-0.1.92-r1.ebuild b/media-libs/babl/babl-0.1.92-r1.ebuild new file mode 100644 index 000000000000..b3532109b4db --- /dev/null +++ b/media-libs/babl/babl-0.1.92-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VALA_USE_DEPEND=vapigen + +inherit meson gnome2-utils vala + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/babl.git" + SRC_URI="" +else + SRC_URI="https://ftp.gimp.org/pub/${PN}/${PV:0:3}/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="A dynamic, any to any, pixel format conversion library" +HOMEPAGE="https://gegl.org/babl/" + +LICENSE="LGPL-3" +SLOT="0" +IUSE="introspection lcms vala cpu_flags_x86_avx2 cpu_flags_x86_f16c cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse4_1" +REQUIRED_USE="vala? ( introspection )" + +BDEPEND=" + virtual/pkgconfig + vala? ( $(vala_depend) ) +" +RDEPEND=" + introspection? ( >=dev-libs/gobject-introspection-1.32:= ) + lcms? ( >=media-libs/lcms-2.8:2 ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}_universal_nonlinear_rgb_u8_converter_sse2.patch" # Bug 857708 +) + +src_prepare() { + default + gnome2_environment_reset + + sed -i -e 's/Description/description/' meson.build || die # bug 843266 +} + +src_configure() { + use vala && vala_setup + + # Automagic rsvg support is just for website generation we do not call, + # so we don't need to fix it + # w3m is used for dist target thus no issue for us that it is automagically + # detected + local emesonargs=( + -Dwith-docs=false + $(meson_use introspection enable-gir) + $(meson_use lcms with-lcms) + $(meson_use vala enable-vapi) + $(meson_use cpu_flags_x86_avx2 enable-avx2) + $(meson_use cpu_flags_x86_f16c enable-f16c) + $(meson_use cpu_flags_x86_mmx enable-mmx) + $(meson_use cpu_flags_x86_sse enable-sse) + $(meson_use cpu_flags_x86_sse2 enable-sse2) + $(meson_use cpu_flags_x86_sse4_1 enable-sse4_1) + ) + meson_src_configure +} diff --git a/media-libs/babl/files/babl-0.1.92_universal_nonlinear_rgb_u8_converter_sse2.patch b/media-libs/babl/files/babl-0.1.92_universal_nonlinear_rgb_u8_converter_sse2.patch new file mode 100644 index 000000000000..79ff6ab7843a --- /dev/null +++ b/media-libs/babl/files/babl-0.1.92_universal_nonlinear_rgb_u8_converter_sse2.patch @@ -0,0 +1,17 @@ +Fix alignment of vector of floats in babl-rgb-converter.c +Bug: https://bugs.gentoo.org/857708 +Signed-off-by: Alexander Bezrukov + +diff -ur a/babl/base/babl-rgb-converter.c b/babl/base/babl-rgb-converter.c +--- a/babl/base/babl-rgb-converter.c ++++ b/babl/base/babl-rgb-converter.c +@@ -306,7 +306,8 @@ + uint8_t *rgb_in_u8 = (void*)src_char; + uint8_t *rgb_out_u8 = (void*)dst_char; + +- float rgba_out[4*samples]; ++ // The alignment is necessary for SIMD intrinsics in babl_matrix_mul_vectorff_buf4_sse2() ++ float __attribute__ ((aligned (16))) rgba_out[4*samples]; + + for (i = 0; i < samples; i++) + { -- cgit v1.2.3