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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Oct 7 21:27:26 2007 UTC (11 years, 1 month ago) by mr_bones_
Branch: MAIN
Changes since 1.1: +2 -1 lines
add sdl-ttf to the deps for bug #195011
(Portage version: 2.1.3.9)

1 mr_bones_ 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 mr_bones_ 1.2 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.19.ebuild,v 1.1 2007/10/05 17:56:09 mr_bones_ Exp $
4 mr_bones_ 1.1
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 mr_bones_ 1.2 media-libs/sdl-ttf
24 mr_bones_ 1.1 virtual/libintl
25     editor? ( =x11-libs/wxGTK-2.6* )"
26     DEPEND="${RDEPEND}
27     sys-devel/gettext"
28    
29     S=${WORKDIR}/${PN}
30    
31     pkg_setup() {
32     games_pkg_setup
33     use editor && WX_GTK_VER="2.6" need-wxwidgets gtk2
34     }
35    
36     src_unpack() {
37     unpack ${A}
38     cd "${S}"
39     if use editor ; then
40     sed -i \
41     -e "/WXWIDGET_CFLAGS/s:wx-config:${WX_CONFIG}:" \
42     -e "/WXWIDGET_LIBS/s:wx-config:${WX_CONFIG}:" \
43     configure.in || die "sed failed"
44     fi
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