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

Contents of /games-action/chromium/chromium-0.9.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Nov 16 03:54:12 2010 UTC (10 years ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 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.14.ebuild,v 1.6 2010/09/16 16:47:46 scarabeus Exp $
4
5 EAPI=2
6 inherit autotools eutils games
7
8 MY_P="${PN}-bsu-${PV}"
9 DESCRIPTION="Chromium B.S.U. - an arcade game"
10 HOMEPAGE="http://chromium-bsu.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/chromium-bsu/${MY_P}.tar.gz"
12
13 LICENSE="Artistic"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE="+mixer nls +sdl"
17
18 RDEPEND="media-fonts/dejavu
19 media-libs/quesoglc
20 media-libs/glpng
21 virtual/opengl
22 virtual/glu
23 x11-libs/libXmu
24 mixer? ( media-libs/sdl-mixer )
25 !mixer? (
26 media-libs/freealut
27 media-libs/openal
28 )
29 nls? ( virtual/libintl )
30 sdl? (
31 media-libs/libsdl[X]
32 media-libs/sdl-image[png]
33 )
34 !sdl? ( media-libs/freeglut )"
35 DEPEND="${RDEPEND}
36 nls? ( sys-devel/gettext )"
37
38 S=${WORKDIR}/${MY_P}
39
40 src_prepare() {
41 epatch "${FILESDIR}"/${P}-pkgconfig.patch
42 eautoreconf
43 }
44
45 src_configure() {
46 egamesconf \
47 --disable-dependency-tracking \
48 --disable-ftgl \
49 --enable-glc \
50 --with-font-path="/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf" \
51 $(use_enable mixer sdlmixer) \
52 $(use_enable !mixer openal) \
53 $(use_enable nls) \
54 $(use_enable sdl) \
55 $(use_enable sdl sdlimage) \
56 $(use_enable !sdl glut)
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" install || die "emake install failed"
61
62 # remove installed /usr/games/share stuff
63 rm -rf "${D}"/"${GAMES_PREFIX}"/share/
64 newicon misc/${PN}-bsu.png ${PN}.png || die "doicon failed"
65 make_desktop_entry ${PN}-bsu "Chromium B.S.U"
66
67 # install documentation
68 dodoc AUTHORS README NEWS || die "dodoc failed"
69 dohtml "${S}"/data/doc/*.htm || die "dohtml failed"
70 cd "${S}"/data/doc/images
71 insinto /usr/share/doc/${PF}/html/images
72 doins *.jpg || die "doins failed"
73
74 prepgamesdirs
75 }

  ViewVC Help
Powered by ViewVC 1.1.20