Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110044 - EBUILD: mednafen - fork of FCEUltra
Summary: EBUILD: mednafen - fork of FCEUltra
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
Depends on:
Reported: 2005-10-21 09:18 UTC by Sal Gonzalez
Modified: 2006-05-18 19:51 UTC (History)
2 users (show)

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

mednafen ebuild (mednafen-0.3.7.ebuild,1.09 KB, text/plain)
2005-10-21 09:19 UTC, Sal Gonzalez
mednafen 0.5.2 ebuild (mednafen-0.5.2.ebuild,1.22 KB, text/plain)
2006-02-27 17:27 UTC, Sal Gonzalez
mednafen 0.5.2 (r1) (mednafen-0.5.2-r1.ebuild,1.22 KB, application/octet-stream)
2006-02-27 17:39 UTC, Sal Gonzalez
mednafen-0.5.2-r2.ebuild (mednafen-0.5.2-r2.ebuild,1.13 KB, application/octet-stream)
2006-02-27 17:58 UTC, Sal Gonzalez
mednafen-0.5.2.ebuild (version 4) (mednafen-0.5.2.ebuild,1.33 KB, text/plain)
2006-03-24 15:14 UTC, trefoil
mednafen-0.5.2.ebuild (version 5) (mednafen-0.5.2.ebuild,1.32 KB, text/plain)
2006-03-25 18:13 UTC, trefoil
mednafen-0.5.2.ebuild (version 6) (mednafen-0.5.2.ebuild,1.09 KB, text/plain)
2006-04-21 19:52 UTC, trefoil
mednafen-0.5.2 (v7) (mednafen-0.5.2.ebuild,1.69 KB, text/plain)
2006-04-22 12:21 UTC, trefoil
mednafen-0.6.0.ebuild (mednafen-0.6.0.ebuild,1.73 KB, text/plain)
2006-05-18 13:41 UTC, trefoil

Note You need to log in before you can comment on or make changes to this bug.
Description Sal Gonzalez 2005-10-21 09:18:39 UTC
mednafen (formerly nintencer) is a fork for FCEUltra (which is no lonker under


It compiles on x86 & AMD64, but the opengl USE requires eselect-opengl(~arch)
because it requires the glext.h header file

Reproducible: Always
Steps to Reproduce:
Comment 1 Sal Gonzalez 2005-10-21 09:19:31 UTC
Created attachment 71130 [details]
mednafen ebuild
Comment 2 Jeff 2005-11-30 16:55:13 UTC
Compilation fails with this on my system : 

drivers/netplay.cpp:24:25: SDL/SDL_net.h: No such file or directory
drivers/netplay.cpp:40: error: `TCPsocket' does not name a type
make: *** [all-recursive] Error 1

The problem is caused by the configure script not checking for the existence of
sdl-net. see
I don't know if the ebuild should ask for media-libs/sdl-net or we should patch
the configure script or just let the author fix it, as I'm new to this.  If
anyone can point me to the right solution I'd appreciate it.
Comment 3 trefoil 2006-02-27 17:12:38 UTC
I'd like to see an ebuild for Mednafen as well. It compiles and works great for me with a simple ./configure && make. I forget the dependencies, but they were basically the same as for fceultra -- sdl, libsndfile, and some others. I'm running an x86 system (not ~) and I didn't need to use eselect-opengl at all.

The old fceultra build shouldn't be deprecated as it'd be useful for regression testing.
Comment 4 Sal Gonzalez 2006-02-27 17:27:20 UTC
Created attachment 80871 [details]
mednafen 0.5.2 ebuild

added libsdl,  sdl-net, libvorbis dependancies.
Comment 5 Sal Gonzalez 2006-02-27 17:39:09 UTC
Created attachment 80872 [details]
mednafen 0.5.2 (r1)

Fixed docdoc error (oops)
Comment 6 Sal Gonzalez 2006-02-27 17:58:01 UTC
Created attachment 80873 [details]

more documentation oopses. a little too impationt i guess :(
Comment 7 Jeff 2006-03-09 23:56:40 UTC
Erm isn't anyone gonna pick this up ?  That's like the best nes emulator out there (can't tell about the other consoles it emulates).  It solves all the problems fceu had, which is in portage.  Very stable too.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2006-03-10 01:53:21 UTC
Comment 9 trefoil 2006-03-24 15:14:43 UTC
Created attachment 83050 [details]
mednafen-0.5.2.ebuild (version 4)

Fixed SRC_URI, changed description, fixed S variable, removed unused configure switches, removed RDEPEND on eselect-opengl. Added ideas for improvement that are above my skill level. 

Unsure what use_with opengl actually does in this case.
src_compile() {
	egamesconf \
	--disable-dependency-tracking \
	$(use_with opengl) || die "egamesconf failed"
	emake || die "emake failed"

Anyway, tested and works fine (x86) in my overlay. Criticism welcome.
Comment 10 trefoil 2006-03-25 18:13:57 UTC
Created attachment 83130 [details]
mednafen-0.5.2.ebuild (version 5)

Some of my ideas of "fixes" were my mistake - sorry Sal. I fixed a few more cases of missing quotes. Games herd - is it preferable to use dogamesbin here?
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-27 08:28:47 UTC
Use dogamesbin where?  I see no place that would require it.
Comment 12 trefoil 2006-04-21 19:52:01 UTC
Created attachment 85160 [details]
mednafen-0.5.2.ebuild (version 6)

Here's what should be the best and final version after lots of testing.
-removed incorrect depend on libsamplerate
-removed incorrect use_enable opengl
-tested with --disable-nls (which doesn't work :P)
-gave it lots of testing .. works great here on x86

Only thing left to do would be to integrate the Mednafen server (for netplay) into ebuild, meh.
Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2006-04-21 20:28:31 UTC
The dep on opengl is either optional or not.  if it's optional, it should be reflected in the configure options, if not, it shouldn't be behind a use flag.
Comment 14 trefoil 2006-04-21 20:39:56 UTC
I was wondering how to handle this.. the two video output modes are OpenGL and SDL framebuffer. This is selected at runtime:
(-vdriver 0 for GL, -vdriver 1 for SDL .. defaults to GL)

As far as I can tell there is no configure switch to explicitly disable or enable GL support. Though that's only based on ./configure --help.
Comment 15 trefoil 2006-04-22 12:21:15 UTC
Created attachment 85206 [details]
mednafen-0.5.2 (v7)

Turns out it does depend on OpenGL, so, fixed that. Plus added server support while I was in there. Though I probably made several ebuild faux pas :P
Comment 16 trefoil 2006-05-18 13:41:33 UTC
Created attachment 87006 [details]

This is an ebuild for Mednafen v0.6.0. Removes dep on libvorbis, as this is now handled internally, and adds a use flag for the new debugger.
Comment 17 trefoil 2006-05-18 13:55:33 UTC
Works fine for Mednafen 0.6.1 with renaming :b
Comment 18 Mr. Bones. (RETIRED) gentoo-dev 2006-05-18 19:51:29 UTC
games-emulation/mednafen in portage.  thanks for the bug report and ebuild.