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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Nov 10 19:05:49 2007 UTC (10 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.3.19)

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.18.ebuild,v 1.3 2007/09/28 23:49:52 dirtyepic Exp $
4
5 inherit autotools 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 RDEPEND="virtual/glu
18 virtual/opengl
19 >=media-libs/freetype-2
20 media-libs/libsdl
21 media-libs/sdl-net
22 media-libs/sdl-mixer
23 virtual/libintl
24 editor? ( =x11-libs/wxGTK-2.6* )"
25 DEPEND="${RDEPEND}
26 sys-devel/gettext"
27
28 S=${WORKDIR}/${PN}
29
30 pkg_setup() {
31 games_pkg_setup
32 use editor && WX_GTK_VER="2.6" need-wxwidgets gtk2
33 }
34
35 src_unpack() {
36 unpack ${A}
37 cd "${S}"
38 if use editor ; then
39 sed -i \
40 -e "/WXWIDGET_CFLAGS/s:wx-config:${WX_CONFIG}:" \
41 -e "/WXWIDGET_LIBS/s:wx-config:${WX_CONFIG}:" \
42 configure.in || die "sed failed"
43 fi
44 epatch "${FILESDIR}"/${P}-gcc42.patch
45 eautoreconf
46 }
47
48 src_compile() {
49 egamesconf \
50 --disable-dependency-tracking \
51 --with-data-dir="${GAMES_DATADIR}"/${PN} \
52 --localedir=/usr/share/locale \
53 $(use_enable editor) \
54 || die
55 emake || die "emake failed"
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install || die "emake install failed"
60 use editor && mv "${D}/${GAMES_BINDIR}"/{tools,${PN}-tools}
61 insinto "${GAMES_DATADIR}"/${PN}
62 doins -r ../scourge_data/* || die "doins failed"
63 doicon assets/scourge.png
64 make_desktop_entry scourge S.C.O.U.R.G.E.
65 dodoc AUTHORS README
66 prepgamesdirs
67 }

  ViewVC Help
Powered by ViewVC 1.1.20