diff options
author | James Le Cuirot <chewi@gentoo.org> | 2019-04-20 11:03:47 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2019-04-20 11:03:47 +0100 |
commit | 061131ac2bfd6a8ee8795e2c4b6c503ba11f4015 (patch) | |
tree | 81f3a2bbba21dd0d3b4edad714d9783acf3f1266 /app-emulation/fs-uae | |
parent | dev-python/python-lhafile: New package, used by fs-uae-launcher (diff) | |
download | gentoo-061131ac2bfd6a8ee8795e2c4b6c503ba11f4015.tar.gz gentoo-061131ac2bfd6a8ee8795e2c4b6c503ba11f4015.tar.bz2 gentoo-061131ac2bfd6a8ee8795e2c4b6c503ba11f4015.zip |
app-emulation/fs-uae: New Amiga emulator package
Closes: https://bugs.gentoo.org/403913
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'app-emulation/fs-uae')
-rw-r--r-- | app-emulation/fs-uae/Manifest | 1 | ||||
-rw-r--r-- | app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch | 36 | ||||
-rw-r--r-- | app-emulation/fs-uae/fs-uae-2.8.3.ebuild | 116 | ||||
-rw-r--r-- | app-emulation/fs-uae/metadata.xml | 15 |
4 files changed, 168 insertions, 0 deletions
diff --git a/app-emulation/fs-uae/Manifest b/app-emulation/fs-uae/Manifest new file mode 100644 index 000000000000..7ddd296728c4 --- /dev/null +++ b/app-emulation/fs-uae/Manifest @@ -0,0 +1 @@ +DIST fs-uae-2.8.3.tar.gz 5017047 BLAKE2B 3d921446381b56d39410e4d68291c1cb696abd5e1b25105bdcc367c07112e79197d8267cfcb21f3f844cf5ac0a02a19ebec76611f34e747c6d03fefc2858a020 SHA512 1ccab4329a6b678a97f336b963bfaf9ea26bccccba31c90f1b7a8c2a6d3a9f343f9095733be744d4357495c808216d32c08a2bd8ce05bba73017147616d5e8cf diff --git a/app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch b/app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch new file mode 100644 index 000000000000..660cd2fc9036 --- /dev/null +++ b/app-emulation/fs-uae/files/fs-uae-2.8.3-libmpeg2.patch @@ -0,0 +1,36 @@ +From 5937f7587de5b96cbab120e99b6ae3a0cd722c53 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot <chewi@gentoo.org> +Date: Fri, 19 Apr 2019 21:56:58 +0100 +Subject: [PATCH] Only run configure in libmpeg2 when using built-in version + +--- + configure.ac | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 39958ad..941391a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -200,7 +200,7 @@ AS_IF([test "x$with_glew" = xyes], [ + ]) + + AC_ARG_WITH(libmpeg2, AS_HELP_STRING( +- [--without-libmpeg2], [or --with-libmpeg=builtin to use included version])) ++ [--without-libmpeg2], [or --with-libmpeg2=builtin to use included version])) + AM_CONDITIONAL([BUILTIN_LIBMPEG2], [test x$with_libmpeg2 = xbuiltin]) + AS_IF([test "x$with_libmpeg2" != xno], [ + AS_IF([test "x$with_libmpeg2" = xbuiltin], [ +@@ -776,7 +776,9 @@ OPT_FEATURE([A_ZIP], [zip], [zip], + + AC_DEFINE([FPU_UAE], [1], [Define to 1]) + +-AC_CONFIG_SUBDIRS([libmpeg2]) ++AS_IF([test "x$with_libmpeg2" = xbuiltin], [ ++ AC_CONFIG_SUBDIRS([libmpeg2]) ++]) + + # Write Makefile + +-- +2.20.1 + diff --git a/app-emulation/fs-uae/fs-uae-2.8.3.ebuild b/app-emulation/fs-uae/fs-uae-2.8.3.ebuild new file mode 100644 index 000000000000..698c12210c57 --- /dev/null +++ b/app-emulation/fs-uae/fs-uae-2.8.3.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools xdg-utils + +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] + media-libs/openal + virtual/opengl + x11-libs/libdrm + x11-libs/libX11 + fmv? ( media-libs/libmpeg2 ) + glew? ( media-libs/glew:0= ) +" + +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.8.3-libmpeg2.patch +) + +src_prepare() { + default + AT_NO_RECURSIVE=1 eautoreconf + + # Ensure bundled libraries are not used. GLee and Udis86 are 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 glee/ 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-ncr9x \ + --enable-ncr \ + --enable-netplay \ + --enable-parallel-port \ + --enable-prowizard \ + --enable-qemu-cpu \ + --enable-qemu-slirp \ + --enable-savestate \ + --enable-scp \ + --enable-serial-port \ + --enable-slirp \ + --enable-softfloat \ + --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_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update + + elog "Install app-emulation/fs-uae-launcher for a better graphical interface." +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update + xdg_icon_cache_update +} diff --git a/app-emulation/fs-uae/metadata.xml b/app-emulation/fs-uae/metadata.xml new file mode 100644 index 000000000000..e92d93d760f7 --- /dev/null +++ b/app-emulation/fs-uae/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chewi@gentoo.org</email> + <name>James Le Cuirot</name> + </maintainer> + <upstream> + <remote-id type="github">FrodeSolheim/fs-uae</remote-id> + </upstream> + <use> + <flag name="fmv">Enable support for CD32 FMV (full motion video)</flag> + <flag name="glew">Enable support for The OpenGL Extension Wrangler Library (<pkg>media-libs/glew</pkg>)</flag> + </use> +</pkgmetadata> |