Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57423 - games-emulation/gens: add support for OpenGL
Summary: games-emulation/gens: add support for OpenGL
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://dev.gentoo.org/~vanquirius/ove...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-17 15:40 UTC by Marcelo Goes (RETIRED)
Modified: 2009-09-24 21:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to current gens ebuild (gens.diff,600 bytes, patch)
2004-07-17 15:51 UTC, Marcelo Goes (RETIRED)
Details | Diff
updated ebuild for Gens OpenGL build (gens-2.12b.ebuild,890 bytes, text/plain)
2004-12-11 16:53 UTC, Jason Oliveira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Goes (RETIRED) gentoo-dev 2004-07-17 15:40:28 UTC
The current ebuild uses the source file "mirror://sourceforge/gens/gens-rc2.tar.gz",
when the latest version available is gens-rc3.tar.gz.
The current ebuild does not work with the latest version, it fails in src_install().

Reproducible: Always
Steps to Reproduce:
Rename gens-rc2.tar.gz to gens-rc3.tar.gz, fetch, digest, attempt to emerge.
Actual Results:  
make: *** No rule to make target `install'.  Stop.

!!! ERROR: games-emulation/gens-2.12a-r1 failed.
!!! Function src_install, Line 31, Exitcode 2
!!! make install failed

Expected Results:  
clean install
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2004-07-17 15:51:35 UTC
Created attachment 35656 [details, diff]
patch to current gens ebuild

ebuild works fine with patch
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2004-10-30 13:22:27 UTC
Can this be updated? It just requires 2 lines to be changed in the ebuild.
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2004-10-30 13:45:35 UTC
This tarball should also be considered, it adds opengl support to gens:

http://www.telefonica.net/web2/wahwah69/gens-rc3-opengl.tar.gz

For more information, see this thread:

http://forums.gentoo.org/viewtopic.php?p=1708553
Comment 4 Jason Oliveira 2004-12-11 16:52:25 UTC
it seems that the OpenGL version (which is an order of magnitude faster) has been updated again

updating ebuild with new location.
Comment 5 Jason Oliveira 2004-12-11 16:53:39 UTC
Created attachment 45788 [details]
updated ebuild for Gens OpenGL build
Comment 6 SpanKY gentoo-dev 2005-01-01 18:42:39 UTC
rc3 is in now, just not the opengl tarball
Comment 7 trefoil 2007-06-27 18:54:35 UTC
I edited the existing ebuild to use the gens-mythgame patchset, both opengl and non varieties @http://mythtv.wbond.net/gens_for_linux_mythgame_edition/ :

This fixes 144052, 153593, and this bug. Tested on x86.

--- /usr/portage/games-emulation/gens/gens-2.12b.ebuild 2006-01-14 22:39:44.000000000 -0500
+++ /home/kai/portage_overlay/games-emulation/gens-mythgame/gens-mythgame-2.12b.ebuild  2007-06-26 23:41:09.000000000 -0400
@@ -6,29 +6,33 @@
 
 DESCRIPTION="A Sega Genesis/CD/32X emulator"
 HOMEPAGE="http://gens.consolemul.com/"
-SRC_URI="mirror://sourceforge/gens/gens-rc3.tar.gz"
+SRC_URI="opengl? ( http://users.vialink.com.br/denilson/gens/gens-rc3.5-opengl.tar.gz 
+       http://mythtv.wbond.net/gens_for_linux_mythgame_edition/gens-rc3.5-opengl_to_mythgame-opengl.patch )
+       !opengl? ( mirror://sourceforge/gens/gens-rc3.tar.gz 
+       http://mythtv.wbond.net/gens_for_linux_mythgame_edition/gens-rc3_to_mythgame.patch )"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="x86"
-IUSE=""
+IUSE="opengl"
 
 RDEPEND=">=media-libs/libsdl-1.2
-       >=x11-libs/gtk+-2.4"
+       >=x11-libs/gtk+-2.4
+       opengl? ( virtual/opengl )"
 DEPEND="${RDEPEND}
        >=dev-lang/nasm-0.98"
 
-S=${WORKDIR}/GensForLinux
+use opengl && S=${WORKDIR}/gens-rc3.5-opengl || S=${WORKDIR}/GensForLinux
 
 src_unpack() {
        unpack ${A}
        cd "${S}"
-       epatch "${FILESDIR}"/${P}-gcc4.patch
+       use opengl && epatch "${DISTDIR}"/gens-rc3.5-opengl_to_mythgame-opengl.patch || epatch "${DISTDIR}"/gens-rc3_to_mythgame.patch
        append-ldflags -Wl,-z,noexecstack
 }
 
 src_install() {
        make DESTDIR="${D}" install || die "make install failed"
-       dodoc AUTHORS BUGS README
+       dodoc AUTHORS BUGS README gens.txt history.txt
        prepgamesdirs
 }
Comment 8 Marcelo Goes (RETIRED) gentoo-dev 2008-05-12 19:14:46 UTC
Can anyone have a look at this? Otherwise we might as well just close this bug...
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2009-09-24 21:01:44 UTC
for an old version - 2.15.5 is in portage.