blob: cb3a7e60c0cd3555c21d637b13a6d35e27cb7948 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/nestra/nestra-0.66-r1.ebuild,v 1.12 2006/02/05 14:39:14 blubb Exp $
inherit eutils toolchain-funcs flag-o-matic games
PATCH="${P/-/_}-7.diff"
DESCRIPTION="NES emulation for Linux/x86"
HOMEPAGE="http://nestra.linuxgames.com/"
SRC_URI="http://nestra.linuxgames.com/${P}.tar.gz
mirror://debian/pool/contrib/n/nestra/${PATCH}.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
RDEPEND="amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.2-r7 )"
DEPEND="${RDEPEND}
virtual/x11"
S=${WORKDIR}/${PN}
pkg_setup() {
games_pkg_setup
use amd64 && export ABI=x86
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${WORKDIR}"/${PATCH} "${FILESDIR}"/${P}-exec-stack.patch
append-ldflags -Wl,-z,noexecstack
sed -i \
-e "s:-L/usr/X11R6/lib:${LDFLAGS}:" \
-e 's:-O2 ::' \
-e "s:gcc:$(tc-getCC) ${CFLAGS}:" \
-e "s:ld:$(tc-getLD) $(raw-ldflags):" \
Makefile \
|| die "sed failed"
}
src_install() {
dogamesbin nestra || die "dogamesbin failed"
dodoc BUGS CHANGES README
doman nestra.6
prepgamesdirs
}
|