/[gentoo-x86]/games-action/chromium/chromium-0.9.12-r5.ebuild
Gentoo

Contents of /games-action/chromium/chromium-0.9.12-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Wed Aug 9 17:00:50 2006 UTC (14 years, 3 months ago) by wolf31o2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +1 -1 lines
FILE REMOVED
Cleaning up older revision.
(Portage version: 2.1.1_pre4-r4)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/chromium/chromium-0.9.12-r5.ebuild,v 1.17 2006/06/24 04:53:45 cardoe Exp $
4
5 inherit flag-o-matic eutils games
6
7 DESCRIPTION="Chromium B.S.U. - an arcade game"
8 HOMEPAGE="http://www.reptilelabour.com/software/chromium/"
9 SRC_URI="http://www.reptilelabour.com/software/files/chromium/chromium-src-${PV}.tar.gz
10 http://www.reptilelabour.com/software/files/chromium/chromium-data-${PV}.tar.gz"
11
12 LICENSE="Artistic"
13 SLOT="0"
14 KEYWORDS="amd64 ppc sparc x86"
15 IUSE="vorbis qt3 sdl"
16
17 DEPEND="|| ( x11-libs/libXext virtual/x11 )
18 || (
19 sdl? ( media-libs/libsdl
20 media-libs/smpeg )
21 virtual/glut
22 )
23 vorbis? ( media-libs/libvorbis )
24 qt3? ( =x11-libs/qt-3* )
25 media-libs/openal"
26
27 S=${WORKDIR}/Chromium-0.9
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32 cp data/png/hero.png "${T}/chromium.png" || die "cp failed"
33 epatch \
34 "${FILESDIR}"/${PV}-gcc3-gentoo.patch \
35 "${FILESDIR}"/${PV}-proper-options.patch
36 if use qt3 ; then
37 epatch "${FILESDIR}/${PV}-qt3.patch"
38 fi
39 append-flags -DPKGDATADIR="'\"${GAMES_DATADIR}/${PN}\"'"
40 append-flags -DPKGBINDIR="'\"${GAMES_BINDIR}\"'"
41 sed -i \
42 -e "s:-O2 -DOLD_OPENAL:${CFLAGS}:" src/Makefile \
43 || die "sed src/Makefile failed"
44 sed -i \
45 -e "s:-g:${CFLAGS}:" src-setup/Makefile \
46 || die "sed src-setup/Makefile failed"
47 sed -i \
48 -e "s:-O2:${CFLAGS}:" support/glpng/src/Makefile \
49 || die "sed support/glpng/src/Makefile failed"
50 find "${S}" -type d -name CVS -exec rm -rf '{}' \; >& /dev/null
51 }
52
53 src_compile() {
54 if use sdl ; then
55 export ENABLE_SDL="yes"
56 export ENABLE_SMPEG="yes"
57 else
58 export ENABLE_SDL="no"
59 export ENABLE_SMPEG="no"
60 fi
61 use vorbis \
62 && export ENABLE_VORBIS="yes" \
63 || export ENABLE_VORBIS="no"
64 if use qt3 ; then
65 export ENABLE_SETUP="yes"
66 export QTDIR=/usr/qt/3
67 else
68 export ENABLE_SETUP="no"
69 fi
70 ./configure || die "configure failed"
71 emake -j1 || die "make failed"
72 }
73
74 src_install() {
75 dogamesbin bin/chromium* || die "dogamesbin failed"
76 insinto "${GAMES_DATADIR}/${PN}"
77 rm -rf data/png/.xvpics
78 doins -r data || die "doins failed"
79 doicon "${T}"/chromium.png
80 make_desktop_entry chromium "Chromium B.S.U"
81 prepgamesdirs
82 }

  ViewVC Help
Powered by ViewVC 1.1.20