summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-05-20 18:19:14 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-05-20 21:09:25 +0200
commitfe452768221269b09928ce9872f4b9a05e6e3c78 (patch)
treedf40974448a62ef80d12edd69d772f813a407761 /media-libs/libquicktime
parentmedia-libs/libquicktime: Drop eutils/implicit ltprune use (diff)
downloadgentoo-fe452768221269b09928ce9872f4b9a05e6e3c78.tar.gz
gentoo-fe452768221269b09928ce9872f4b9a05e6e3c78.tar.bz2
gentoo-fe452768221269b09928ce9872f4b9a05e6e3c78.zip
media-libs/libquicktime: Use PATCHES
Package-Manager: Portage-2.3.38, Repoman-2.3.9
Diffstat (limited to 'media-libs/libquicktime')
-rw-r--r--media-libs/libquicktime/libquicktime-1.2.4-r2.ebuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/media-libs/libquicktime/libquicktime-1.2.4-r2.ebuild b/media-libs/libquicktime/libquicktime-1.2.4-r2.ebuild
index 5f97dcf7745c..7153bd3006a9 100644
--- a/media-libs/libquicktime/libquicktime-1.2.4-r2.ebuild
+++ b/media-libs/libquicktime/libquicktime-1.2.4-r2.ebuild
@@ -52,13 +52,16 @@ DEPEND="${RDEPEND}
REQUIRED_USE="opengl? ( X )"
-DOCS="ChangeLog README TODO"
+DOCS=( ChangeLog README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${P}+libav-9.patch
+ "${FILESDIR}"/${P}-ffmpeg2.patch
+ "${FILESDIR}"/CVE-2016-2399.patch
+)
src_prepare() {
default
- eapply "${FILESDIR}"/${P}+libav-9.patch \
- "${FILESDIR}"/${P}-ffmpeg2.patch \
- "${FILESDIR}/CVE-2016-2399.patch"
if has_version '>=media-video/ffmpeg-2.9' ||
has_version '>=media-video/libav-12'; then
eapply "${FILESDIR}"/${P}-ffmpeg29.patch
@@ -67,8 +70,9 @@ src_prepare() {
eapply "${FILESDIR}/${P}-ffmpeg4.patch"
fi
- for FILE in lqt_ffmpeg.c video.c audio.c ; do
- sed -i -e "s:CODEC_ID_:AV_&:g" "${S}/plugins/ffmpeg/${FILE}" || die
+ local x
+ for x in lqt_ffmpeg.c video.c audio.c ; do
+ sed -i -e "s:CODEC_ID_:AV_&:g" "plugins/ffmpeg/${x}" || die
done
elibtoolize # Required for .so versioning on g/fbsd