diff options
Diffstat (limited to 'app-emulation/fs-uae')
-rw-r--r-- | app-emulation/fs-uae/Manifest | 4 | ||||
-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, 171 insertions, 0 deletions
diff --git a/app-emulation/fs-uae/Manifest b/app-emulation/fs-uae/Manifest new file mode 100644 index 000000000000..1d5e8792ef26 --- /dev/null +++ b/app-emulation/fs-uae/Manifest @@ -0,0 +1,4 @@ +AUX fs-uae-2.8.3-libmpeg2.patch 1094 BLAKE2B a06d43e624cf254f21cddf73f010b5255609ac42d4c02b6ed65ce62581b6ff6c2d23e3fc184795f49cfb33fc518a0bc931102764ec4c86adfc24a74008136fe3 SHA512 ba4cc78a57d806cded8ee18076888b75ef4ecf55f0dc1a1fdc0d3186f1be58e0ffb6b46f8dd3a090775707ffc1d0a219830457af9d2b5f8c8ceec6005ba34c9d +DIST fs-uae-2.8.3.tar.gz 5017047 BLAKE2B 3d921446381b56d39410e4d68291c1cb696abd5e1b25105bdcc367c07112e79197d8267cfcb21f3f844cf5ac0a02a19ebec76611f34e747c6d03fefc2858a020 SHA512 1ccab4329a6b678a97f336b963bfaf9ea26bccccba31c90f1b7a8c2a6d3a9f343f9095733be744d4357495c808216d32c08a2bd8ce05bba73017147616d5e8cf +EBUILD fs-uae-2.8.3.ebuild 2376 BLAKE2B ff74f28954ff805502fceac894d0e4a55d34983af8262924d1c0b6136d8a7bbf408a8fd8e52629f70e3371ff4d2b245d334f5d4bd97d0a32e1e76e0d1cf5df44 SHA512 55969c91529ab07a139400e4efd16b8afc137ccfaf52f8f2fde47482e56fb718ab0a2b6155397e843a0da9e707fdafc3178a244bf8cb6309e4ae14bfa385e425 +MISC metadata.xml 533 BLAKE2B 5082ca2fc578b6fcb5a13825c2264a0c1cd6c227f8d85d1d8dfd056bd12b54784b90dca1b7e61c8d127c5d06dfb1b5a45f97125831f6ef42804a00d8fd992b2d SHA512 84eb6bf83f3ccfe871a33517117968f8aaae75a3af79ab29f96f3bff839badbd9c16c1296b1693e8c293e5a1363de12e650c0406b8dbbb1026e64acea5bbd745 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> |