/[gentoo-x86]/games-roguelike/scourge/scourge-0.17.ebuild
Gentoo

Contents of /games-roguelike/scourge/scourge-0.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 18 05:57:19 2007 UTC (11 years ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3.9)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.17.ebuild,v 1.1 2007/01/15 18:17:30 nyhm Exp $
4
5 inherit eutils wxwidgets games
6
7 DESCRIPTION="A graphical rogue-like adventure game"
8 HOMEPAGE="http://scourge.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz
10 mirror://sourceforge/${PN}/${P}.data.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 IUSE="editor"
16
17 DEPEND="x11-libs/libXmu
18 x11-libs/libXi
19 virtual/glu
20 virtual/opengl
21 >=media-libs/freetype-2
22 media-libs/libsdl
23 media-libs/sdl-net
24 media-libs/sdl-mixer
25 editor? ( >=x11-libs/wxGTK-2.6 )"
26
27 S=${WORKDIR}/${PN}
28
29 pkg_setup() {
30 games_pkg_setup
31 use editor && WX_GTK_VER="2.6" need-wxwidgets unicode
32 }
33
34 src_unpack() {
35 unpack ${A}
36 cd "${S}"
37 if use editor ; then
38 sed -i \
39 -e "/WXWIDGET_CFLAGS/s:wx-config:${WX_CONFIG}:" \
40 -e "/WXWIDGET_LIBS/s:wx-config:${WX_CONFIG}:" \
41 configure || die "sed failed"
42 fi
43 }
44
45 src_compile() {
46 egamesconf \
47 --disable-dependency-tracking \
48 --with-data-dir="${GAMES_DATADIR}"/${PN} \
49 $(use_enable editor) \
50 || die
51 emake || die "emake failed"
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die "emake install failed"
56 use editor && mv "${D}/${GAMES_BINDIR}"/{tools,${PN}-tools}
57 insinto "${GAMES_DATADIR}"/${PN}
58 doins -r ../scourge_data/* || die "doins failed"
59 doicon assets/scourge.png
60 make_desktop_entry scourge S.C.O.U.R.G.E.
61 dodoc AUTHORS README
62 prepgamesdirs
63 }

  ViewVC Help
Powered by ViewVC 1.1.20