blob: 7f64343a1074105672240b374d4cdae10b63bde0 (
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
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/raine/raine-0.51.9.ebuild,v 1.6 2014/05/15 16:39:45 ulm Exp $
EAPI=2
inherit flag-o-matic eutils games
DESCRIPTION="R A I N E M680x0 Arcade Emulation"
HOMEPAGE="http://rainemu.swishparty.co.uk/"
SRC_URI="http://rainemu.swishparty.co.uk/html/archive/raines-${PV}.tar.bz2"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="dev-cpp/muParser
media-libs/libsdl[sound,joystick,video]
sys-libs/zlib
media-libs/sdl-image[png]
media-libs/sdl-ttf"
DEPEND="${RDEPEND}
dev-lang/nasm
app-arch/unzip"
src_prepare() {
echo > detect-cpu
echo > cpuinfo
sed -i \
-e "/^NEO/s:^:#:" \
-e "s:nasmw:nasm:" \
-e "/bindir/s:=.*:=\$(DESTDIR)${GAMES_BINDIR}:" \
-e "/sharedir =/s:=.*:=\$(DESTDIR)${GAMES_DATADIR}:" \
-e "/mandir/s:=.*:=\$(DESTDIR)/usr/share/man/man6:" \
makefile \
|| die "sed failed"
epatch "${FILESDIR}"/${P}-ldflags.patch \
"${FILESDIR}"/${P}-underlink.patch \
"${FILESDIR}"/${P}-libpng15.patch
has_version '>=sys-libs/zlib-1.2.5.1-r1' && \
sed -i -e '1i#define OF(x) x' source/mini-unzip/ioapi.h
append-ldflags -Wl,-z,noexecstack
}
src_compile() {
local myopts
emake \
_MARCH="${CFLAGS}" \
VERBOSE=1 \
${myopts} || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
keepdir "${GAMES_DATADIR}"/${PN}/{roms,artwork,emudx,scripts/raine}
dodoc docs/readme.txt
prepgamesdirs
}
|