summaryrefslogtreecommitdiff
path: root/media-libs/libde265
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-04 00:00:19 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-04 00:00:19 +0100
commit7f3fecbb5b871825fe9632f46659869cab6a3769 (patch)
treedd2be4fe7ee3475ca4ad093698f0f8fd1e0965dc /media-libs/libde265
parenta98588cfddf3d6e88a5f17d7f399b695163c7a85 (diff)
gentoo auto-resync : 04:05:2024 - 00:00:19
Diffstat (limited to 'media-libs/libde265')
-rw-r--r--media-libs/libde265/Manifest4
-rw-r--r--media-libs/libde265/libde265-1.0.15.ebuild95
-rw-r--r--media-libs/libde265/libde265-9999.ebuild4
3 files changed, 100 insertions, 3 deletions
diff --git a/media-libs/libde265/Manifest b/media-libs/libde265/Manifest
index 42ae03a99795..15f504b212e4 100644
--- a/media-libs/libde265/Manifest
+++ b/media-libs/libde265/Manifest
@@ -1,5 +1,7 @@
AUX libde265-1.0.2-qtbindir.patch 1798 BLAKE2B 22e15a1d4dfe7f602c9b13611c17d4d6be396b1cb9d4d4690c43cb85cf6c21f64cde98e01b52551216612cf349f2fe74d59252b99a202cce7041d3c2b6a33dde SHA512 34b6efa56943e50d76c21e6911afff9c45e97d5608cfa5d3a53432bf2bf40f4fc6873d8c426b1a714542a6468670be2a710190191e5e1fe01c5e7dedf75f567c
DIST libde265-1.0.11.tar.gz 845996 BLAKE2B 91711132757a10f0f277800525ee6f6a3902604cc969b8756232b15b581d830951d70bccd57d7731b3ad670a3b7a0d2c22e9578f3763da65b3cdeb016422568b SHA512 2ce28558c66e20714c07bf3011bc10dccabb770649903616bc32f1c4f18beba559ef7e0e42365ead77d7e813316b8c051039dc393cd351221cbab7248b3fa34c
+DIST libde265-1.0.15.tar.gz 846016 BLAKE2B b968a46dd56c3dda7da0e24289ccf24d08baf382771794dafacba942de41b7458b3a515e22abe2f35465bac731e67f29b409dbc95ced3531a211e6e40a1ea774 SHA512 375d8e781108247e0e8b4d7a036d20cc5d0670bdbf6ddb40a6d3dbf912fa776d2f001fb762301cb97e4d43be29eb415b0cdbfc6e07aa18b3f2346f7409c64fce
EBUILD libde265-1.0.11.ebuild 2348 BLAKE2B 60ddd570074a4eadd36bbed54ba447e0b5727119c3df19cc3a2723deb7666298b7678fb85ffda2af67825ac00b922cd5320763556c490c6bba1e26924f46fdf7 SHA512 ce0a5593dc85895377241f3d78b87d3faa207e8b662587f1b1b65113b0f87230e663090e70314b71f53ec7fa7b374156ea6cbba8d5a14252635e1f95be0ded95
-EBUILD libde265-9999.ebuild 2353 BLAKE2B 44f6508ef163fe2460cc65c8c683c092db0187160aa8488688148f907b66578f91daedf7c76daa73e34fc1d3c696ee85be499654aff8c5e67c6c6cbdeeb0ced8 SHA512 2aaf854b6f3a8fbf8f1025c7d9d78cb837547c8f68e682e497e58eb0489272176923344b768efc56933f74ecbc2ba562d0cc8f4b5e5586845e1fc6ff8fd577b3
+EBUILD libde265-1.0.15.ebuild 2354 BLAKE2B 0b077457e24345f2c42a062d693ec454944ca39f03b379b8b37839c5c62ab0bc6b9e52cffb55b7f5371abf2029bbf3b1c8246b61f692b171d6c4d321b16c239d SHA512 6833bb1627b7b552dbd26e3c494c212d16dab4003972b1c88b96d6cf90351bcf782af65a42e949eb9256a44c4357cf76844ae0876d42824950f807668c05b634
+EBUILD libde265-9999.ebuild 2354 BLAKE2B 0b077457e24345f2c42a062d693ec454944ca39f03b379b8b37839c5c62ab0bc6b9e52cffb55b7f5371abf2029bbf3b1c8246b61f692b171d6c4d321b16c239d SHA512 6833bb1627b7b552dbd26e3c494c212d16dab4003972b1c88b96d6cf90351bcf782af65a42e949eb9256a44c4357cf76844ae0876d42824950f807668c05b634
MISC metadata.xml 661 BLAKE2B 784b7d045c910e3242b8922f7851d489176d5e8ba2cef080ee5f250d37f407b56c7646301ee5a185eac4a5dad496b19be56e429d80343b7cdd9b762ffb361b55 SHA512 e4ad3770eaf5a8d961bee58d11c91c15235e028cb2e51d10a8b007d0b6444777c21eb4a7a846a538616231915f19df981296ea22d65f68ff5806b71bb2b4a0ce
diff --git a/media-libs/libde265/libde265-1.0.15.ebuild b/media-libs/libde265/libde265-1.0.15.ebuild
new file mode 100644
index 000000000000..ba775f376734
--- /dev/null
+++ b/media-libs/libde265/libde265-1.0.15.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools multilib-minimal
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/strukturag/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/strukturag/libde265/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+fi
+
+DESCRIPTION="Open h.265 video codec implementation"
+HOMEPAGE="https://github.com/strukturag/libde265"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="enc265 dec265 sdl tools debug cpu_flags_x86_sse4_1 cpu_flags_arm_neon cpu_flags_arm_thumb"
+# IUSE+=" sherlock265" # Require libvideogfx or libswscale
+
+RDEPEND="
+ dec265? (
+ sdl? ( media-libs/libsdl2 )
+ )"
+
+# Sherlock265 require libvideogfx or libswscale
+#RDEPEND+="
+# sherlock265? (
+# media-libs/libsdl
+# dev-qt/qtcore:5
+# dev-qt/qtgui:5
+# dev-qt/qtwidgets:5
+# media-libs/libswscale
+# )
+#"
+
+DEPEND="${RDEPEND}"
+BDEPEND="dec265? ( virtual/pkgconfig )"
+
+# Sherlock265 require libvideogfx or libswscale
+#BDEPEND+=" sherlock265? ( virtual/pkgconfig )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.0.2-qtbindir.patch )
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ # without this, headers would be missing and make would fail
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ --enable-log-error
+ ax_cv_check_cflags___msse4_1=$(usex cpu_flags_x86_sse4_1)
+ ax_cv_check_cflags___mfpu_neon=$(usex cpu_flags_arm_neon)
+ $(use_enable cpu_flags_arm_thumb thumb)
+ $(use_enable debug log-info)
+ $(use_enable debug log-debug)
+ $(use_enable debug log-trace)
+ $(multilib_native_use_enable enc265 encoder)
+ $(multilib_native_use_enable dec265)
+ )
+
+ # myeconfargs+=( $(multilib_native_use_enable sherlock265) ) # Require libvideogfx or libswscale
+ myeconfargs+=( --disable-sherlock265 )
+
+ econf "${myeconfargs[@]}"
+}
+
+multilib_src_install() {
+ default
+
+ if multilib_is_native_abi; then
+ # Remove useless, unready and test tools
+ rm "${ED}"/usr/bin/{tests,gen-enc-table,yuv-distortion} || die
+ if ! use tools; then
+ rm "${ED}"/usr/bin/{bjoentegaard,block-rate-estim,rd-curves} || die
+ rm "${ED}"/usr/bin/acceleration_speed || die
+ fi
+ else
+ # Remove all non-native binary tools
+ rm "${ED}"/usr/bin/* || die
+ fi
+}
+
+multilib_src_install_all() {
+ find "${ED}" -name '*.la' -delete || die
+ einstalldocs
+}
diff --git a/media-libs/libde265/libde265-9999.ebuild b/media-libs/libde265/libde265-9999.ebuild
index ca34a4a3dccb..ba775f376734 100644
--- a/media-libs/libde265/libde265-9999.ebuild
+++ b/media-libs/libde265/libde265-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -23,7 +23,7 @@ IUSE="enc265 dec265 sdl tools debug cpu_flags_x86_sse4_1 cpu_flags_arm_neon cpu_
RDEPEND="
dec265? (
- sdl? ( media-libs/libsdl )
+ sdl? ( media-libs/libsdl2 )
)"
# Sherlock265 require libvideogfx or libswscale