summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaarp <main.haarp@gmail.com>2020-08-14 15:02:26 +0200
committerhaarp <main.haarp@gmail.com>2020-08-14 15:02:26 +0200
commite0c5f9d9e893a9df68e481af7ecd62ebefb19af0 (patch)
tree8d1555ec31afd18d81b466ff084ec785972f082a /games-emulation/gens-gs
parentRemove outdated Solar-9999, Gentoo repo has it now (diff)
downloadhaarp-e0c5f9d9e893a9df68e481af7ecd62ebefb19af0.tar.gz
haarp-e0c5f9d9e893a9df68e481af7ecd62ebefb19af0.tar.bz2
haarp-e0c5f9d9e893a9df68e481af7ecd62ebefb19af0.zip
Add Gens-GS
Signed-off-by: haarp <main.haarp@gmail.com>
Diffstat (limited to 'games-emulation/gens-gs')
-rw-r--r--games-emulation/gens-gs/Manifest5
-rw-r--r--games-emulation/gens-gs/files/amd64.patch40
-rw-r--r--games-emulation/gens-gs/files/gtk_build_fix.patch14
-rw-r--r--games-emulation/gens-gs/files/libtool.patch8
-rw-r--r--games-emulation/gens-gs/gens-gs-7-r5.ebuild59
5 files changed, 126 insertions, 0 deletions
diff --git a/games-emulation/gens-gs/Manifest b/games-emulation/gens-gs/Manifest
new file mode 100644
index 0000000..7e1d1c7
--- /dev/null
+++ b/games-emulation/gens-gs/Manifest
@@ -0,0 +1,5 @@
+AUX amd64.patch 1604 BLAKE2B 071030eebba6a5c5f35e0804f270a0c423271b69175541542a4df663c1e1fffa22e9e8a4af19d4f39b63c96b160e1b49c126091b08d893956d815c0fc2ca8fb9 SHA512 c463229af17f41b88ce2c11714b6da8f379f15c9a44fae091cc2aa4d9f39ef49027477b0bc751f459a95d8180e3c1deaa4affbbc09a8479b9f03bf3ab7c455fc
+AUX gtk_build_fix.patch 360 BLAKE2B 48a304cb704f4bf341fb315eb66c41c3c2a7fc29661f3ee19dc1db4362f68a90e896e2287a5bb3138795bbf184538622ad445b35f1fa706316216d1f47a85afa SHA512 93ada78e2e9037d36ccf99e71b7c97fdc427aeab3f90c634f224c4aed2f436c0f0a3fc2b6bde025b0cebab0af2c7eabecfa5ce60c8391671f8851686eb2b32a7
+AUX libtool.patch 240 BLAKE2B 5a56264f44c70899f4af89cb9f1afc6b8562d877c1c61b0f72665e5c0d942a037567bdf23c71cbdf9437893bb6c760666a6e309be1e03c96fa912b0c983a6db6 SHA512 dd29e6ffae04ccbfa5180331d7cf8858015df1d942f86934745283025d5f77cd2c5a0c0f16d92f90e1b86c8e57964a38478713e72b9ac3d767470a92a4a8a37d
+DIST gens-gs-r7.tar.gz 3525070 BLAKE2B 62c208d8a8a7d03b082850f5c04c4a8714bf798efada77541e9a0b8ef1922f7e3b30e6d637a5ce404561d1ad23afd087a5fadcf0dcb3daa0e054a76945267d5f SHA512 8089ec6c1753481f6c3e0721b4d94fa933ef3211e871ab45b54be58107df7c39ed32f5125b2630f46e45df9604a5291220521aace2d149b73a3932b313b4bbaa
+EBUILD gens-gs-7-r5.ebuild 1192 BLAKE2B 728f74a500e5462e66c2de26bdac22cfe19d15c870864592bf0f7df8cd12ad6765483ff6a673eb5823b46ffba46a4ea2aa3a5b24f5a27b9fb05496e8c2d8e666 SHA512 8387c4bf6829da2cc0b2cd538d096aae2811993ffa5d97c93655886b142e5b121357f2d0651a4e893429a55de1d19a1c38082ac39a23d5f4210256a12919cf99
diff --git a/games-emulation/gens-gs/files/amd64.patch b/games-emulation/gens-gs/files/amd64.patch
new file mode 100644
index 0000000..c4cb9fb
--- /dev/null
+++ b/games-emulation/gens-gs/files/amd64.patch
@@ -0,0 +1,40 @@
+--- a/src/cbob/Makefile.am 2009-10-12 01:08:43.000000000 +0400
++++ b/src/cbob/Makefile.am 2014-03-21 21:35:03.188561520 +0400
+@@ -10,7 +10,7 @@
+ # cross-compiling for Win32.
+ # NOTE: This will only work with gcc.
+ cbob.o: cbob.c
+- $(build_alias)-gcc -o cbob.o -c ${srcdir}/cbob.c
++ $(CC) -o cbob.o -c ${srcdir}/cbob.c
+
+ cbob$(EXEEXT): cbob.o
+- $(build_alias)-gcc -o cbob$(EXEEXT) cbob.o
++ $(CC) -o cbob$(EXEEXT) cbob.o
+--- a/src/starscream/Makefile.am 2009-11-02 03:11:43.000000000 +0300
++++ b/src/starscream/Makefile.am 2014-03-21 21:34:36.571017240 +0400
+@@ -17,9 +17,9 @@
+ # cross-compiling for Win32.
+ # NOTE: This will only work with gcc.
+ star_m68k$(EXEEXT):
+- $(build_alias)-gcc -o star_m68k$(EXEEXT) ${srcdir}/star_m68k.c
++ $(CC) -o star_m68k$(EXEEXT) ${srcdir}/star_m68k.c
+ star_s68k$(EXEEXT):
+- $(build_alias)-gcc -o star_s68k$(EXEEXT) ${srcdir}/star_s68k.c
++ $(CC) -o star_s68k$(EXEEXT) ${srcdir}/star_s68k.c
+
+ main68k.asm: star_m68k$(EXEEXT)
+ ./star_m68k$(EXEEXT) main68k.asm -hog -name main68k_
+--- a/src/starscream/Makefile.in 2014-03-21 21:34:10.838491057 +0400
++++ b/src/starscream/Makefile.in 2014-03-21 21:34:36.571017240 +0400
+@@ -642,9 +642,9 @@
+ # cross-compiling for Win32.
+ # NOTE: This will only work with gcc.
+ star_m68k$(EXEEXT):
+- $(build_alias)-gcc -o star_m68k$(EXEEXT) ${srcdir}/star_m68k.c
++ $(CC) -o star_m68k$(EXEEXT) ${srcdir}/star_m68k.c
+ star_s68k$(EXEEXT):
+- $(build_alias)-gcc -o star_s68k$(EXEEXT) ${srcdir}/star_s68k.c
++ $(CC) -o star_s68k$(EXEEXT) ${srcdir}/star_s68k.c
+
+ main68k.asm: star_m68k$(EXEEXT)
+ ./star_m68k$(EXEEXT) main68k.asm -hog -name main68k_
diff --git a/games-emulation/gens-gs/files/gtk_build_fix.patch b/games-emulation/gens-gs/files/gtk_build_fix.patch
new file mode 100644
index 0000000..faa5419
--- /dev/null
+++ b/games-emulation/gens-gs/files/gtk_build_fix.patch
@@ -0,0 +1,14 @@
+diff --git a/configure.ac b/configure.ac
+index 7a5bac4..92a150b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -195,9 +195,6 @@ ifdef(
+ )
+ AC_DEFINE(GENS_UI_GTK, 1, Enable the GTK+ UI)
+
+-# TODO: Disable deprecated GTK+ features.
+-GTK_CFLAGS="$GTK_CFLAGS -DGTK_DISABLE_DEPRECATED -DDISABLE_DEPRECATED -DGSEAL_ENABLE"
+-
+ #elif test x$ui = xqt4; then
+ #
+ # Qt4
diff --git a/games-emulation/gens-gs/files/libtool.patch b/games-emulation/gens-gs/files/libtool.patch
new file mode 100644
index 0000000..beceba5
--- /dev/null
+++ b/games-emulation/gens-gs/files/libtool.patch
@@ -0,0 +1,8 @@
+--- a/src/gens/Makefile.unix.inc.am 2009-11-22 20:42:02.000000000 +0300
++++ b/src/gens/Makefile.unix.inc.am 2014-03-22 22:33:10.758229054 +0400
+@@ -139,3 +139,5 @@
+ if GENS_OPENGL
+ gens_LDADD += @GL_LIBS@
+ endif
++
++gens_LDADD += -ldl -lX11
diff --git a/games-emulation/gens-gs/gens-gs-7-r5.ebuild b/games-emulation/gens-gs/gens-gs-7-r5.ebuild
new file mode 100644
index 0000000..be25e00
--- /dev/null
+++ b/games-emulation/gens-gs/gens-gs-7-r5.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="A Gens fork which aims to clean up the source code and combine features from other forks"
+HOMEPAGE="http://info.sonicretro.org/Gens/GS"
+SRC_URI="http://www.soniccenter.org/gerbilsoft/gens/${MY_PV}/${PN}-r${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="opengl"
+
+RDEPEND="opengl? (
+ virtual/opengl[abi_x86_32]
+ )
+
+ >=media-libs/libsdl-1.2[opengl?,abi_x86_32]
+ x11-libs/gtk+:2[abi_x86_32]
+
+ !games-emulation/gens
+"
+DEPEND="${RDEPEND}
+ >=dev-lang/nasm-0.98
+"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+DOCS=( "ChangeLog.txt" )
+
+src_prepare() {
+ sed -i '1i#define OF(x) x' src/extlib/minizip/ioapi.h
+
+ eapply "${FILESDIR}/gtk_build_fix.patch"
+ eapply "${FILESDIR}/amd64.patch"
+ eapply "${FILESDIR}/libtool.patch"
+
+ sed -i 's/Application;//' xdg/gens.desktop
+
+ append-ldflags -Wl,-z,noexecstack
+ eautoreconf
+
+ eapply_user
+}
+
+src_configure() {
+ use amd64 && multilib_toolchain_setup x86
+
+ econf $(use_with opengl) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ einstalldocs
+}