summaryrefslogtreecommitdiff
blob: 675f7bec7691cf0858f7159ba8a2b55aaf986690 (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
50
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/visualboyadvance/visualboyadvance-1.5.1.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $

inherit games

S=${WORKDIR}/VisualBoyAdvance-1.5

DESCRIPTION="gameboy, gameboy color, and gameboy advance emulator"
HOMEPAGE="http://vboy.emuhq.com/"
SRC_URI="mirror://sourceforge/vba/VisualBoyAdvance-${PV}-src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="mmx debug"

DEPEND="mmx? ( dev-lang/nasm )
	media-libs/libpng
	sys-libs/zlib
	media-libs/libsdl
	virtual/x11"

src_compile() {
	for m in `find -name Makefile.in` ; do
		cp ${m}{,.orig}
		sed -e "s:@LIBTOOL@:/usr/bin/libtool:" ${m}.orig > ${m}
	done

	egamesconf \
		--enable-c-core \
		`use_with debug profiling` \
		`use_with mmx` \
		|| die
	if [ ! `use debug` ] ; then
		cp src/Makefile{,.orig}
		sed -e 's:prof/libprof.a::' \
			src/Makefile.orig > src/Makefile
	fi
	emake || die
}

src_install() {
	make install DESTDIR=${D} || die
	dogamesbin ${FILESDIR}/playvisualboyadvance
	insinto ${GAMES_DATADIR}/VisualBoyAdvance
	doins src/VisualBoyAdvance.cfg
	dodoc README README-win.txt INSTALL ChangeLog AUTHORS NEWS
	prepgamesdirs
}