blob: 3cf31cf10ce0a8056d0aa4e7dd66e2be8ce9a689 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools xdg
DESCRIPTION="Integrates the most accurate Amiga emulation code available from WinUAE"
HOMEPAGE="https://fs-uae.net/"
SRC_URI="https://fs-uae.net/stable/${PV}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="fmv glew"
RDEPEND="
dev-libs/glib:2
media-libs/libpng:0=
media-libs/libsdl2[opengl,X]
media-libs/openal
virtual/opengl
x11-libs/libdrm
x11-libs/libX11
fmv? ( media-libs/libmpeg2 )
glew? ( media-libs/glew:0= )
"
DEPEND="
${RDEPEND}
x11-base/xorg-proto
"
BDEPEND="
app-arch/zip
sys-devel/gettext
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-3.0.0-libmpeg2.patch
"${FILESDIR}"/${PN}-3.0.0-Xatom.h.patch
)
src_prepare() {
default
AT_NO_RECURSIVE=1 eautoreconf
# Ensure bundled libraries are not used. Udis86 is unused
# regardless. Only FLAC headers are bundled and the library is never
# used? Lua is bundled but differs from upstream. We keep the
# default of disabling the Lua feature anyway as it is unfinished.
rm -r libmpeg2/ libudis86/ || die
}
src_configure() {
# Qt and Udis86 are unused.
econf \
--enable-a2065 \
--enable-action-replay \
--enable-aga \
--enable-arcadia \
--enable-bsdsocket \
--enable-caps \
--enable-cd32 \
--enable-cdtv \
--enable-codegen \
--enable-dms \
--enable-drivesound \
--enable-fdi2raw \
--enable-gfxboard \
--enable-jit \
--enable-jit-fpu \
--enable-netplay \
--enable-ncr \
--enable-ncr9x \
--enable-parallel-port \
--enable-prowizard \
--enable-savestate \
--enable-scp \
--enable-serial-port \
--enable-slirp \
--enable-softfloat \
--enable-qemu-cpu \
--enable-qemu-slirp \
--enable-uaenative \
--enable-uaenet \
--enable-uaescsi \
--enable-uaeserial \
--disable-udis86 \
--enable-vpar \
--enable-xml-shader \
--enable-zip \
--with-glad \
--without-qt \
$(use_with fmv libmpeg2) \
$(use_with glew)
}
src_install() {
default
# Needed for QEMU-UAE.
insinto /usr/include/uae
doins src/include/uae/{api,attributes,log,ppc,qemu,types}.h
}
pkg_postinst() {
xdg_pkg_postinst
elog "Install app-emulation/fs-uae-launcher for a better graphical interface."
}
|