You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
6 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
|
inherit epatch toolchain-funcs flag-o-matic
|
||
13 years ago
|
|
||
|
PATCH="${P/-/_}-10.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"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
10 years ago
|
RDEPEND="x11-libs/libX11[abi_x86_32(-)]"
|
||
6 years ago
|
DEPEND="${RDEPEND}"
|
||
13 years ago
|
|
||
6 years ago
|
S="${WORKDIR}/${PN}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
epatch "${WORKDIR}"/${PATCH}
|
||
|
eapply "${FILESDIR}"/${P}-exec-stack.patch
|
||
|
eapply "${FILESDIR}"/${P}-include.patch
|
||
|
|
||
13 years ago
|
append-ldflags -Wl,-z,noexecstack
|
||
|
use amd64 && multilib_toolchain_setup x86
|
||
6 years ago
|
|
||
13 years ago
|
sed -i \
|
||
|
-e "s:-L/usr/X11R6/lib:${LDFLAGS}:" \
|
||
|
-e 's:-O2 ::' \
|
||
|
-e "s:gcc:$(tc-getCC) ${CFLAGS}:" \
|
||
|
-e "s:ld:$(tc-getLD) -m elf_i386 $(raw-ldflags):" \
|
||
10 years ago
|
Makefile || die
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
use amd64 && multilib_toolchain_setup x86
|
||
6 years ago
|
default
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
6 years ago
|
dobin nestra
|
||
|
einstalldocs
|
||
13 years ago
|
doman nestra.6
|
||
|
}
|