diff options
Diffstat (limited to 'media-libs/ffmpegsource/ffmpegsource-2.40-r2.ebuild')
-rw-r--r-- | media-libs/ffmpegsource/ffmpegsource-2.40-r2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/media-libs/ffmpegsource/ffmpegsource-2.40-r2.ebuild b/media-libs/ffmpegsource/ffmpegsource-2.40-r2.ebuild new file mode 100644 index 000000000000..8711e6ec40bc --- /dev/null +++ b/media-libs/ffmpegsource/ffmpegsource-2.40-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +QA_PKGCONFIG_VERSION=$(ver_cut 1-2) +inherit autotools + +DESCRIPTION="A libav/ffmpeg based source library for easy frame accurate access" +HOMEPAGE="https://github.com/FFMS/ffms2" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/FFMS/ffms2.git" + inherit git-r3 +else + SRC_URI="https://github.com/FFMS/ffms2/archive/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}"/ffms2-${PV} + + KEYWORDS="amd64 x86" +fi + +LICENSE="MIT" +SLOT="0/4" + +RDEPEND=" + >=media-video/ffmpeg-2.4:= + sys-libs/zlib +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES="${FILESDIR}/${P}-Fix-build-with-ffmpeg-5.patch" + +src_prepare() { + default + + # Cheesy hack from autogen.sh + mkdir src/config || die + eautoreconf +} + +src_configure() { + default + + sed -i -e "s|@FFMS_VERSION@|${PV}|g" \ + "${S}"/ffms2.pc.in || die +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} |