blob: c520713c68dc67d290ec847d1e053b3a2cc258ef (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/visualboyadvance-1.7.2.ebuild,v 1.1 2004/08/15 06:57:12 vapier Exp $
inherit games eutils
DESCRIPTION="gameboy, gameboy color, and gameboy advance emulator"
HOMEPAGE="http://vba.ngemu.com/"
SRC_URI="mirror://sourceforge/vba/VisualBoyAdvance-src-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE="mmx debug"
RDEPEND="virtual/x11
media-libs/libpng
sys-libs/zlib
media-libs/libsdl"
DEPEND="${RDEPEND}
mmx? ( dev-lang/nasm )"
S="${WORKDIR}/VisualBoyAdvance-${PV}"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-homedir.patch
}
src_compile() {
egamesconf \
--enable-c-core \
$(use_with debug profiling) \
$(use_with mmx) \
|| die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
insinto ${GAMES_DATADIR}/VisualBoyAdvance
doins src/VisualBoyAdvance.cfg
dodoc AUTHORS ChangeLog INSTALL NEWS README README-win.txt
prepgamesdirs
}
|