From 0a85ce77f844148c527fc81a1e661567d75dd238 Mon Sep 17 00:00:00 2001 From: "Pawel Hajdan, Jr" Date: Mon, 23 Jan 2017 16:37:03 +0000 Subject: www-client/chromium: add system-libvpx USE flag This addresses bug #598264 by Andreas Steinmetz. --- www-client/chromium/chromium-57.0.2986.0.ebuild | 12 +++++++++--- www-client/chromium/metadata.xml | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'www-client') diff --git a/www-client/chromium/chromium-57.0.2986.0.ebuild b/www-client/chromium/chromium-57.0.2986.0.ebuild index 771fbdb556d0..c64343882cdd 100644 --- a/www-client/chromium/chromium-57.0.2986.0.ebuild +++ b/www-client/chromium/chromium-57.0.2986.0.ebuild @@ -18,7 +18,7 @@ SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P} LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="component-build cups gconf gnome-keyring gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +tcmalloc widevine" +IUSE="component-build cups gconf gnome-keyring gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-libvpx +tcmalloc widevine" RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" # Native Client binaries are compiled with different set of flags, bug #452066. @@ -50,7 +50,7 @@ COMMON_DEPEND=" media-libs/libexif:= media-libs/libjpeg-turbo:= media-libs/libpng:= - media-libs/libvpx:=[svc] + system-libvpx? ( media-libs/libvpx:=[svc] ) media-libs/speex:= pulseaudio? ( media-sound/pulseaudio:= ) system-ffmpeg? ( >=media-video/ffmpeg-3:= ) @@ -319,6 +319,10 @@ src_prepare() { if ! use system-ffmpeg; then keeplibs+=( third_party/ffmpeg ) fi + if ! use system-libvpx; then + keeplibs+=( third_party/libvpx ) + keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc ) + fi # Remove most bundled libraries. Some are still needed. build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die @@ -353,7 +357,6 @@ src_configure() { icu libjpeg libpng - libvpx libwebp libxml libxslt @@ -365,6 +368,9 @@ src_configure() { if use system-ffmpeg; then gn_system_libraries+=( ffmpeg ) fi + if use system-libvpx; then + gn_system_libraries+=( libvpx ) + fi build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die # Optional dependencies. diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml index c2a73f874cc3..bed144b7ca89 100644 --- a/www-client/chromium/metadata.xml +++ b/www-client/chromium/metadata.xml @@ -16,6 +16,7 @@ Enable proprietary codecs like H.264, MP3 Build the SUID sandbox, which is only needed on CONFIG_USER_NS=n kernels Use system ffmpeg instead of the bundled one + Use system libvpx instead of the bundled one Use bundled tcmalloc instead of system malloc Unsupported closed-source DRM capability (required by Netflix VOD) -- cgit v1.2.3-65-gdbad