diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-20 00:30:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-20 00:30:25 +0000 |
commit | 77684468238b8755c1aa3e72f3055f4e62fcf14c (patch) | |
tree | 7c18f4b036e2a73cd48b63c5d7c711bc5cf1b989 /media-libs/libyuv/libyuv-1904.ebuild | |
parent | 781c9128468d2e8302221d4d7152ae09cffc4a9e (diff) |
Diffstat (limited to 'media-libs/libyuv/libyuv-1904.ebuild')
-rw-r--r-- | media-libs/libyuv/libyuv-1904.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/media-libs/libyuv/libyuv-1904.ebuild b/media-libs/libyuv/libyuv-1904.ebuild new file mode 100644 index 000000000000..b4210853ab36 --- /dev/null +++ b/media-libs/libyuv/libyuv-1904.ebuild @@ -0,0 +1,42 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Open source project that includes YUV scaling and conversion functionality." +HOMEPAGE="https://chromium.googlesource.com/libyuv/libyuv" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://chromium.googlesource.com/libyuv/libyuv.git" + inherit git-r3 +else + # to diff against upstream (apparently not stable): + # https://chromium.googlesource.com/libyuv/libyuv.git/+archive/${commit}.tar.gz + MYTAG="0.0.1904.20250204" + SRC_URI="https://salsa.debian.org/debian/libyuv/-/archive/upstream/${MYTAG}/libyuv-upstream-${MYTAG}.tar.bz2 -> ${P}.tar.bz2" + S="${WORKDIR}/libyuv-upstream-${MYTAG}" + KEYWORDS="~amd64" +fi + +LICENSE="BSD" +SLOT="0/${PV}" +# TODO(NRK): enable tests +RESTRICT="test" + +RDEPEND=">=media-libs/libjpeg-turbo-3.0.0" +BDEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/0001-fix-install-dirs.patch" + "${FILESDIR}/0002-disable-static-library.patch" + "${FILESDIR}/0003-disable-test-tools.patch" +) + +src_configure() { + mycmakeargs=( + -DUNIT_TEST=OFF + ) + cmake_src_configure +} |