summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRepository QA checks <repo-qa-checks@gentoo.org>2017-08-27 19:33:46 +0000
committerRepository QA checks <repo-qa-checks@gentoo.org>2017-08-27 19:33:46 +0000
commita5c5e03559a1cdbf21feb19cacdf7b3678fcdf1c (patch)
tree5b8f031da45f7fcd17ac454bf53056f6d6a76e04
parent2017-08-27 18:24:00 UTC (diff)
parentmedia-video/ffmpeg: Backport new chromium feature to 3.3.3 (diff)
downloadgentoo-a5c5e03559a1cdbf21feb19cacdf7b3678fcdf1c.tar.gz
gentoo-a5c5e03559a1cdbf21feb19cacdf7b3678fcdf1c.tar.bz2
gentoo-a5c5e03559a1cdbf21feb19cacdf7b3678fcdf1c.zip
Merge updates from master
-rw-r--r--media-video/ffmpeg/ffmpeg-3.3.3.ebuild36
-rw-r--r--media-video/ffmpeg/ffmpeg-9999.ebuild1
-rw-r--r--media-video/ffmpeg/files/chromium.patch15
-rw-r--r--profiles/base/package.use.stable.mask9
4 files changed, 47 insertions, 14 deletions
diff --git a/media-video/ffmpeg/ffmpeg-3.3.3.ebuild b/media-video/ffmpeg/ffmpeg-3.3.3.ebuild
index 616d77d5f311..00b6eb1f54b2 100644
--- a/media-video/ffmpeg/ffmpeg-3.3.3.ebuild
+++ b/media-video/ffmpeg/ffmpeg-3.3.3.ebuild
@@ -96,7 +96,7 @@ FFMPEG_ENCODER_FLAG_MAP=(
)
IUSE="
- alsa doc +encode jack oss pic static-libs test v4l
+ alsa chromium doc +encode jack oss pic static-libs test v4l
${FFMPEG_FLAG_MAP[@]%:*}
${FFMPEG_ENCODER_FLAG_MAP[@]%:*}
"
@@ -307,13 +307,17 @@ MULTILIB_WRAPPED_HEADERS=(
/usr/include/libavutil/avconfig.h
)
-PATCHES=( "${FILESDIR}/openjpeg22.patch" )
+PATCHES=(
+ "${FILESDIR}"/openjpeg22.patch
+ "${FILESDIR}"/chromium.patch
+)
src_prepare() {
if [[ "${PV%_p*}" != "${PV}" ]] ; then # Snapshot
export revision=git-N-${FFMPEG_REVISION}
fi
default
+ echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die
}
multilib_src_configure() {
@@ -440,6 +444,20 @@ multilib_src_configure() {
"${myconf[@]}"
echo "${@}"
"${@}" || die
+
+ if multilib_is_native_abi && use chromium; then
+ einfo "Configuring for Chromium"
+ mkdir -p ../chromium || die
+ pushd ../chromium >/dev/null || die
+ set -- "${@}" \
+ --disable-shared \
+ --enable-static \
+ --enable-pic \
+ --extra-cflags="-DFF_API_CONVERGENCE_DURATION=0"
+ echo "${@}"
+ "${@}" || die
+ popd >/dev/null || die
+ fi
}
multilib_src_compile() {
@@ -451,6 +469,13 @@ multilib_src_compile() {
emake V=1 tools/${i}
fi
done
+
+ if use chromium; then
+ einfo "Compiling for Chromium"
+ pushd ../chromium >/dev/null || die
+ emake V=1 libffmpeg
+ popd >/dev/null || die
+ fi
fi
}
@@ -463,6 +488,13 @@ multilib_src_install() {
dobin tools/${i}
fi
done
+
+ if use chromium; then
+ einfo "Installing for Chromium"
+ pushd ../chromium >/dev/null || die
+ emake V=1 DESTDIR="${D}" install-libffmpeg
+ popd >/dev/null || die
+ fi
fi
}
diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
index 55572458a505..ac3d4666a006 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -302,6 +302,7 @@ src_prepare() {
export revision=git-N-${FFMPEG_REVISION}
fi
default
+ echo 'include $(SRC_PATH)/ffbuild/libffmpeg.mak' >> Makefile || die
}
multilib_src_configure() {
diff --git a/media-video/ffmpeg/files/chromium.patch b/media-video/ffmpeg/files/chromium.patch
index bc8b8d38698b..60a3e5d6cb99 100644
--- a/media-video/ffmpeg/files/chromium.patch
+++ b/media-video/ffmpeg/files/chromium.patch
@@ -1,18 +1,9 @@
Allow libffmpeg to be built for Chromium-based browsers
https://patchwork.ffmpeg.org/patch/4500/
-diff --git a/Makefile b/Makefile
-index 29870d7..1e267e7 100644
---- a/Makefile
-+++ b/Makefile
-@@ -65,6 +65,7 @@ all: all-yes
-
- include $(SRC_PATH)/tools/Makefile
- include $(SRC_PATH)/ffbuild/common.mak
-+include $(SRC_PATH)/ffbuild/libffmpeg.mak
-
- FF_EXTRALIBS := $(FFEXTRALIBS)
- FF_DEP_LIBS := $(DEP_LIBS)
+NOTE: This patch lacks the Makefile include line. We append it
+manually instead to make patching across different versions easier.
+
diff --git a/ffbuild/libffmpeg.mak b/ffbuild/libffmpeg.mak
new file mode 100644
index 0000000..992cf3c
diff --git a/profiles/base/package.use.stable.mask b/profiles/base/package.use.stable.mask
index 7e795f18ed7b..15e6ada6e18e 100644
--- a/profiles/base/package.use.stable.mask
+++ b/profiles/base/package.use.stable.mask
@@ -4,6 +4,15 @@
# This file requires eapi 5 or later. New entries go on top.
# Please use the same syntax as in package.use.mask
+# James Le Cuirot <chewi@gentoo.org> (27 Aug 2017)
+# Masked for testing.
+media-video/ffmpeg chromium
+www-client/opera system-ffmpeg
+www-client/opera-beta system-ffmpeg
+www-client/opera-developer system-ffmpeg
+www-client/vivaldi system-ffmpeg
+www-client/vivaldi-snapshot system-ffmpeg
+
# Andreas Sturmlechner <asturm@gentoo.org> (17 Aug 2017)
# Unstable dependencies.
kde-apps/kopete cryptography