diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-16 13:59:59 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-16 13:59:59 +0000 |
commit | 1c1931a9444ec4101acf4d9cafcef20d50cb7b62 (patch) | |
tree | ad9c821e637604c94eef626aaf4ee53222432131 /games-emulation/fakenes | |
parent | Version bump (diff) | |
download | gentoo-2-1c1931a9444ec4101acf4d9cafcef20d50cb7b62.tar.gz gentoo-2-1c1931a9444ec4101acf4d9cafcef20d50cb7b62.tar.bz2 gentoo-2-1c1931a9444ec4101acf4d9cafcef20d50cb7b62.zip |
Compile and link against allegro >= 4.4.1.1.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'games-emulation/fakenes')
-rw-r--r-- | games-emulation/fakenes/ChangeLog | 10 | ||||
-rw-r--r-- | games-emulation/fakenes/fakenes-0.5.8-r1.ebuild | 55 |
2 files changed, 63 insertions, 2 deletions
diff --git a/games-emulation/fakenes/ChangeLog b/games-emulation/fakenes/ChangeLog index df3d422285d4..ccb7733a84c6 100644 --- a/games-emulation/fakenes/ChangeLog +++ b/games-emulation/fakenes/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-emulation/fakenes -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/fakenes/ChangeLog,v 1.16 2009/12/04 13:54:40 tupone Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/fakenes/ChangeLog,v 1.17 2010/03/16 13:59:59 ssuominen Exp $ + +*fakenes-0.5.8-r1 (16 Mar 2010) + + 16 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> + +fakenes-0.5.8-r1.ebuild: + Compile and link against allegro >= 4.4.1.1. 04 Dec 2009; Tupone Alfredo <tupone@gentoo.org> fakenes-0.5.8.ebuild: Fix reference to openal-config . Bug #295189 by volkmar@gentoo.org diff --git a/games-emulation/fakenes/fakenes-0.5.8-r1.ebuild b/games-emulation/fakenes/fakenes-0.5.8-r1.ebuild new file mode 100644 index 000000000000..525e31b61d28 --- /dev/null +++ b/games-emulation/fakenes/fakenes-0.5.8-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/fakenes/fakenes-0.5.8-r1.ebuild,v 1.1 2010/03/16 13:59:59 ssuominen Exp $ +EAPI=2 + +inherit eutils flag-o-matic toolchain-funcs games + +DESCRIPTION="portable, Open Source NES emulator which is written mostly in C" +HOMEPAGE="http://fakenes.sourceforge.net/" +SRC_URI="mirror://sourceforge/fakenes/${P}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="openal opengl zlib" + +DEPEND=">=media-libs/allegro-4.4.1.1[opengl?] + dev-games/hawknl + openal? ( + media-libs/openal + media-libs/freealut ) + zlib? ( sys-libs/zlib )" + +src_prepare() { + sed -i \ + -e "s:openal-config:pkg-config openal:" \ + build/openal.cbd || die + + sed -i \ + -e "s:LIBAGL = agl:LIBAGL = alleggl:" \ + build/alleggl.cbd || die +} + +src_compile() { + local myconf + + append-ldflags -Wl,-z,noexecstack + + $(tc-getCC) ${CFLAGS} cbuild.c -o cbuild || die "cbuild build failed" + + use openal || myconf="$myconf -openal" + use opengl || myconf="$myconf -alleggl" + use zlib || myconf="$myconf -zlib" + + ./cbuild ${myconf} || die "cbuild failed" +} + +src_install() { + dogamesbin fakenes || die "dogamesbin failed" + insinto "${GAMES_DATADIR}/${PN}" + doins support/* || die "doins failed" + dodoc docs/{CHANGES,README} + dohtml docs/faq.html + prepgamesdirs +} |