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.
51 lines
922 B
51 lines
922 B
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 flag-o-matic
|
||
13 years ago
|
|
||
|
DESCRIPTION="Gamecube emulator"
|
||
|
HOMEPAGE="http://gcube.exemu.net/"
|
||
|
SRC_URI="http://gcube.exemu.net/downloads/${P}-src.tar.bz2"
|
||
|
|
||
9 years ago
|
LICENSE="GPL-2+"
|
||
13 years ago
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
6 years ago
|
RDEPEND="
|
||
|
virtual/opengl
|
||
9 years ago
|
media-libs/libsdl[joystick,opengl,sound,video]
|
||
9 years ago
|
virtual/jpeg:0
|
||
6 years ago
|
sys-libs/ncurses:0=
|
||
|
sys-libs/zlib
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
13 years ago
|
|
||
6 years ago
|
S="${WORKDIR}/${PV}"
|
||
13 years ago
|
|
||
|
src_prepare() {
|
||
6 years ago
|
default
|
||
|
|
||
9 years ago
|
sed -i -e '/^CFLAGS=-g/d' Makefile.rules || die
|
||
6 years ago
|
|
||
|
eapply "${FILESDIR}"/${P}-ldflags.patch \
|
||
12 years ago
|
"${FILESDIR}"/${P}-underlink.patch \
|
||
|
"${FILESDIR}"/${P}-gcc47.patch
|
||
6 years ago
|
|
||
9 years ago
|
sed -i -e '/^CC=/d' Makefile || die
|
||
6 years ago
|
|
||
9 years ago
|
append-cflags -std=gnu89 # build with gcc5 (bug #570504)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
local x
|
||
|
|
||
6 years ago
|
dobin gcmap gcube
|
||
13 years ago
|
for x in bin2dol isopack thpview tplx ; do
|
||
6 years ago
|
newbin ${x} ${PN}-${x}
|
||
13 years ago
|
done
|
||
6 years ago
|
|
||
|
einstalldocs
|
||
13 years ago
|
}
|