forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gngb-20060309-r1.ebuild
44 lines (37 loc) · 951 Bytes
/
gngb-20060309-r1.ebuild
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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
DESCRIPTION="Gameboy / Gameboy Color emulator"
HOMEPAGE="http://m.peponas.free.fr/gngb/"
SRC_URI="http://m.peponas.free.fr/gngb/download/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="opengl"
RDEPEND="
media-libs/libsdl[sound,joystick,video]
sys-libs/zlib
app-arch/bzip2
opengl? ( virtual/opengl )
"
DEPEND="${RDEPEND}"
PATCHES=(
# From Debian
"${FILESDIR}"/${P}-amd64.patch
"${FILESDIR}"/${P}-gcc34.patch
"${FILESDIR}"/${P}-gcc5.patch
"${FILESDIR}"/${P}-gcc7.patch
"${FILESDIR}"/${P}-inline.patch
"${FILESDIR}"/${P}-joystick.patch
"${FILESDIR}"/${P}-qwerty.patch
)
src_prepare() {
default
sed -i -e '70i#define OF(x) x' src/unzip.h || die
mv configure.in configure.ac || die
eautoreconf
}
src_configure() {
econf $(use_enable opengl gl)
}