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.
111 lines
2.2 KiB
111 lines
2.2 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
4 years ago
|
inherit autotools xdg
|
||
6 years ago
|
|
||
|
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=
|
||
5 years ago
|
media-libs/libsdl2[opengl,X]
|
||
6 years ago
|
media-libs/openal
|
||
|
virtual/opengl
|
||
|
x11-libs/libdrm
|
||
|
x11-libs/libX11
|
||
|
fmv? ( media-libs/libmpeg2 )
|
||
|
glew? ( media-libs/glew:0= )
|
||
|
"
|
||
|
|
||
|
DEPEND="
|
||
|
${RDEPEND}
|
||
5 years ago
|
x11-base/xorg-proto
|
||
6 years ago
|
"
|
||
|
|
||
|
BDEPEND="
|
||
5 years ago
|
app-arch/zip
|
||
6 years ago
|
sys-devel/gettext
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
PATCHES=(
|
||
5 years ago
|
"${FILESDIR}"/${PN}-3.0.0-libmpeg2.patch
|
||
5 years ago
|
"${FILESDIR}"/${PN}-3.0.0-Xatom.h.patch
|
||
6 years ago
|
)
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
AT_NO_RECURSIVE=1 eautoreconf
|
||
|
|
||
5 years ago
|
# Ensure bundled libraries are not used. Udis86 is unused
|
||
6 years ago
|
# 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.
|
||
5 years ago
|
rm -r libmpeg2/ libudis86/ || die
|
||
6 years ago
|
}
|
||
|
|
||
|
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 \
|
||
5 years ago
|
--enable-ncr \
|
||
|
--enable-ncr9x \
|
||
6 years ago
|
--enable-parallel-port \
|
||
|
--enable-prowizard \
|
||
|
--enable-savestate \
|
||
|
--enable-scp \
|
||
|
--enable-serial-port \
|
||
|
--enable-slirp \
|
||
|
--enable-softfloat \
|
||
5 years ago
|
--enable-qemu-cpu \
|
||
|
--enable-qemu-slirp \
|
||
6 years ago
|
--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() {
|
||
4 years ago
|
xdg_pkg_postinst
|
||
6 years ago
|
elog "Install app-emulation/fs-uae-launcher for a better graphical interface."
|
||
|
}
|