summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2010-04-14 18:47:37 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2010-04-14 18:47:37 +0000
commit11fe0924b6ffbe971e34113d7891352e08ac1a08 (patch)
treed44fd48f3da2a67712891a77333441c44f6e7b20 /www-client/chromium/chromium-9999.ebuild
parentStable for PPC (bug #305793). (diff)
downloadhistorical-11fe0924b6ffbe971e34113d7891352e08ac1a08.tar.gz
historical-11fe0924b6ffbe971e34113d7891352e08ac1a08.tar.bz2
historical-11fe0924b6ffbe971e34113d7891352e08ac1a08.zip
Version bump for dev channel release. Add USE flags for mp3 and x264
support, depending on the system ffmpeg. Package-Manager: portage-2.1.7.17/cvs/Linux i686
Diffstat (limited to 'www-client/chromium/chromium-9999.ebuild')
-rw-r--r--www-client/chromium/chromium-9999.ebuild35
1 files changed, 16 insertions, 19 deletions
diff --git a/www-client/chromium/chromium-9999.ebuild b/www-client/chromium/chromium-9999.ebuild
index 2207fa8d828a..b6df6704871b 100644
--- a/www-client/chromium/chromium-9999.ebuild
+++ b/www-client/chromium/chromium-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.42 2010/04/13 18:03:30 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.43 2010/04/14 18:47:37 phajdan.jr Exp $
EAPI="2"
inherit eutils flag-o-matic multilib portability subversion toolchain-funcs
@@ -14,7 +14,7 @@ EGCLIENT_REPO_URI="http://src.chromium.org/svn/trunk/src/"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
-IUSE="bindist +plugins-symlink"
+IUSE="mp3 +plugins-symlink x264"
RDEPEND="app-arch/bzip2
>=dev-libs/libevent-1.4.13
@@ -25,7 +25,7 @@ RDEPEND="app-arch/bzip2
>=media-libs/alsa-lib-1.0.19
media-libs/jpeg:0
media-libs/libpng
- >=media-video/ffmpeg-0.5_p21602[threads]
+ >=media-video/ffmpeg-0.5_p21602[mp3=,threads,x264=]
sys-libs/zlib
>=x11-libs/gtk+-2.14.7
x11-libs/libXScrnSaver"
@@ -71,13 +71,6 @@ pkg_setup() {
elog "${PN} might crash occasionally. To get more useful backtraces"
elog "and submit better bug reports, please read"
elog "http://www.gentoo.org/proj/en/qa/backtraces.xml"
-
- if ! use bindist; then
- einfo
- elog "You may not redistribute this build to any users on your network"
- elog "or the internet."
- elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
- fi
}
src_unpack() {
@@ -124,19 +117,15 @@ src_unpack() {
}
src_prepare() {
- # Gentoo uses .kde4, not .kde
- # TODO: this does not work with kdeprefix, fixing http:/crbug.com/29927
- # would be better
- sed -e 's/\.kde/.kde4/' -i net/proxy/proxy_config_service_linux.cc \
- || die "kde proxy sed failed"
# Changing this in ~/include.gypi does not work
sed -i "s/'-Werror'/''/" build/common.gypi || die "Werror sed failed"
+
# Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007
epatch "${FILESDIR}"/${PN}-drop_sse2.patch
- if ! use bindist; then
- # Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg
- epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch
- fi
+
+ # Allow supporting more media types provided system ffmpeg supports them.
+ epatch "${FILESDIR}"/${PN}-supported-media-mime-types.patch
+
# Fix build failure with libpng-1.4, bug 310959.
epatch "${FILESDIR}"/${PN}-libpng-1.4.patch
@@ -151,6 +140,14 @@ src_configure() {
# Fails to build on arm if we don't do this
use arm && append-flags -fno-tree-sink
+ if use mp3 ; then
+ append-cflags -DGENTOO_CHROMIUM_MP3_ENABLED
+ fi
+
+ if use x264 ; then
+ append-cflags -DGENTOO_CHROMIUM_H264_ENABLED
+ fi
+
# CFLAGS/LDFLAGS
mkdir -p "${S}"/.gyp
cat << EOF > "${S}"/.gyp/include.gypi