From 0fcaac21e786bd7911b1e8f436cd885c5e2f6437 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 27 Oct 2023 08:42:41 +0100 Subject: gentoo auto-resync : 27:10:2023 - 08:42:41 --- media-libs/Manifest.gz | Bin 69229 -> 69228 bytes media-libs/libpulse/Manifest | 3 + .../files/pulseaudio-16.99.1-memfd-compat.patch | 24 +++ media-libs/libpulse/libpulse-16.99.1.ebuild | 215 +++++++++++++++++++++ media-libs/opencolorio/Manifest | 6 +- media-libs/opencolorio/opencolorio-2.1.3.ebuild | 3 +- media-libs/opencolorio/opencolorio-2.2.1.ebuild | 5 +- media-libs/opencolorio/opencolorio-2.3.0.ebuild | 5 +- media-libs/openexr/Manifest | 6 +- media-libs/openexr/openexr-3.1.11.ebuild | 69 +++++++ media-libs/openexr/openexr-3.1.5-r1.ebuild | 4 +- media-libs/openexr/openexr-3.1.7.ebuild | 4 +- media-libs/openimageio/Manifest | 18 +- media-libs/openimageio/metadata.xml | 2 +- media-libs/openimageio/openimageio-2.4.14.0.ebuild | 205 ++++++++++++++++++++ media-libs/openimageio/openimageio-2.4.15.0.ebuild | 205 ++++++++++++++++++++ media-libs/openimageio/openimageio-2.4.16.0.ebuild | 205 ++++++++++++++++++++ media-libs/openimageio/openimageio-2.5.4.0.ebuild | 205 ++++++++++++++++++++ media-libs/webrtc-audio-processing/Manifest | 4 +- .../webrtc-audio-processing-1.0.ebuild | 32 --- .../webrtc-audio-processing-1.3.ebuild | 31 +++ 21 files changed, 1192 insertions(+), 59 deletions(-) create mode 100644 media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch create mode 100644 media-libs/libpulse/libpulse-16.99.1.ebuild create mode 100644 media-libs/openexr/openexr-3.1.11.ebuild create mode 100644 media-libs/openimageio/openimageio-2.4.14.0.ebuild create mode 100644 media-libs/openimageio/openimageio-2.4.15.0.ebuild create mode 100644 media-libs/openimageio/openimageio-2.4.16.0.ebuild create mode 100644 media-libs/openimageio/openimageio-2.5.4.0.ebuild delete mode 100644 media-libs/webrtc-audio-processing/webrtc-audio-processing-1.0.ebuild create mode 100644 media-libs/webrtc-audio-processing/webrtc-audio-processing-1.3.ebuild (limited to 'media-libs') diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz index f067eb9577b5..dd2f44344ac8 100644 Binary files a/media-libs/Manifest.gz and b/media-libs/Manifest.gz differ diff --git a/media-libs/libpulse/Manifest b/media-libs/libpulse/Manifest index 36e83bbcb671..66856d10db21 100644 --- a/media-libs/libpulse/Manifest +++ b/media-libs/libpulse/Manifest @@ -4,8 +4,11 @@ AUX pulseaudio-16.1-memfd-cleanup.patch 988 BLAKE2B cbb25ef86099e1c13bd07c33c871 AUX pulseaudio-16.1-proplist-util-without-gdkx.patch 1486 BLAKE2B 74b6ed59dff2ab4c62bab9e218874ff4da1d651f8ff80d715965b7be61323d77436851f6f2ffb9f8667c9ee918d6eca315fea3f6fe2670798f1ef6ed58728a3c SHA512 a5b5ac40083237ea0cd916506eb490891937affc1d69f81399a6a1f8f0782ebe9654641463ab33931add749282880ab415dbf0f89bd1a1d6a0f88f2845886d13 AUX pulseaudio-16.1-smoother-start-paused.patch 1177 BLAKE2B 33e23e6ff9f08674550c8d349cdf2c8e50e5b203228c7b42bde0acddaa351647efda81d9ef173c2724a6a32b672a9db09075f0df2b7b567d354628e0adcd9c4b SHA512 3bcd728dc70349710f919c9990d5145100b0dae9ee496d2c4d4d8d43bd6e331a5625fe2b124d3f81326b52a072bc4f335ef24b68245518c545fa3258283a8d07 AUX pulseaudio-16.1-smoother-time-calculation.patch 1354 BLAKE2B 2fc644c66a0329ad03ad617590811ca980b7f2cd91b7f3ed0ea7831b4ece70dced407cfa4ac09efe4d3100fc7205d08341a28c6b0e1a6870aa5fae101279c9e6 SHA512 7ead95b6325ad921ec532f086ef62007f189d3ec533c07f985f09eb1618d5f600b3ce80d0ca64c60f9eb31e3e576bb98454d619e406c46ae2ec7fc5bfbf814be +AUX pulseaudio-16.99.1-memfd-compat.patch 971 BLAKE2B 6228f8b01cd8799221d5e121a8c1bc2f3635acebf2c75f1538abf88f2f717da93c3d90ebee038a5fb3bfe8d015c6d3a4f5d6e20026eb44b889fde3d45f6c6769 SHA512 498f86291cb5837494a6b698ea7590ae778edf58ca9b82d58b2d93e30f5e424b93f3ecf8a0a203817eba7bcea7702bf3f1a6cdd346b02088f1748cd1231787bf DIST pulseaudio-16.1.tar.xz 1545596 BLAKE2B 535706abcea2cae39834b23c8bdc37f71b0e633de2d8e43ea4425da97a850b57c2f980c318681cbc86cf1e746200609dad41f8b96ecf4568f86d94aa6831c9a1 SHA512 33b0b4292f05e0882f3ec822cf5720414bb34c523d80fe287b9740d6be219787c562e8024c9b0d9e2ee010771ca72c7ae4f27df1bbef9c9cb6bb6a23cbcc412f +DIST pulseaudio-16.99.1.tar.xz 1565020 BLAKE2B 02aad918e2b76dcf250bd55e03460206c7781cd1b43aa2efe46b25258626892e07f478b9966fa5027c9ae0a370145f5204dba05d2f5dfbfd3ba956225ccb3cad SHA512 1a3347e4c892ba0e321d39184f8bd52cfd16f59e66e52a753d6f706dfbf3f170f87b7ff27c0a6cdf3e462e6dd531ecde6829d48a374d0be2622688fb85abaac2 EBUILD libpulse-16.1-r1.ebuild 5765 BLAKE2B 1d7612f22f43daee09d1a3ccc6bf1d854410d293a2bfdd9e6c60453ff39556f3e40c21e776a9ed02bf6e62a29b4d7ec5be87003f9cdf64df4e0add642be423df SHA512 558d94ef4d2cde4a9a41e364a592ecf3acca0939d2f8c2f069b502c800549cd8a9400a6a3e3ad3645fda83b48c84811ac9bf1e8d6f9a614545e1fe2d0b4e2e03 EBUILD libpulse-16.1-r2.ebuild 5880 BLAKE2B 78dbe7da864b8c36cdc5730a98260b35a58ea0beaca798f86a63f9124b71f2ee2a449cb13f5c4cc3111c5298ecc900291e9c0d457c8d765be43bdd09d7e7c315 SHA512 3bb7b39fb201c202f3b20e605e37774b525a0a78979f8a24eabd464ae0a5b8314fc9362a9f9d8a47a43f3d534ddc5a9bd39b3874f3b9cc5ea402f7f897d12a38 EBUILD libpulse-16.1-r4.ebuild 6467 BLAKE2B a56b3974cb6be676856f1fd99596603907a2f3024329f6b9db3edf941a3693ba0af4c06a9cc6081ba546b698a2f9e99b518739a4f6eb9944c1a0605ba093dfd0 SHA512 40a7b8969aec1d4588e51c989325d57517e3ab74833c12e0b80cd2165491334388c2873c53e14a4f26c5a2e2872cf595de1d1593f30a8484b91ccb62b55a21bd +EBUILD libpulse-16.99.1.ebuild 6154 BLAKE2B 765f34cc85e5265aa52a05a4b28256ddae953906b4a7713d5fdfd72c5c61cbca351ec876228c08d572fe73518b8dcecbca5d387bc0192ddeb3699fdb00b2a2b4 SHA512 d9af02a4d83d9990dbc9c000a0097874551c96884c2496e84788069adb15dde26816075b0b9aa5036b9022dc235dc23d1b24c8294887232597711bd359ad694f MISC metadata.xml 859 BLAKE2B 7d292e39737f2dcfaf44c3ba84cae976f90e8cfe29ea91589f01376292d029177d2f700138879dde89bbbedb99eebce02e83171e3e168f04cf030453674e0eb5 SHA512 756bef21c1da1fb996083f1da163cc3e80f03e5d1314d00f07496aab22cece34db48c0ec950eeaabf50ea3ad08f00d85befdb97a5dd4115aa5f665040fe89310 diff --git a/media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch b/media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch new file mode 100644 index 000000000000..77af0ac915f6 --- /dev/null +++ b/media-libs/libpulse/files/pulseaudio-16.99.1-memfd-compat.patch @@ -0,0 +1,24 @@ +commit 421cf15486eea1b52f10e2b0be305018fee8c285 +Author: Rudi Heitbaum +Date: Sun Aug 13 09:37:32 2023 +0000 + + shm: allow for older versions of Linux without MFD_NOEXEC_SEAL + + Part-of: + +diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c +index 4247b0921..694f971b4 100644 +--- a/src/pulsecore/shm.c ++++ b/src/pulsecore/shm.c +@@ -164,7 +164,11 @@ static int sharedmem_create(pa_shm *m, pa_mem_type_t type, size_t size, mode_t m + #endif + #ifdef HAVE_MEMFD + case PA_MEM_TYPE_SHARED_MEMFD: ++ /* For linux >= 6.3 create fd with MFD_NOEXEC_SEAL flag */ + fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING|MFD_CLOEXEC|MFD_NOEXEC_SEAL); ++ /* Retry creating fd without MFD_NOEXEC_SEAL to support linux < 6.3 */ ++ if (fd < 0) ++ fd = memfd_create("pulseaudio", MFD_ALLOW_SEALING|MFD_CLOEXEC); + break; + #endif + default: diff --git a/media-libs/libpulse/libpulse-16.99.1.ebuild b/media-libs/libpulse/libpulse-16.99.1.ebuild new file mode 100644 index 000000000000..616a3a730813 --- /dev/null +++ b/media-libs/libpulse/libpulse-16.99.1.ebuild @@ -0,0 +1,215 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PV="${PV/_pre*}" +MY_P="pulseaudio-${MY_PV}" +inherit bash-completion-r1 flag-o-matic gnome2-utils meson-multilib optfeature systemd toolchain-funcs udev + +DESCRIPTION="Libraries for PulseAudio clients" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" + +if [[ ${PV} = 9999 ]]; then + inherit git-r3 + EGIT_BRANCH="master" + EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio" +else + SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1+" + +SLOT="0" +IUSE="+asyncns dbus doc +glib gtk selinux systemd test valgrind X" +RESTRICT="!test? ( test )" + +# NOTE: libpcre needed in some cases, bug #472228 +# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too +RDEPEND=" + dev-libs/libatomic_ops + >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] + asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] ) + dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] ) + elibc_mingw? ( dev-libs/libpcre:3 ) + glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] ) + gtk? ( x11-libs/gtk+:3 ) + selinux? ( sec-policy/selinux-pulseaudio ) + systemd? ( sys-apps/systemd:= ) + valgrind? ( dev-util/valgrind ) + X? ( + x11-libs/libX11[${MULTILIB_USEDEP}] + >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] + ) + !Build the command-line tools - OpenImageIO/oiio + AcademySoftwareFoundation/OpenImageIO diff --git a/media-libs/openimageio/openimageio-2.4.14.0.ebuild b/media-libs/openimageio/openimageio-2.4.14.0.ebuild new file mode 100644 index 000000000000..580024abaa23 --- /dev/null +++ b/media-libs/openimageio/openimageio-2.4.14.0.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +TEST_OIIO_IMAGE_COMMIT="aae37a54e31c0e719edcec852994d052ecf6541e" +TEST_OEXR_IMAGE_COMMIT="df16e765fee28a947244657cae3251959ae63c00" +inherit cmake flag-o-matic font python-single-r1 + +DESCRIPTION="A library for reading and writing images" +HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/AcademySoftwareFoundation/OpenImageIO-images/archive/${TEST_OIIO_IMAGE_COMMIT}.tar.gz -> ${PN}-oiio-test-image-${TEST_OIIO_IMAGE_COMMIT}.tar.gz + https://github.com/AcademySoftwareFoundation/openexr-images/archive/${TEST_OEXR_IMAGE_COMMIT}.tar.gz -> ${PN}-oexr-test-image-${TEST_OEXR_IMAGE_COMMIT}.tar.gz + ) +" + +LICENSE="BSD" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv" + +X86_CPU_FEATURES=( + aes:aes sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2 + avx:avx avx2:avx2 avx512f:avx512f f16c:f16c +) +CPU_FEATURES=( "${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}" ) + +IUSE="dicom doc ffmpeg gif gui jpeg jpeg2k opencv openvdb ptex python qt6 raw test +tools +truetype ${CPU_FEATURES[*]%:*}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) gui? ( tools )" + +# Not quite working yet +RESTRICT="!test? ( test )" # test" + +BDEPEND=" + doc? ( + app-doc/doxygen + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" +RDEPEND=" + dev-libs/boost:= + dev-cpp/robin-map + dev-libs/libfmt:= + dev-libs/pugixml:= + >=media-libs/libheif-1.13.0:= + jpeg? ( media-libs/libjpeg-turbo:= ) + media-libs/libpng:0= + >=media-libs/libwebp-0.2.1:= + >=dev-libs/imath-3.1.2-r4:= + >=media-libs/opencolorio-2.1.1-r4:= + >=media-libs/openexr-3:0= + media-libs/tiff:= + sys-libs/zlib:= + dicom? ( sci-libs/dcmtk ) + ffmpeg? ( media-video/ffmpeg:= ) + gif? ( media-libs/giflib:0= ) + jpeg2k? ( >=media-libs/openjpeg-2.0:2= ) + opencv? ( media-libs/opencv:= ) + openvdb? ( + dev-cpp/tbb:= + media-gfx/openvdb:= + ) + ptex? ( media-libs/ptex:= ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost:=[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}] + ') + ) + gui? ( + media-libs/libglvnd + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + ) + qt6? ( + dev-qt/qtbase:6[gui,widgets,opengl] + ) + ) + raw? ( media-libs/libraw:= ) + truetype? ( media-libs/freetype:2= ) +" +DEPEND=" + ${RDEPEND} +" + +DOCS=( + CHANGES.md + CREDITS.md + README.md +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + cmake_comment_add_subdirectory src/fonts + + if use test ; then + mkdir -p "${BUILD_DIR}"/testsuite || die + mv "${WORKDIR}/${PN}-images-${TEST_OIIO_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/oiio-images || die + mv "${WORKDIR}/openexr-images-${TEST_OEXR_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/openexr-images || die + fi +} + +src_configure() { + # Build with SIMD support + local cpufeature + local mysimd=() + for cpufeature in "${CPU_FEATURES[@]}"; do + use "${cpufeature%:*}" && mysimd+=("${cpufeature#*:}") + done + + # If no CPU SIMDs were used, completely disable them + [[ -z ${mysimd[*]} ]] && mysimd=("0") + + # This is currently needed on arm64 to get the NEON SIMD wrapper to compile the code successfully + # Even if there are no SIMD features selected, it seems like the code will turn on NEON support if it is available. + use arm64 && append-flags -flax-vector-conversions + + local mycmakeargs=( + "-DVERBOSE=ON" + "-DOIIO_BUILD_TOOLS=$(usex tools)" + "-DBUILD_TESTING=$(usex test)" + "-DOIIO_BUILD_TESTS=$(usex test)" + "-DOIIO_DOWNLOAD_MISSING_TESTDATA=OFF" + "-DINSTALL_FONTS=OFF" + "-DBUILD_DOCS=$(usex doc)" + "-DINSTALL_DOCS=$(usex doc)" + "-DSTOP_ON_WARNING=OFF" + "-DUSE_CCACHE=OFF" + "-DUSE_DCMTK=$(usex dicom)" + "-DUSE_EXTERNAL_PUGIXML=ON" + "-DUSE_JPEGTURBO=ON" + "-DUSE_NUKE=OFF" # not in Gentoo + "-DUSE_FFMPEG=$(usex ffmpeg)" + "-DUSE_GIF=$(usex gif)" + "-DUSE_OPENJPEG=$(usex jpeg2k)" + "-DUSE_OPENCV=$(usex opencv)" + "-DUSE_OPENVDB=$(usex openvdb)" + "-DUSE_PTEX=$(usex ptex)" + "-DUSE_PYTHON=$(usex python)" + "-DUSE_LIBRAW=$(usex raw)" + "-DUSE_FREETYPE=$(usex truetype)" + "-DUSE_SIMD=$(local IFS=','; echo "${mysimd[*]}")" + ) + + if use gui; then + mycmakeargs+=( -DENABLE_IV=ON -DUSE_OPENGL=ON -DUSE_QT=ON ) + if use qt6; then + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON ) + else + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON ) + fi + else + mycmakeargs+=( -DENABLE_IV=OFF -DUSE_QT=OFF ) + fi + + if use python; then + mycmakeargs+=( + "-DPYTHON_VERSION=${EPYTHON#python}" + "-DPYTHON_SITE_DIR=$(python_get_sitedir)" + ) + fi + + cmake_src_configure +} + +src_test() { + # TODO: investigate failures + local myctestargs=( + -E "(oiiotool|maketx|oiiotool-maketx|texture-crop|texture-crop.batch|texture-half|texture-half.batch|texture-uint16|texture-uint16.batch|texture-interp-bilinear|texture-interp-bilinear.batch|texture-interp-closest|texture-interp-closest.batch|texture-levels-stochaniso|texture-levels-stochaniso.batch|texture-levels-stochmip|texture-levels-stochmip.batch|texture-mip-onelevel|texture-mip-onelevel.batch|texture-mip-stochastictrilinear|texture-mip-stochastictrilinear.batch|texture-mip-stochasticaniso|texture-mip-stochasticaniso.batch|texture-uint8|texture-uint8.batch|texture-skinny|texture-skinny.batch|texture-icwrite|texture-icwrite.batch|jpeg2000-broken|openexr-damaged|openvdb-broken|texture-texture3d-broken|texture-texture3d-broken.batch|psd|ptex-broken|raw-broken|targa|tiff-depths|zfile|unit_simd|cineon|dds|openvdb.batch-broken|texture-texture3d.batch-broken|cmake-consumer|texture-udim|texture-udim2|texture-udim.batch|texture-udim2.batch)" + ) + + cmake_src_test +} + +src_install() { + cmake_src_install + # can't use font_src_install + # it does directory hierarchy recreation + FONT_S=( + "${S}/src/fonts/Droid_Sans" + "${S}/src/fonts/Droid_Sans_Mono" + "${S}/src/fonts/Droid_Serif" + ) + insinto "${FONTDIR}" + for dir in "${FONT_S[@]}"; do + doins "${dir}"/*.ttf + done +} diff --git a/media-libs/openimageio/openimageio-2.4.15.0.ebuild b/media-libs/openimageio/openimageio-2.4.15.0.ebuild new file mode 100644 index 000000000000..580024abaa23 --- /dev/null +++ b/media-libs/openimageio/openimageio-2.4.15.0.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +TEST_OIIO_IMAGE_COMMIT="aae37a54e31c0e719edcec852994d052ecf6541e" +TEST_OEXR_IMAGE_COMMIT="df16e765fee28a947244657cae3251959ae63c00" +inherit cmake flag-o-matic font python-single-r1 + +DESCRIPTION="A library for reading and writing images" +HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/AcademySoftwareFoundation/OpenImageIO-images/archive/${TEST_OIIO_IMAGE_COMMIT}.tar.gz -> ${PN}-oiio-test-image-${TEST_OIIO_IMAGE_COMMIT}.tar.gz + https://github.com/AcademySoftwareFoundation/openexr-images/archive/${TEST_OEXR_IMAGE_COMMIT}.tar.gz -> ${PN}-oexr-test-image-${TEST_OEXR_IMAGE_COMMIT}.tar.gz + ) +" + +LICENSE="BSD" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv" + +X86_CPU_FEATURES=( + aes:aes sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2 + avx:avx avx2:avx2 avx512f:avx512f f16c:f16c +) +CPU_FEATURES=( "${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}" ) + +IUSE="dicom doc ffmpeg gif gui jpeg jpeg2k opencv openvdb ptex python qt6 raw test +tools +truetype ${CPU_FEATURES[*]%:*}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) gui? ( tools )" + +# Not quite working yet +RESTRICT="!test? ( test )" # test" + +BDEPEND=" + doc? ( + app-doc/doxygen + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" +RDEPEND=" + dev-libs/boost:= + dev-cpp/robin-map + dev-libs/libfmt:= + dev-libs/pugixml:= + >=media-libs/libheif-1.13.0:= + jpeg? ( media-libs/libjpeg-turbo:= ) + media-libs/libpng:0= + >=media-libs/libwebp-0.2.1:= + >=dev-libs/imath-3.1.2-r4:= + >=media-libs/opencolorio-2.1.1-r4:= + >=media-libs/openexr-3:0= + media-libs/tiff:= + sys-libs/zlib:= + dicom? ( sci-libs/dcmtk ) + ffmpeg? ( media-video/ffmpeg:= ) + gif? ( media-libs/giflib:0= ) + jpeg2k? ( >=media-libs/openjpeg-2.0:2= ) + opencv? ( media-libs/opencv:= ) + openvdb? ( + dev-cpp/tbb:= + media-gfx/openvdb:= + ) + ptex? ( media-libs/ptex:= ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost:=[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}] + ') + ) + gui? ( + media-libs/libglvnd + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + ) + qt6? ( + dev-qt/qtbase:6[gui,widgets,opengl] + ) + ) + raw? ( media-libs/libraw:= ) + truetype? ( media-libs/freetype:2= ) +" +DEPEND=" + ${RDEPEND} +" + +DOCS=( + CHANGES.md + CREDITS.md + README.md +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + cmake_comment_add_subdirectory src/fonts + + if use test ; then + mkdir -p "${BUILD_DIR}"/testsuite || die + mv "${WORKDIR}/${PN}-images-${TEST_OIIO_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/oiio-images || die + mv "${WORKDIR}/openexr-images-${TEST_OEXR_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/openexr-images || die + fi +} + +src_configure() { + # Build with SIMD support + local cpufeature + local mysimd=() + for cpufeature in "${CPU_FEATURES[@]}"; do + use "${cpufeature%:*}" && mysimd+=("${cpufeature#*:}") + done + + # If no CPU SIMDs were used, completely disable them + [[ -z ${mysimd[*]} ]] && mysimd=("0") + + # This is currently needed on arm64 to get the NEON SIMD wrapper to compile the code successfully + # Even if there are no SIMD features selected, it seems like the code will turn on NEON support if it is available. + use arm64 && append-flags -flax-vector-conversions + + local mycmakeargs=( + "-DVERBOSE=ON" + "-DOIIO_BUILD_TOOLS=$(usex tools)" + "-DBUILD_TESTING=$(usex test)" + "-DOIIO_BUILD_TESTS=$(usex test)" + "-DOIIO_DOWNLOAD_MISSING_TESTDATA=OFF" + "-DINSTALL_FONTS=OFF" + "-DBUILD_DOCS=$(usex doc)" + "-DINSTALL_DOCS=$(usex doc)" + "-DSTOP_ON_WARNING=OFF" + "-DUSE_CCACHE=OFF" + "-DUSE_DCMTK=$(usex dicom)" + "-DUSE_EXTERNAL_PUGIXML=ON" + "-DUSE_JPEGTURBO=ON" + "-DUSE_NUKE=OFF" # not in Gentoo + "-DUSE_FFMPEG=$(usex ffmpeg)" + "-DUSE_GIF=$(usex gif)" + "-DUSE_OPENJPEG=$(usex jpeg2k)" + "-DUSE_OPENCV=$(usex opencv)" + "-DUSE_OPENVDB=$(usex openvdb)" + "-DUSE_PTEX=$(usex ptex)" + "-DUSE_PYTHON=$(usex python)" + "-DUSE_LIBRAW=$(usex raw)" + "-DUSE_FREETYPE=$(usex truetype)" + "-DUSE_SIMD=$(local IFS=','; echo "${mysimd[*]}")" + ) + + if use gui; then + mycmakeargs+=( -DENABLE_IV=ON -DUSE_OPENGL=ON -DUSE_QT=ON ) + if use qt6; then + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON ) + else + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON ) + fi + else + mycmakeargs+=( -DENABLE_IV=OFF -DUSE_QT=OFF ) + fi + + if use python; then + mycmakeargs+=( + "-DPYTHON_VERSION=${EPYTHON#python}" + "-DPYTHON_SITE_DIR=$(python_get_sitedir)" + ) + fi + + cmake_src_configure +} + +src_test() { + # TODO: investigate failures + local myctestargs=( + -E "(oiiotool|maketx|oiiotool-maketx|texture-crop|texture-crop.batch|texture-half|texture-half.batch|texture-uint16|texture-uint16.batch|texture-interp-bilinear|texture-interp-bilinear.batch|texture-interp-closest|texture-interp-closest.batch|texture-levels-stochaniso|texture-levels-stochaniso.batch|texture-levels-stochmip|texture-levels-stochmip.batch|texture-mip-onelevel|texture-mip-onelevel.batch|texture-mip-stochastictrilinear|texture-mip-stochastictrilinear.batch|texture-mip-stochasticaniso|texture-mip-stochasticaniso.batch|texture-uint8|texture-uint8.batch|texture-skinny|texture-skinny.batch|texture-icwrite|texture-icwrite.batch|jpeg2000-broken|openexr-damaged|openvdb-broken|texture-texture3d-broken|texture-texture3d-broken.batch|psd|ptex-broken|raw-broken|targa|tiff-depths|zfile|unit_simd|cineon|dds|openvdb.batch-broken|texture-texture3d.batch-broken|cmake-consumer|texture-udim|texture-udim2|texture-udim.batch|texture-udim2.batch)" + ) + + cmake_src_test +} + +src_install() { + cmake_src_install + # can't use font_src_install + # it does directory hierarchy recreation + FONT_S=( + "${S}/src/fonts/Droid_Sans" + "${S}/src/fonts/Droid_Sans_Mono" + "${S}/src/fonts/Droid_Serif" + ) + insinto "${FONTDIR}" + for dir in "${FONT_S[@]}"; do + doins "${dir}"/*.ttf + done +} diff --git a/media-libs/openimageio/openimageio-2.4.16.0.ebuild b/media-libs/openimageio/openimageio-2.4.16.0.ebuild new file mode 100644 index 000000000000..580024abaa23 --- /dev/null +++ b/media-libs/openimageio/openimageio-2.4.16.0.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +TEST_OIIO_IMAGE_COMMIT="aae37a54e31c0e719edcec852994d052ecf6541e" +TEST_OEXR_IMAGE_COMMIT="df16e765fee28a947244657cae3251959ae63c00" +inherit cmake flag-o-matic font python-single-r1 + +DESCRIPTION="A library for reading and writing images" +HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/AcademySoftwareFoundation/OpenImageIO-images/archive/${TEST_OIIO_IMAGE_COMMIT}.tar.gz -> ${PN}-oiio-test-image-${TEST_OIIO_IMAGE_COMMIT}.tar.gz + https://github.com/AcademySoftwareFoundation/openexr-images/archive/${TEST_OEXR_IMAGE_COMMIT}.tar.gz -> ${PN}-oexr-test-image-${TEST_OEXR_IMAGE_COMMIT}.tar.gz + ) +" + +LICENSE="BSD" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv" + +X86_CPU_FEATURES=( + aes:aes sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2 + avx:avx avx2:avx2 avx512f:avx512f f16c:f16c +) +CPU_FEATURES=( "${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}" ) + +IUSE="dicom doc ffmpeg gif gui jpeg jpeg2k opencv openvdb ptex python qt6 raw test +tools +truetype ${CPU_FEATURES[*]%:*}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) gui? ( tools )" + +# Not quite working yet +RESTRICT="!test? ( test )" # test" + +BDEPEND=" + doc? ( + app-doc/doxygen + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" +RDEPEND=" + dev-libs/boost:= + dev-cpp/robin-map + dev-libs/libfmt:= + dev-libs/pugixml:= + >=media-libs/libheif-1.13.0:= + jpeg? ( media-libs/libjpeg-turbo:= ) + media-libs/libpng:0= + >=media-libs/libwebp-0.2.1:= + >=dev-libs/imath-3.1.2-r4:= + >=media-libs/opencolorio-2.1.1-r4:= + >=media-libs/openexr-3:0= + media-libs/tiff:= + sys-libs/zlib:= + dicom? ( sci-libs/dcmtk ) + ffmpeg? ( media-video/ffmpeg:= ) + gif? ( media-libs/giflib:0= ) + jpeg2k? ( >=media-libs/openjpeg-2.0:2= ) + opencv? ( media-libs/opencv:= ) + openvdb? ( + dev-cpp/tbb:= + media-gfx/openvdb:= + ) + ptex? ( media-libs/ptex:= ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost:=[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}] + ') + ) + gui? ( + media-libs/libglvnd + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + ) + qt6? ( + dev-qt/qtbase:6[gui,widgets,opengl] + ) + ) + raw? ( media-libs/libraw:= ) + truetype? ( media-libs/freetype:2= ) +" +DEPEND=" + ${RDEPEND} +" + +DOCS=( + CHANGES.md + CREDITS.md + README.md +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + cmake_comment_add_subdirectory src/fonts + + if use test ; then + mkdir -p "${BUILD_DIR}"/testsuite || die + mv "${WORKDIR}/${PN}-images-${TEST_OIIO_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/oiio-images || die + mv "${WORKDIR}/openexr-images-${TEST_OEXR_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/openexr-images || die + fi +} + +src_configure() { + # Build with SIMD support + local cpufeature + local mysimd=() + for cpufeature in "${CPU_FEATURES[@]}"; do + use "${cpufeature%:*}" && mysimd+=("${cpufeature#*:}") + done + + # If no CPU SIMDs were used, completely disable them + [[ -z ${mysimd[*]} ]] && mysimd=("0") + + # This is currently needed on arm64 to get the NEON SIMD wrapper to compile the code successfully + # Even if there are no SIMD features selected, it seems like the code will turn on NEON support if it is available. + use arm64 && append-flags -flax-vector-conversions + + local mycmakeargs=( + "-DVERBOSE=ON" + "-DOIIO_BUILD_TOOLS=$(usex tools)" + "-DBUILD_TESTING=$(usex test)" + "-DOIIO_BUILD_TESTS=$(usex test)" + "-DOIIO_DOWNLOAD_MISSING_TESTDATA=OFF" + "-DINSTALL_FONTS=OFF" + "-DBUILD_DOCS=$(usex doc)" + "-DINSTALL_DOCS=$(usex doc)" + "-DSTOP_ON_WARNING=OFF" + "-DUSE_CCACHE=OFF" + "-DUSE_DCMTK=$(usex dicom)" + "-DUSE_EXTERNAL_PUGIXML=ON" + "-DUSE_JPEGTURBO=ON" + "-DUSE_NUKE=OFF" # not in Gentoo + "-DUSE_FFMPEG=$(usex ffmpeg)" + "-DUSE_GIF=$(usex gif)" + "-DUSE_OPENJPEG=$(usex jpeg2k)" + "-DUSE_OPENCV=$(usex opencv)" + "-DUSE_OPENVDB=$(usex openvdb)" + "-DUSE_PTEX=$(usex ptex)" + "-DUSE_PYTHON=$(usex python)" + "-DUSE_LIBRAW=$(usex raw)" + "-DUSE_FREETYPE=$(usex truetype)" + "-DUSE_SIMD=$(local IFS=','; echo "${mysimd[*]}")" + ) + + if use gui; then + mycmakeargs+=( -DENABLE_IV=ON -DUSE_OPENGL=ON -DUSE_QT=ON ) + if use qt6; then + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON ) + else + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON ) + fi + else + mycmakeargs+=( -DENABLE_IV=OFF -DUSE_QT=OFF ) + fi + + if use python; then + mycmakeargs+=( + "-DPYTHON_VERSION=${EPYTHON#python}" + "-DPYTHON_SITE_DIR=$(python_get_sitedir)" + ) + fi + + cmake_src_configure +} + +src_test() { + # TODO: investigate failures + local myctestargs=( + -E "(oiiotool|maketx|oiiotool-maketx|texture-crop|texture-crop.batch|texture-half|texture-half.batch|texture-uint16|texture-uint16.batch|texture-interp-bilinear|texture-interp-bilinear.batch|texture-interp-closest|texture-interp-closest.batch|texture-levels-stochaniso|texture-levels-stochaniso.batch|texture-levels-stochmip|texture-levels-stochmip.batch|texture-mip-onelevel|texture-mip-onelevel.batch|texture-mip-stochastictrilinear|texture-mip-stochastictrilinear.batch|texture-mip-stochasticaniso|texture-mip-stochasticaniso.batch|texture-uint8|texture-uint8.batch|texture-skinny|texture-skinny.batch|texture-icwrite|texture-icwrite.batch|jpeg2000-broken|openexr-damaged|openvdb-broken|texture-texture3d-broken|texture-texture3d-broken.batch|psd|ptex-broken|raw-broken|targa|tiff-depths|zfile|unit_simd|cineon|dds|openvdb.batch-broken|texture-texture3d.batch-broken|cmake-consumer|texture-udim|texture-udim2|texture-udim.batch|texture-udim2.batch)" + ) + + cmake_src_test +} + +src_install() { + cmake_src_install + # can't use font_src_install + # it does directory hierarchy recreation + FONT_S=( + "${S}/src/fonts/Droid_Sans" + "${S}/src/fonts/Droid_Sans_Mono" + "${S}/src/fonts/Droid_Serif" + ) + insinto "${FONTDIR}" + for dir in "${FONT_S[@]}"; do + doins "${dir}"/*.ttf + done +} diff --git a/media-libs/openimageio/openimageio-2.5.4.0.ebuild b/media-libs/openimageio/openimageio-2.5.4.0.ebuild new file mode 100644 index 000000000000..580024abaa23 --- /dev/null +++ b/media-libs/openimageio/openimageio-2.5.4.0.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +TEST_OIIO_IMAGE_COMMIT="aae37a54e31c0e719edcec852994d052ecf6541e" +TEST_OEXR_IMAGE_COMMIT="df16e765fee28a947244657cae3251959ae63c00" +inherit cmake flag-o-matic font python-single-r1 + +DESCRIPTION="A library for reading and writing images" +HOMEPAGE="https://sites.google.com/site/openimageio/ https://github.com/OpenImageIO" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/OpenImageIO/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/AcademySoftwareFoundation/OpenImageIO-images/archive/${TEST_OIIO_IMAGE_COMMIT}.tar.gz -> ${PN}-oiio-test-image-${TEST_OIIO_IMAGE_COMMIT}.tar.gz + https://github.com/AcademySoftwareFoundation/openexr-images/archive/${TEST_OEXR_IMAGE_COMMIT}.tar.gz -> ${PN}-oexr-test-image-${TEST_OEXR_IMAGE_COMMIT}.tar.gz + ) +" + +LICENSE="BSD" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv" + +X86_CPU_FEATURES=( + aes:aes sse2:sse2 sse3:sse3 ssse3:ssse3 sse4_1:sse4.1 sse4_2:sse4.2 + avx:avx avx2:avx2 avx512f:avx512f f16c:f16c +) +CPU_FEATURES=( "${X86_CPU_FEATURES[@]/#/cpu_flags_x86_}" ) + +IUSE="dicom doc ffmpeg gif gui jpeg jpeg2k opencv openvdb ptex python qt6 raw test +tools +truetype ${CPU_FEATURES[*]%:*}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) gui? ( tools )" + +# Not quite working yet +RESTRICT="!test? ( test )" # test" + +BDEPEND=" + doc? ( + app-doc/doxygen + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" +RDEPEND=" + dev-libs/boost:= + dev-cpp/robin-map + dev-libs/libfmt:= + dev-libs/pugixml:= + >=media-libs/libheif-1.13.0:= + jpeg? ( media-libs/libjpeg-turbo:= ) + media-libs/libpng:0= + >=media-libs/libwebp-0.2.1:= + >=dev-libs/imath-3.1.2-r4:= + >=media-libs/opencolorio-2.1.1-r4:= + >=media-libs/openexr-3:0= + media-libs/tiff:= + sys-libs/zlib:= + dicom? ( sci-libs/dcmtk ) + ffmpeg? ( media-video/ffmpeg:= ) + gif? ( media-libs/giflib:0= ) + jpeg2k? ( >=media-libs/openjpeg-2.0:2= ) + opencv? ( media-libs/opencv:= ) + openvdb? ( + dev-cpp/tbb:= + media-gfx/openvdb:= + ) + ptex? ( media-libs/ptex:= ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-libs/boost:=[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pybind11[${PYTHON_USEDEP}] + ') + ) + gui? ( + media-libs/libglvnd + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + ) + qt6? ( + dev-qt/qtbase:6[gui,widgets,opengl] + ) + ) + raw? ( media-libs/libraw:= ) + truetype? ( media-libs/freetype:2= ) +" +DEPEND=" + ${RDEPEND} +" + +DOCS=( + CHANGES.md + CREDITS.md + README.md +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + cmake_comment_add_subdirectory src/fonts + + if use test ; then + mkdir -p "${BUILD_DIR}"/testsuite || die + mv "${WORKDIR}/${PN}-images-${TEST_OIIO_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/oiio-images || die + mv "${WORKDIR}/openexr-images-${TEST_OEXR_IMAGE_COMMIT}" "${BUILD_DIR}"/testsuite/openexr-images || die + fi +} + +src_configure() { + # Build with SIMD support + local cpufeature + local mysimd=() + for cpufeature in "${CPU_FEATURES[@]}"; do + use "${cpufeature%:*}" && mysimd+=("${cpufeature#*:}") + done + + # If no CPU SIMDs were used, completely disable them + [[ -z ${mysimd[*]} ]] && mysimd=("0") + + # This is currently needed on arm64 to get the NEON SIMD wrapper to compile the code successfully + # Even if there are no SIMD features selected, it seems like the code will turn on NEON support if it is available. + use arm64 && append-flags -flax-vector-conversions + + local mycmakeargs=( + "-DVERBOSE=ON" + "-DOIIO_BUILD_TOOLS=$(usex tools)" + "-DBUILD_TESTING=$(usex test)" + "-DOIIO_BUILD_TESTS=$(usex test)" + "-DOIIO_DOWNLOAD_MISSING_TESTDATA=OFF" + "-DINSTALL_FONTS=OFF" + "-DBUILD_DOCS=$(usex doc)" + "-DINSTALL_DOCS=$(usex doc)" + "-DSTOP_ON_WARNING=OFF" + "-DUSE_CCACHE=OFF" + "-DUSE_DCMTK=$(usex dicom)" + "-DUSE_EXTERNAL_PUGIXML=ON" + "-DUSE_JPEGTURBO=ON" + "-DUSE_NUKE=OFF" # not in Gentoo + "-DUSE_FFMPEG=$(usex ffmpeg)" + "-DUSE_GIF=$(usex gif)" + "-DUSE_OPENJPEG=$(usex jpeg2k)" + "-DUSE_OPENCV=$(usex opencv)" + "-DUSE_OPENVDB=$(usex openvdb)" + "-DUSE_PTEX=$(usex ptex)" + "-DUSE_PYTHON=$(usex python)" + "-DUSE_LIBRAW=$(usex raw)" + "-DUSE_FREETYPE=$(usex truetype)" + "-DUSE_SIMD=$(local IFS=','; echo "${mysimd[*]}")" + ) + + if use gui; then + mycmakeargs+=( -DENABLE_IV=ON -DUSE_OPENGL=ON -DUSE_QT=ON ) + if use qt6; then + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt5=ON ) + else + mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON ) + fi + else + mycmakeargs+=( -DENABLE_IV=OFF -DUSE_QT=OFF ) + fi + + if use python; then + mycmakeargs+=( + "-DPYTHON_VERSION=${EPYTHON#python}" + "-DPYTHON_SITE_DIR=$(python_get_sitedir)" + ) + fi + + cmake_src_configure +} + +src_test() { + # TODO: investigate failures + local myctestargs=( + -E "(oiiotool|maketx|oiiotool-maketx|texture-crop|texture-crop.batch|texture-half|texture-half.batch|texture-uint16|texture-uint16.batch|texture-interp-bilinear|texture-interp-bilinear.batch|texture-interp-closest|texture-interp-closest.batch|texture-levels-stochaniso|texture-levels-stochaniso.batch|texture-levels-stochmip|texture-levels-stochmip.batch|texture-mip-onelevel|texture-mip-onelevel.batch|texture-mip-stochastictrilinear|texture-mip-stochastictrilinear.batch|texture-mip-stochasticaniso|texture-mip-stochasticaniso.batch|texture-uint8|texture-uint8.batch|texture-skinny|texture-skinny.batch|texture-icwrite|texture-icwrite.batch|jpeg2000-broken|openexr-damaged|openvdb-broken|texture-texture3d-broken|texture-texture3d-broken.batch|psd|ptex-broken|raw-broken|targa|tiff-depths|zfile|unit_simd|cineon|dds|openvdb.batch-broken|texture-texture3d.batch-broken|cmake-consumer|texture-udim|texture-udim2|texture-udim.batch|texture-udim2.batch)" + ) + + cmake_src_test +} + +src_install() { + cmake_src_install + # can't use font_src_install + # it does directory hierarchy recreation + FONT_S=( + "${S}/src/fonts/Droid_Sans" + "${S}/src/fonts/Droid_Sans_Mono" + "${S}/src/fonts/Droid_Serif" + ) + insinto "${FONTDIR}" + for dir in "${FONT_S[@]}"; do + doins "${dir}"/*.ttf + done +} diff --git a/media-libs/webrtc-audio-processing/Manifest b/media-libs/webrtc-audio-processing/Manifest index 3c20544887bf..59037f8dc442 100644 --- a/media-libs/webrtc-audio-processing/Manifest +++ b/media-libs/webrtc-audio-processing/Manifest @@ -3,8 +3,8 @@ AUX webrtc-audio-processing-0.3-Add-generic-byte-order-and-pointer-size-detectio AUX webrtc-audio-processing-0.3-big-endian-support.patch 3773 BLAKE2B 24170b27885261d397b07e603ed12aaaf5afd28d86150d62d452a78976cd791b7e40606effb4c125a7170784de6ebe7d6487fd1f8de72a6038c8c4a440d2d3c7 SHA512 65e68a26ef8953d901b96f4d48e6f976f8f18d4a48dafe5d065502910c611596b364519761db15187f3eb3c34256e6b237fcb2ae8e9c249e56f744fcf642f600 AUX webrtc-audio-processing-0.3-proper_detection_cxxabi_execinfo.patch 2251 BLAKE2B f534e6f58d86693d257fa653d92ca07db2c1d34b88fda3b112237cff99eed81252f4111d64070f96a4265dc2655896843dbbfa01785ed18c6ea10b0eec74aeb9 SHA512 592345960101a9538c6e1197bc8cb296ca0fb0f8c6b9b64f1f4fd906ae4a9c7e9e92de740bf6e1e38cc4efca7cab8265b59542ffcad5d04bb6f1abb399851f0f DIST webrtc-audio-processing-0.3.1.tar.xz 695920 BLAKE2B 833c6d12b358918d95dee5b165308c8cc382f98264349fd38649bfe478557765b85d9112a35194676ee52a8ef297fb7cb7e3a570d9c2295785b6fb97d35be948 SHA512 1c7a2d16f7f6c03cf6d60405d0dcd224caae6e80c9c4d43f8373bad2446affcdf49a02efb0085387328289aa79c8981dcaedff876cde55be9602dbde9c3f440b -DIST webrtc-audio-processing-1.0.tar.gz 856721 BLAKE2B bbf5bee4887ca9929cdc62ded5a9b12563371e75cf1d3e3a3d7c8ccc766cb00bd718bc1ddf96d713a47342694394cc853067fba531c61c7e28e493a4dcdc895f SHA512 fced98beeb58155e86aed9649413e2f28ee6814e711bd57e946ec0db30ddabcc65bbf425b85892f4ad8803e87f0ece9fdde5595948145b90f436c2592da55961 +DIST webrtc-audio-processing-1.3.tar.gz 879768 BLAKE2B 3bf61e5b9eadde824deb26f0591a10651d3a593ad89d3c71408655a12407bf7ecf422fdef58e651fc31245f3b0d575869e3abb0abfcfcb2e1aea21c03cd79e82 SHA512 4f56cc0acfd93b5ae432bdf681151e91344cea3388107a3eee5f9b17261cf0f09779f8b0bb67b4d35582f1f54dadc236d059802e69447e994dd588506cac95df EBUILD webrtc-audio-processing-0.3.1-r1.ebuild 920 BLAKE2B b3e67c3488d2f9f90d3bee1c001f5aeaaa523e4ffb9b12abb451d86dc331e172f6e9c70f7b0832a237b05040a097d553d670633080d7e467ad008193cd7a596d SHA512 607beee8f25696c4e74af1bed53c6d30da692f395e1cd3fe88d864ae5d3cf16260f5636882a6206632e08e971fc9e9f284981262fa998f17b06e850f96479628 EBUILD webrtc-audio-processing-0.3.1.ebuild 780 BLAKE2B 9f39495c7189d7d35d7d246cd7a635d355b0fc65438c8a187b2529a2f54e1775fdad3fff0d2a61ceab3abdb4550342b007dc5e48758d20feaa8c7877cbb69f35 SHA512 b209145b656265c5b016b8ef2c22cbe3bf031230e6a3a84cdeb785c963c62e7cb4e144440c88c5c7b18d91b1ead8133752da5d40e86e3a015e4147e56f4aa0de -EBUILD webrtc-audio-processing-1.0.ebuild 754 BLAKE2B a8aba51d9fe717bed7df8c785fb387414439a5266ef597318c09ede3e1921c654fb36e06f77a0ae7b3f24de6a3b49aff99c9498f9d2367c84b3cb9039e11df72 SHA512 fc790450279e4f2674f97c5bfa6a7721c8bc0491ab09d5e88fa22448364b7e57a00fdb9a5207a9731a9aab6fa300ef912e9d647a44e1d76f799221e6c34ec302 +EBUILD webrtc-audio-processing-1.3.ebuild 689 BLAKE2B d9a9c2d690ea9dc011d0d8bb6c065e692d4008ed5cc6cdd1563b41aa5085570477a818902f44e208dc4167fddb0cf8c956bf6510e18df7c08bfdc87874e7fb6d SHA512 1a8c42e082fe2fe2e78f1b2bf70429e5a4db4927d55e24bac24375c400613d55e5503f91cfba4bba49897d6cc798753e998e0400229f2301b4f57cc60888ece3 MISC metadata.xml 245 BLAKE2B ab350a90c1ad1c92a5501fc0cc1ebc4e74b4e4cd7ae62d799d0c6252aa2b7870d097491c1652d8802ff3f09d2c32168dc8352925e2e7e634c0765c8e058767ee SHA512 7c8642b6ad51f52af088bfa8d4794519ef6cf59752bf428ba1c6be407b47336a30a7a9a4c6a5a52957efb3f8b695adeaf87ebafa49e61d0b8131b65a2a527afc diff --git a/media-libs/webrtc-audio-processing/webrtc-audio-processing-1.0.ebuild b/media-libs/webrtc-audio-processing/webrtc-audio-processing-1.0.ebuild deleted file mode 100644 index 6f1978a3eab3..000000000000 --- a/media-libs/webrtc-audio-processing/webrtc-audio-processing-1.0.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit meson - -DESCRIPTION="AudioProcessing library from the webrtc.org codebase" -HOMEPAGE="https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/" -SRC_URI="https://freedesktop.org/software/pulseaudio/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="1" -KEYWORDS="~amd64 ~x86 ~amd64-linux" -IUSE="cpu_flags_arm_neon" - -RDEPEND="dev-cpp/abseil-cpp[-cxx17(+)]" # TODO: resolve cxx14 requirement -DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${PV}-abseil-cmake.patch -) - -DOCS=( AUTHORS NEWS README.md ) - -src_configure() { - local emesonargs=( - -Dneon=$(usex cpu_flags_arm_neon yes no) - ) - meson_src_configure -} diff --git a/media-libs/webrtc-audio-processing/webrtc-audio-processing-1.3.ebuild b/media-libs/webrtc-audio-processing/webrtc-audio-processing-1.3.ebuild new file mode 100644 index 000000000000..727da560e5da --- /dev/null +++ b/media-libs/webrtc-audio-processing/webrtc-audio-processing-1.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit meson-multilib + +DESCRIPTION="AudioProcessing library from the webrtc.org codebase" +HOMEPAGE="https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/" +SRC_URI="https://freedesktop.org/software/pulseaudio/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="1" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="cpu_flags_arm_neon" + +RDEPEND="dev-cpp/abseil-cpp:=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( +) + +DOCS=( AUTHORS NEWS README.md ) + +multilib_src_configure() { + local emesonargs=( + -Dneon=$(usex cpu_flags_arm_neon yes no) + ) + meson_src_configure +} -- cgit v1.2.3