summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild')
-rw-r--r--media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild37
1 files changed, 21 insertions, 16 deletions
diff --git a/media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild b/media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild
index 4b2d7d8edb45..acd331b70b3f 100644
--- a/media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild
+++ b/media-video/mpeg-tools/mpeg-tools-1.5b-r5.ebuild
@@ -1,37 +1,42 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit epatch toolchain-funcs
+EAPI=7
+
+inherit toolchain-funcs
MY_PN=mpeg_encode
DESCRIPTION="Tools for MPEG video"
HOMEPAGE="http://bmrc.berkeley.edu/research/mpeg/mpeg_encode.html"
SRC_URI="ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg/encode/${MY_PN}-${PV}-src.tar.gz"
+S="${WORKDIR}"/${MY_PN}
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
-IUSE=""
RDEPEND="x11-libs/libX11
virtual/jpeg:0"
DEPEND="${RDEPEND}"
-S=${WORKDIR}/${MY_PN}
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-64bit_fixes.patch
+ "${FILESDIR}"/${P}-tempfile-convert.patch
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${P}-powerpc.patch
+ "${FILESDIR}"/${P}-jpeg.patch
+ "${FILESDIR}"/${P}-tempfile-mpeg-encode.patch
+ "${FILESDIR}"/${P}-tempfile-tests.patch
+)
src_prepare() {
- cd "${WORKDIR}"
- epatch "${FILESDIR}"/${P}-build.patch
- epatch "${FILESDIR}"/${P}-64bit_fixes.patch
- epatch "${FILESDIR}"/${P}-tempfile-convert.patch
- epatch "${FILESDIR}"/${P}-as-needed.patch
- epatch "${FILESDIR}"/${P}-powerpc.patch
- cd "${S}"
- rm -r jpeg
- epatch "${FILESDIR}"/${P}-jpeg.patch
- epatch "${FILESDIR}"/${P}-tempfile-mpeg-encode.patch
- epatch "${FILESDIR}"/${P}-tempfile-tests.patch
+ cd .. || die
+ default
+ cd "${S}" || die
+
+ rm -r jpeg || die
+
# don't include malloc.h, but use stdlib.h instead
sed -i -e 's:#include <malloc.h>:#include <stdlib.h>:' \
convert/*.c convert/mtv/*.c *.c headers/*.h || die
@@ -51,7 +56,7 @@ src_install() {
docinto examples
dodoc examples/*
- cd ../convert
+ cd ../convert || die
dobin eyuvtojpeg jmovie2jpeg mpeg_demux mtv/movieToVid
newdoc README README.convert
newdoc mtv/README README.mtv