summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/chromium/chromium-0.9.12-r5.ebuild')
-rw-r--r--games-action/chromium/chromium-0.9.12-r5.ebuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/games-action/chromium/chromium-0.9.12-r5.ebuild b/games-action/chromium/chromium-0.9.12-r5.ebuild
index ecdd14be6645..1588a8df6527 100644
--- a/games-action/chromium/chromium-0.9.12-r5.ebuild
+++ b/games-action/chromium/chromium-0.9.12-r5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/chromium/chromium-0.9.12-r5.ebuild,v 1.2 2004/02/10 11:53:52 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/chromium/chromium-0.9.12-r5.ebuild,v 1.3 2004/02/22 10:28:30 vapier Exp $
inherit games eutils
@@ -21,7 +21,7 @@ DEPEND="virtual/glibc
virtual/glut
)
oggvorbis? ( media-libs/libvorbis )
- qt? ( =x11-libs/qt-2* )
+ qt? ( x11-libs/qt )
media-libs/openal
virtual/x11"
@@ -32,6 +32,7 @@ src_unpack() {
cd ${S}
epatch ${FILESDIR}/${PV}-gcc3-gentoo.patch
epatch ${FILESDIR}/${PV}-proper-options.patch
+ has_version '=x11-libs/qt-3*' && epatch ${FILESDIR}/${PV}-qt3.patch
append-flags -DPKGDATADIR="'\"${GAMES_DATADIR}/${PN}\"'"
append-flags -DPKGBINDIR="'\"${GAMES_BINDIR}\"'"
sed -i "s:-O2 -DOLD_OPENAL:${CFLAGS}:" src/Makefile
@@ -50,10 +51,14 @@ src_compile() {
use oggvorbis \
&& export ENABLE_VORBIS="yes" \
|| export ENABLE_VORBIS="no"
- use qt \
- && export ENABLE_SETUP="yes" \
- && export QTDIR=/usr/qt/2 \
- || export ENABLE_SETUP="no"
+ if use qt ; then
+ export ENABLE_SETUP="yes"
+ has_version '=x11-libs/qt-3*' \
+ && export QTDIR=/usr/qt/3 \
+ || export QTDIR=/usr/qt/2
+ else
+ export ENABLE_SETUP="no"
+ fi
./configure || die "configure failed"
emake -j1 || die "make failed"
}