/[gentoo-x86]/games-puzzle/enigma/enigma-1.01.ebuild
Gentoo

Contents of /games-puzzle/enigma/enigma-1.01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Fri Sep 28 12:24:34 2012 UTC (2 years, 2 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +4 -3 lines
Fix build with gcc-4.7. Bug #424133
Adding USE dependency on sdl-image. Bug #406857

(Portage version: 2.1.11.21/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-1.01.ebuild,v 1.16 2011/09/15 02:16:23 ssuominen Exp $
4
5 EAPI=2
6 inherit autotools eutils games
7
8 DESCRIPTION="puzzle game similar to Oxyd"
9 HOMEPAGE="http://www.nongnu.org/enigma/"
10 SRC_URI="mirror://berlios/enigma-game/${P}-64bit.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE="nls"
16
17 RDEPEND="media-libs/sdl-ttf
18 media-libs/libsdl
19 media-libs/sdl-mixer
20 media-libs/sdl-image[jpeg,png]
21 media-libs/libpng
22 || ( >=dev-libs/xerces-c-3[icu] >=dev-libs/xerces-c-3[-icu,-iconv] )
23 net-libs/enet:0
24 nls? ( virtual/libintl )"
25 DEPEND="${RDEPEND}
26 sys-devel/gettext"
27
28 src_prepare() {
29 cp /usr/share/gettext/config.rpath .
30 epatch \
31 "${FILESDIR}"/${P}-autotools.patch \
32 "${FILESDIR}"/${P}-gcc43.patch \
33 "${FILESDIR}"/${P}-gcc44.patch \
34 "${FILESDIR}"/${P}-gcc46.patch \
35 "${FILESDIR}"/${P}-gcc47.patch \
36 "${FILESDIR}"/${P}-xerces-c.patch \
37 "${FILESDIR}"/${P}-libpng15.patch
38 eautoreconf
39 }
40
41 src_configure() {
42 egamesconf \
43 --disable-dependency-tracking \
44 $(use_enable nls)
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" install || die "emake install failed"
49 dodoc ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING
50 dohtml -r doc/*
51 doman doc/enigma.6
52 prepgamesdirs
53 }

  ViewVC Help
Powered by ViewVC 1.1.20