blob: 1588a8df6527fc9168fdbc46347c0003a08df171 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# 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.3 2004/02/22 10:28:30 vapier Exp $
inherit games eutils
DESCRIPTION="Chromium B.S.U. - an arcade game"
HOMEPAGE="http://www.reptilelabour.com/software/chromium/"
SRC_URI="http://www.reptilelabour.com/software/files/chromium/chromium-src-${PV}.tar.gz
http://www.reptilelabour.com/software/files/chromium/chromium-data-${PV}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE="arts esd qt sdl svga oggvorbis alsa"
DEPEND="virtual/glibc
|| (
sdl? ( media-libs/libsdl
media-libs/smpeg )
virtual/glut
)
oggvorbis? ( media-libs/libvorbis )
qt? ( x11-libs/qt )
media-libs/openal
virtual/x11"
S=${WORKDIR}/Chromium-0.9
src_unpack() {
unpack ${A}
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
sed -i "s:-g:${CFLAGS}:" src-setup/Makefile
sed -i "s:-O2:${CFLAGS}:" support/glpng/src/Makefile
}
src_compile() {
if [ `use sdl` ] ; then
export ENABLE_SDL="yes"
export ENABLE_SMPEG="yes"
else
export ENABLE_SDL="no"
export ENABLE_SMPEG="no"
fi
use oggvorbis \
&& export ENABLE_VORBIS="yes" \
|| export ENABLE_VORBIS="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"
}
src_install() {
exeinto ${GAMES_BINDIR}
doexe bin/chromium*
dodir ${GAMES_DATADIR}/${PN}
cp -r data ${D}/${GAMES_DATADIR}/${PN}/
find ${D} -name CVS -exec rm -rf '{}' \; >& /dev/null
prepgamesdirs
}
|