/[gentoo-x86]/games-emulation/fakenes/fakenes-0.5.8-r1.ebuild
Gentoo

Contents of /games-emulation/fakenes/fakenes-0.5.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri May 4 04:38:40 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.6: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/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-emulation/fakenes/fakenes-0.5.8-r1.ebuild,v 1.6 2011/10/14 06:17:33 vapier Exp $
4
5 EAPI="2"
6
7 inherit eutils flag-o-matic toolchain-funcs games
8
9 DESCRIPTION="portable, Open Source NES emulator which is written mostly in C"
10 HOMEPAGE="http://fakenes.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/fakenes/${P}.tar.bz2"
12
13 LICENSE="ZLIB"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc x86"
16 IUSE="openal opengl zlib"
17
18 RDEPEND=">=media-libs/allegro-4.4.1.1:0[opengl?]
19 dev-games/hawknl
20 openal? (
21 media-libs/openal
22 media-libs/freealut
23 )
24 zlib? ( sys-libs/zlib )"
25 DEPEND="${RDEPEND}
26 virtual/pkgconfig"
27
28 src_prepare() {
29 sed -i \
30 -e "s:openal-config:pkg-config openal:" \
31 build/openal.cbd || die
32
33 sed -i \
34 -e "s:LIBAGL = agl:LIBAGL = alleggl:" \
35 build/alleggl.cbd || die
36 epatch "${FILESDIR}"/${P}-underlink.patch
37 }
38
39 src_compile() {
40 local myconf
41
42 append-ldflags -Wl,-z,noexecstack
43
44 $(tc-getCC) ${CFLAGS} cbuild.c -o cbuild || die "cbuild build failed"
45
46 use openal || myconf="$myconf -openal"
47 use opengl || myconf="$myconf -alleggl"
48 use zlib || myconf="$myconf -zlib"
49
50 ./cbuild ${myconf} --verbose || die "cbuild failed"
51 }
52
53 src_install() {
54 dogamesbin fakenes || die "dogamesbin failed"
55 insinto "${GAMES_DATADIR}/${PN}"
56 doins support/* || die "doins failed"
57 dodoc docs/{CHANGES,README}
58 dohtml docs/faq.html
59 prepgamesdirs
60 }

  ViewVC Help
Powered by ViewVC 1.1.20