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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Apr 12 20:13:52 2009 UTC (11 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.7/cvs/Linux i686)

1 # Copyright 1999-2008 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-r7.ebuild,v 1.3 2008/07/27 20:17:27 carlo Exp $
4
5 EAPI=1
6
7 inherit eutils flag-o-matic qt3 toolchain-funcs versionator games
8
9 MY_PV=$(get_version_component_range -2)
10 DESCRIPTION="Chromium B.S.U. - an arcade game"
11 HOMEPAGE="http://www.reptilelabour.com/software/chromium/"
12 SRC_URI="http://www.reptilelabour.com/software/files/${PN}/${PN}-src-${PV}.tar.gz
13 http://www.reptilelabour.com/software/files/${PN}/${PN}-data-${PV}.tar.gz"
14
15 LICENSE="Artistic"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
18 IUSE="sdl qt3 vorbis"
19
20 DEPEND="virtual/opengl
21 virtual/glu
22 x11-libs/libXmu
23 sdl? ( media-libs/libsdl
24 media-libs/smpeg )
25 !sdl? ( virtual/glut )
26 vorbis? ( media-libs/libvorbis )
27 qt3? ( x11-libs/qt:3 )
28 media-libs/libpng
29 media-libs/openal
30 media-libs/freealut"
31
32 S=${WORKDIR}/Chromium-${MY_PV}
33
34 src_unpack() {
35 unpack ${A}
36 cd "${S}"
37 epatch \
38 "${FILESDIR}"/${PV}-freealut.patch \
39 "${FILESDIR}"/${PV}-configure.patch \
40 "${FILESDIR}"/${PV}-qt3.patch \
41 "${FILESDIR}"/${PV}-png.patch \
42 "${FILESDIR}"/${PV}-gcc43.patch
43 append-flags -DPKGDATADIR="'\"${GAMES_DATADIR}/${PN}\"'"
44 append-flags -DPKGBINDIR="'\"${GAMES_BINDIR}\"'"
45 sed -i \
46 -e "s:-O2 -DOLD_OPENAL:${CXXFLAGS}:" src/Makefile \
47 || die "sed src/Makefile failed"
48 sed -i \
49 -e "s:-g:${CXXFLAGS}:" src-setup/Makefile \
50 || die "sed src-setup/Makefile failed"
51 sed -i \
52 -e "s:-O2:${CFLAGS}:" support/glpng/src/Makefile \
53 || die "sed support/glpng/src/Makefile failed"
54 find "${S}" -type d -name CVS -exec rm -rf '{}' \; >& /dev/null
55 }
56
57 src_compile() {
58 if use sdl ; then
59 export ENABLE_SDL="yes"
60 export ENABLE_SMPEG="yes"
61 else
62 export ENABLE_SDL="no"
63 export ENABLE_SMPEG="no"
64 fi
65 use vorbis \
66 && export ENABLE_VORBIS="yes" \
67 || export ENABLE_VORBIS="no"
68 if use qt3 ; then
69 export ENABLE_SETUP="yes"
70 else
71 export ENABLE_SETUP="no"
72 fi
73 ./configure || die "configure failed"
74 emake -j1 \
75 CC=$(tc-getCC) \
76 CXX=$(tc-getCXX) \
77 LINK=$(tc-getCXX) \
78 || die "emake failed"
79 }
80
81 src_install() {
82 dogamesbin bin/chromium* || die "dogamesbin failed"
83 insinto "${GAMES_DATADIR}/${PN}"
84 rm -rf data/png/.xvpics
85 doins -r data || die "doins failed"
86 newicon data/png/hero.png ${PN}.png
87 make_desktop_entry chromium "Chromium B.S.U"
88 prepgamesdirs
89 }

  ViewVC Help
Powered by ViewVC 1.1.20