summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-12-03 22:56:28 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-12-03 23:20:32 +0000
commitfb535b822ae7b73a575559e929c82e2310005ee6 (patch)
treeae3f0887071173618eadcbd49bf88f859d529107 /media-video/ffmpeg/ffmpeg-9999.ebuild
parentdev-libs/quazip: Stabilize 1.3-r3 x86, #919127 (diff)
downloadgentoo-fb535b822ae7b73a575559e929c82e2310005ee6.tar.gz
gentoo-fb535b822ae7b73a575559e929c82e2310005ee6.tar.bz2
gentoo-fb535b822ae7b73a575559e929c82e2310005ee6.zip
media-video/ffmpeg: Stop building a separate Chromium library for 6.1+
A long time ago, enabling OpenCL broke the libffmpeg.so Chromium library, so we had to perform a separate build without it when necessary. That issue seems to have gone away now so simplify the build. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-video/ffmpeg/ffmpeg-9999.ebuild')
-rw-r--r--media-video/ffmpeg/ffmpeg-9999.ebuild47
1 files changed, 7 insertions, 40 deletions
diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild b/media-video/ffmpeg/ffmpeg-9999.ebuild
index 992b5f8baa39..665e6e7610cb 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -357,10 +357,6 @@ MULTILIB_WRAPPED_HEADERS=(
/usr/include/libavutil/avconfig.h
)
-build_separate_libffmpeg() {
- use opencl
-}
-
pkg_setup() {
# ffmpeg[chromaprint] depends on chromaprint, and chromaprint[tools] depends on ffmpeg.
# May cause breakage while updating, #862996, #625210, #833821.
@@ -538,20 +534,6 @@ multilib_src_configure() {
${EXTRA_FFMPEG_CONF}
echo "${@}"
"${@}" || die
-
- if multilib_is_native_abi && use chromium && build_separate_libffmpeg; then
- einfo "Configuring for Chromium"
- mkdir -p ../chromium || die
- pushd ../chromium >/dev/null || die
- set -- "${@}" \
- --disable-shared \
- --enable-static \
- --enable-pic \
- --disable-opencl
- echo "${@}"
- "${@}" || die
- popd >/dev/null || die
- fi
}
multilib_src_compile() {
@@ -564,16 +546,8 @@ multilib_src_compile() {
fi
done
- if use chromium; then
- if build_separate_libffmpeg; then
- einfo "Compiling for Chromium"
- pushd ../chromium >/dev/null || die
- emake V=1 libffmpeg
- popd >/dev/null || die
- else
- emake V=1 libffmpeg
- fi
- fi
+ use chromium &&
+ emake V=1 libffmpeg
fi
}
@@ -593,18 +567,11 @@ multilib_src_install() {
done
if use chromium; then
- if build_separate_libffmpeg; then
- einfo "Installing for Chromium"
- pushd ../chromium >/dev/null || die
- emake V=1 DESTDIR="${D}" install-libffmpeg
- popd >/dev/null || die
- else
- emake V=1 DESTDIR="${D}" install-libffmpeg
-
- # When not built separately, libffmpeg has no code of
- # its own so this QA check raises a false positive.
- QA_FLAGS_IGNORED+=" usr/$(get_libdir)/chromium/.*"
- fi
+ emake V=1 DESTDIR="${D}" install-libffmpeg
+
+ # When not built separately, libffmpeg has no code of
+ # its own so this QA check raises a false positive.
+ QA_FLAGS_IGNORED+=" usr/$(get_libdir)/chromium/.*"
fi
fi
}