Add sks-1.1.15
[portage-overlay.git] / games-emulation / gens / gens-2.15.5.ebuild
1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-emulation/gens/gens-2.15.5.ebuild,v 1.7 2011/09/21 21:17:48 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils flag-o-matic games
7
8 DESCRIPTION="A Sega Genesis/CD/32X emulator"
9 HOMEPAGE="http://sourceforge.net/projects/gens/"
10 SRC_URI="mirror://sourceforge/gens/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86"
15 IUSE=""
16
17 RDEPEND="virtual/opengl
18         >=media-libs/libsdl-1.2[joystick,video]
19         x11-libs/gtk+:2"
20 DEPEND="${RDEPEND}
21         >=dev-lang/nasm-0.98"
22
23 src_prepare() {
24         epatch "${FILESDIR}"/${P}-romsdir.patch \
25                 "${FILESDIR}"/${P}-as-needed.patch \
26                 "${FILESDIR}"/${P}-ovflfix.patch
27         sed -i -e '1i#define OF(x) x' src/gens/util/file/unzip.h || die
28         append-ldflags -Wl,-z,noexecstack
29 }
30
31 src_install() {
32         emake DESTDIR="${D}" install || die "emake install failed"
33         dodoc AUTHORS BUGS README
34         prepgamesdirs
35 }