/[gentoo-x86]/games-strategy/wormux/wormux-0.8.ebuild
Gentoo

Contents of /games-strategy/wormux/wormux-0.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jan 10 22:22:51 2009 UTC (5 years, 9 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.4/cvs/Linux 2.6.27.8 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-strategy/wormux/wormux-0.8.ebuild,v 1.4 2008/10/09 06:03:40 nyhm Exp $
4
5 inherit autotools eutils games
6
7 DESCRIPTION="A free Worms clone"
8 HOMEPAGE="http://www.wormux.org/"
9 SRC_URI="http://download.gna.org/wormux/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~ppc x86"
14 IUSE="debug nls unicode"
15
16 RDEPEND="media-libs/libsdl
17 media-libs/sdl-image
18 media-libs/sdl-mixer
19 media-libs/sdl-ttf
20 media-libs/sdl-net
21 media-libs/sdl-gfx
22 media-libs/libpng
23 net-misc/curl
24 media-fonts/dejavu
25 >=dev-cpp/libxmlpp-2.6
26 nls? ( virtual/libintl )
27 unicode? ( dev-libs/fribidi )"
28 DEPEND="${RDEPEND}
29 dev-util/pkgconfig
30 nls? ( sys-devel/gettext )"
31
32 src_unpack() {
33 unpack ${A}
34 cd "${S}"
35 sed -i \
36 -e "/AX_CFLAGS_WARN_ALL/d" \
37 configure.ac \
38 || die "sed failed"
39 sed -i \
40 -e "s/-Werror//" \
41 src/Makefile.am \
42 || die "sed failed"
43 sed -i \
44 -e "/xdg/d" \
45 -e "/pixmaps/d" \
46 data/Makefile.am \
47 || die "sed failed"
48 eautoreconf
49 }
50
51 src_compile() {
52 egamesconf \
53 --disable-dependency-tracking \
54 --with-localedir-name=/usr/share/locale \
55 --with-datadir-name="${GAMES_DATADIR}/${PN}" \
56 --with-font-path=/usr/share/fonts/dejavu/DejaVuSans.ttf \
57 $(use_enable debug) \
58 $(use_enable nls) \
59 $(use_enable unicode fribidi) \
60 || die "configuration failed"
61 emake || die "emake failed"
62 }
63
64 src_install() {
65 emake DESTDIR="${D}" install || die "emake install failed"
66 dodoc AUTHORS ChangeLog README TODO
67 newicon data/wormux.svg wormux.svg
68 make_desktop_entry wormux Wormux
69 prepgamesdirs
70 }

  ViewVC Help
Powered by ViewVC 1.1.20