/[gentoo-x86]/games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild
Gentoo

Contents of /games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Oct 13 17:55:20 2010 UTC (3 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +14 -22 lines
tidy; add use deps; fix some compile warnings
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild,v 1.6 2010/09/30 15:54:06 tupone Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="an Atari Jaguar emulator"
9 HOMEPAGE="http://www.icculus.org/virtualjaguar/"
10 SRC_URI="http://www.icculus.org/virtualjaguar/tarballs/${P}-src.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~ppc x86"
15 IUSE=""
16
17 DEPEND="virtual/opengl
18 media-libs/libsdl[audio,joystick,opengl,video]"
19
20 S=${WORKDIR}/${P}-src
21
22 src_prepare() {
23 mkdir obj || die
24 edos2unix src/sdlemu_config.cpp
25 epatch \
26 "${FILESDIR}"/${PV}-cdintf_linux.patch \
27 "${FILESDIR}"/${P}-gcc43.patch \
28 "${FILESDIR}"/${P}-makefile.patch \
29 "${FILESDIR}"/${P}-array.patch
30
31 sed -e "s:GENTOODIR:${GAMES_BINDIR}:" \
32 "${FILESDIR}/virtualjaguar" > "${T}/virtualjaguar" || die
33 }
34
35 src_compile() {
36 export SYSTYPE=__GCCUNIX__ \
37 GLLIB=-lGL \
38 SDLLIBTYPE=--libs
39 emake obj/m68kops.h || die
40 emake LDFLAGS="${LDFLAGS}" || die "emake failed"
41 }
42
43 src_install() {
44 dogamesbin vj "${T}/virtualjaguar" || die "dogamebin failed"
45 dodoc docs/{README,TODO,WHATSNEW}
46 prepgamesdirs
47 }
48
49 pkg_postinst() {
50 games_pkg_postinst
51 elog "Please run ${PN} to create the necessary directories"
52 elog "in your home directory. After that you may place ROM files"
53 elog "in ~/.vj/ROMs and they will be detected when you run virtualjaguar."
54 elog "You may then select which ROM to run from inside the emulator."
55 elog
56 elog "If you have previously run a version of ${PV} please note that"
57 elog "the location of the ROMs has changed."
58 }

  ViewVC Help
Powered by ViewVC 1.1.20