diff options
Diffstat (limited to 'games-emulation/gens')
-rw-r--r-- | games-emulation/gens/Manifest | 9 | ||||
-rw-r--r-- | games-emulation/gens/files/gens-2.15.5-as-needed.patch | 11 | ||||
-rw-r--r-- | games-emulation/gens/files/gens-2.15.5-gcc34.patch | 46 | ||||
-rw-r--r-- | games-emulation/gens/files/gens-2.15.5-ovflfix.patch | 13 | ||||
-rw-r--r-- | games-emulation/gens/files/gens-2.15.5-romsdir.patch | 13 | ||||
-rw-r--r-- | games-emulation/gens/gens-2.15.5.ebuild | 44 | ||||
-rw-r--r-- | games-emulation/gens/metadata.xml | 11 |
7 files changed, 147 insertions, 0 deletions
diff --git a/games-emulation/gens/Manifest b/games-emulation/gens/Manifest new file mode 100644 index 000000000000..9ffe2810e1d3 --- /dev/null +++ b/games-emulation/gens/Manifest @@ -0,0 +1,9 @@ +AUX gens-2.15.5-as-needed.patch 363 SHA256 098425ef1bbd9f3c851dcbf709021faf97f25b34688a76e5173007efa47a13fa SHA512 f45c01cd60ac989123a226eb11341d5470dd2b0a4e03057cd4923b1314a08e88a5c2076363d1cb2321a016ae4073d90967b02acc29ca2f1a5e37f7c367efcea4 WHIRLPOOL 02d449d7ef9b914783fc223b541ae9f4837e5d70a2776f4d9824b472fced52cd7648e62595a628a6cdea9b3a51a040c91022c0b224ab0108f722191c0f0c7853 +AUX gens-2.15.5-gcc34.patch 1545 SHA256 3a47a7a75b002feea397e37f2bfe7f7e7dcda70db8f6fb54366308897e2e259f SHA512 8af2946ac09a18adc2d35ea7797acfdb107b86b29b6bf412a87080e4cc66e45bb5a61823095766bde2ca3e95768a1ac243e39b1d06f9bd99f20b7fdec71d1ef0 WHIRLPOOL 24ccea47b9716f744504bd9b206d5dc13e603a2fd1594db41ad86508d617310d9fc1997653353220bf0cb5412b0bccc9118176d64c9060ff712f208ffd87b842 +AUX gens-2.15.5-ovflfix.patch 577 SHA256 bdf0897492eadbbd062595814e61aba542964221c00f0cc24405a36c314e4eb7 SHA512 8c878b929f8a13bd8e33730cd09a4ebab4f47ed07ab02af88815ae8d02fd0d7a64ad44a4e369e2ad086022de207957dc88f99738bca737e50e18e951165f2631 WHIRLPOOL e738d64c49c7771acb7c36965d35a57d0c50e56271183e402076d645dce8f059e49eec995ad92f25fd5598d87f13345b93a06deb699ad860449d000a29d5f820 +AUX gens-2.15.5-romsdir.patch 571 SHA256 f03f74259712ac3d9a2d536e69583d69019d9bce87d699ce831039b1c722f00a SHA512 02dbdb3410ce62fc17469f0e8b2ee4d14025b218c71c4b27af8dfe71d319d51710b111e2104009f06579a3b499971218b72d75a993862e2657388a5194caa73f WHIRLPOOL f339f68111bfe57f3046c81a8e901e120f53f1d8e7dd9f4682d45c9e75e5a609d4058cdbe5289ef39e85a29ce9a35358c2c98e6837005909547941771bca6306 +DIST gens-2.15.5.tar.gz 741852 SHA256 51910d3056da9ffbb2c01cfec064998c9a4cad0cb379d703ec1b93c83dba305a SHA512 7163f6a1e09bac420e0e4aa0f8f3ed255406d9aff3cc7366c40226e7fece78baca5428d0fe87daf0f12f6e10b428477a795b54d008db5e3dcbf7692ed9d9fe7d WHIRLPOOL 282cced72eea63eb01b22612c5c40a4dc412b27d1fa3215a59da33a33541003172d57d442bced4d74cef89c3f3c443d2e7ca8cbd670a559a5cd8a3fc88b74696 +EBUILD gens-2.15.5.ebuild 992 SHA256 41b9621a70ebc857ebed2d280c18b1daeda2dcedab40cfd0a6cf2a642363ef89 SHA512 0deac0c45f3aa39df5602cb824f75eb4bc90ce9be74b73315bd4820a7438fa31307d0a255d3b7246112ce462c14b444ad66d3091f089b5a5f37af2d100951c61 WHIRLPOOL 6abe05c977803bdc5dc6895e45b3eb1bb13c003efabc8cffbf9e8ec10107ff76902628b330344d7f4431a96b8708db3f6e38a5eb90535fdfc884f3c84205f7fb +MISC ChangeLog 2710 SHA256 8dd7c0445e21304bfcaff7dcc05783388045414fca4d01dc0d8365da349ebb33 SHA512 5de1642d84cfb071f09ed872bab97ba43438048e80f405f90eebd3d48e351206edec6d0b76b1be9cacfc24635c0167b7402225ecb07403d9aef5ebb6764e85bc WHIRLPOOL decc13ba7f84c17b4356c7bb9ba354e4649aa644e1081281376c711ceeebdfd5cf835fc144b43c3ce41686ca14c6d6e90683336dd61fb35e025ec7106bac6fa1 +MISC ChangeLog-2015 3117 SHA256 e60dc4a488fe6bb36dfd11c1a851f31b95dbdcdbfdac9df685a4209d2526fb4e SHA512 560fa568e7fc56b079ea616378015696d3898e3db942f5d2fe0a397c240e1e63a53e27a3c9fcf655803a60174b340d19f6f4029294f5a13d5407335891ffde56 WHIRLPOOL 58d103232ea9993c5d76d344bd042bd3e45becab4fc5515970b2d27715861cacae4d3c503541032d52ad43f80aedf416f336f3c6098b02ae69c7ae0934385db2 +MISC metadata.xml 327 SHA256 58fb7c3e5a7d3badc23cfcffcae94824028e54ff684a1584e60af17ade9ad221 SHA512 651fefa76d513b3f2a0ecf865547bf7046605ef21fa689e620820464a28b3b2e5b288623e7ca71bcae93cc016871240025caf1fdb04a45a0695ec457098434b4 WHIRLPOOL 7bf170f41ce84e579e55eadb27e9da228dea9beaa9e0c47405eb76bc80d7d43e1dbbc75a1430b66f45190b57c25e5baf2d6312d1a75d0e4fef7d32aa3c46d66d diff --git a/games-emulation/gens/files/gens-2.15.5-as-needed.patch b/games-emulation/gens/files/gens-2.15.5-as-needed.patch new file mode 100644 index 000000000000..02aed32b802c --- /dev/null +++ b/games-emulation/gens/files/gens-2.15.5-as-needed.patch @@ -0,0 +1,11 @@ +--- configure.old 2009-02-04 14:41:40.000000000 +0100 ++++ configure 2009-02-04 14:48:52.000000000 +0100 +@@ -4929,7 +4929,7 @@ + { echo "$as_me:$LINENO: result: $with_opengl" >&5 + echo "${ECHO_T}$with_opengl" >&6; } + if test x$with_opengl = xyes; then +- LDFLAGS="$LDFLAGS -lGL" ++ LIBS="$LIBS -lGL" + + fi + fi diff --git a/games-emulation/gens/files/gens-2.15.5-gcc34.patch b/games-emulation/gens/files/gens-2.15.5-gcc34.patch new file mode 100644 index 000000000000..77acd5c4e970 --- /dev/null +++ b/games-emulation/gens/files/gens-2.15.5-gcc34.patch @@ -0,0 +1,46 @@ +from https://sourceforge.net/p/gens/patches/25/ + +--- gens.orig/src/gens/gens_core/cpu/68k/cpu_68k.c 2004-05-22 09:02:12.000000000 -0700 ++++ gens/src/gens/gens_core/cpu/68k/cpu_68k.c 2005-03-21 10:52:24.000000000 -0800 +@@ -24,9 +24,9 @@ + + struct STARSCREAM_PROGRAMREGION M68K_Fetch[] = { + {0x000000, 0x3FFFFF, (unsigned) 0x000000}, +- {0xFF0000, 0xFFFFFF, (unsigned) &Ram_68k[0] - 0xFF0000}, +- {0xF00000, 0xF0FFFF, (unsigned) &Ram_68k[0] - 0xF00000}, +- {0xEF0000, 0xEFFFFF, (unsigned) &Ram_68k[0] - 0xEF0000}, ++ {0xFF0000, 0xFFFFFF, (unsigned) NULL}, ++ {0xF00000, 0xF0FFFF, (unsigned) NULL}, ++ {0xEF0000, 0xEFFFFF, (unsigned) NULL}, + {-1, -1, (unsigned) NULL}, + {-1, -1, (unsigned) NULL}, + {-1, -1, (unsigned) NULL} +@@ -60,7 +60,7 @@ + + + struct STARSCREAM_PROGRAMREGION S68K_Fetch[] = { +- {0x000000, 0x07FFFF, (unsigned) &Ram_Prg[0]}, ++ {0x000000, 0x07FFFF, (unsigned) NULL}, + {-1, -1, (unsigned) NULL}, + {-1, -1, (unsigned) NULL} + }; +@@ -109,6 +109,10 @@ + int + M68K_Init (void) + { ++ M68K_Fetch[1].offset=(unsigned) &Ram_68k[0] - 0xFF0000; ++ M68K_Fetch[2].offset=(unsigned) &Ram_68k[0] - 0xF00000; ++ M68K_Fetch[3].offset=(unsigned) &Ram_68k[0] - 0xEF0000; ++ + memset (&Context_68K, 0, sizeof (Context_68K)); + + Context_68K.s_fetch = Context_68K.u_fetch = Context_68K.fetch = M68K_Fetch; +@@ -134,6 +138,8 @@ + int + S68K_Init (void) + { ++ S68K_Fetch[0].offset=(unsigned) &Ram_Prg[0]; ++ + memset (&Context_68K, 0, sizeof (Context_68K)); + + Context_68K.s_fetch = Context_68K.u_fetch = Context_68K.fetch = S68K_Fetch; diff --git a/games-emulation/gens/files/gens-2.15.5-ovflfix.patch b/games-emulation/gens/files/gens-2.15.5-ovflfix.patch new file mode 100644 index 000000000000..f5b98a54245f --- /dev/null +++ b/games-emulation/gens/files/gens-2.15.5-ovflfix.patch @@ -0,0 +1,13 @@ +--- src/gens/gens_core/cpu/68k/cpu_68k.c.old 2010-10-28 09:34:52.000000000 +0200 ++++ src/gens/gens_core/cpu/68k/cpu_68k.c 2010-10-28 09:35:53.000000000 +0200 +@@ -239,8 +239,8 @@ + memset (Ram_Word_2M, 0, 256 * 1024); + memset (Ram_Word_1M, 0, 256 * 1024); + +- memset (COMM.Command, 0, 8 * 5); +- memset (COMM.Status, 0, 8 * 5); ++ memset (COMM.Command, 0, sizeof (COMM.Command)); ++ memset (COMM.Status, 0, sizeof (COMM.Status)); + + LED_Status = S68K_State = S68K_Mem_WP = S68K_Mem_PM = Ram_Word_State = 0; + COMM.Flag = Init_Timer_INT3 = Timer_INT3 = Int_Mask_S68K = 0; diff --git a/games-emulation/gens/files/gens-2.15.5-romsdir.patch b/games-emulation/gens/files/gens-2.15.5-romsdir.patch new file mode 100644 index 000000000000..606efe2dd6f9 --- /dev/null +++ b/games-emulation/gens/files/gens-2.15.5-romsdir.patch @@ -0,0 +1,13 @@ +diff -ruN gens-rc3.5-opengl/src/gens/util/rom.c gens-rc3.5-opengl-patched/src/gens/util/rom.c +--- src/gens/util/file/rom.c 2005-01-10 22:24:01.000000000 +0100 ++++ src/gens/util/file/rom.c 2006-10-29 14:58:14.000000000 +0100 +@@ -411,6 +411,9 @@ + create_file_chooser_dialog ("Open Rom", GTK_FILE_CHOOSER_ACTION_OPEN); + // fileselection_set_dir (fd.filesel, Rom_Dir); + addRomsFilter (widget); ++ ++ gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (widget), Rom_Dir); ++ + res = gtk_dialog_run (GTK_DIALOG (widget)); + if (res == GTK_RESPONSE_OK) + { diff --git a/games-emulation/gens/gens-2.15.5.ebuild b/games-emulation/gens/gens-2.15.5.ebuild new file mode 100644 index 000000000000..d683b43a9aa2 --- /dev/null +++ b/games-emulation/gens/gens-2.15.5.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic games + +DESCRIPTION="A Sega Genesis/CD/32X emulator" +HOMEPAGE="https://sourceforge.net/projects/gens/" +SRC_URI="mirror://sourceforge/gens/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +RDEPEND="virtual/opengl + >=media-libs/libsdl-1.2[joystick,video] + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + >=dev-lang/nasm-0.98" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-romsdir.patch \ + "${FILESDIR}"/${P}-as-needed.patch \ + "${FILESDIR}"/${P}-ovflfix.patch \ + "${FILESDIR}"/${P}-gcc34.patch + sed -i -e '1i#define OF(x) x' src/gens/util/file/unzip.h || die + append-ldflags -Wl,-z,noexecstack +} + +src_configure() { + egamesconf \ + --disable-gtktest \ + --disable-sdltest +} + +src_install() { + DOCS="AUTHORS BUGS README gens.txt history.txt" \ + default + newicon pixmaps/gens_small.png ${PN}.png + make_desktop_entry "${PN}" "Gens" + prepgamesdirs +} diff --git a/games-emulation/gens/metadata.xml b/games-emulation/gens/metadata.xml new file mode 100644 index 000000000000..da30fe35d4bc --- /dev/null +++ b/games-emulation/gens/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">gens</remote-id> + </upstream> +</pkgmetadata> |