summaryrefslogtreecommitdiff
path: root/games-emulation/gens/gens-2.12b.ebuild
blob: c81a780c9fc73701b0882c13cd01c5dd3ece563b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# v-fox's private overlay: dfx.homeftp.net

inherit flag-o-matic eutils games

DESCRIPTION="A Sega Genesis/CD/32X emulator"
HOMEPAGE="http://gens.consolemul.com/"

SRC_URI="mirror://sourceforge/gens/gens-rc3.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="vanilla"

RDEPEND="x86? (	>=x11-libs/gtk+-2.4
		>=media-libs/libsdl-1.2 )
	amd64? ( app-emulation/emul-linux-x86-sdl 
		 app-emulation/emul-linux-x86-gtklibs )"
DEPEND="${RDEPEND}
	>=dev-lang/nasm-0.98"

S=${WORKDIR}/GensForLinux

src_unpack() {
	unpack ${A}
	cd "${S}"
	if use vanilla; then 
				epatch \
				"${FILESDIR}"/${P}-gcc4.patch \
				"${FILESDIR}"/${P}-romsdir.patch
		else
				epatch \
				"${FILESDIR}"/gens-rc3_to_mythgame.patch
	fi
	append-ldflags -Wl,-z,noexecstack
}

src_compile() {
	use amd64 && multilib_toolchain_setup x86
	egamesconf \
		$(use_enable x86 gtktest) || die # shut up and eat emul-linux-x86-gtklibs
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS BUGS README gens.txt history.txt
	prepgamesdirs
}