v0.144 is the most recent version in the portage tree. Perhaps we could bump to a more recent version. I will try to support the bump request but I have to wait for some spare time. Reproducible: Always
Created attachment 317938 [details] games-emulation/sdlmame-0.146_p2 (test) Still incomplete but working ebuild. Patches have to be adjusted to fit for this version.
Created attachment 317954 [details] games-emulation/sdlmame-0.146_p2
Created attachment 317956 [details, diff] sdlmame-0.146_p2-makefile.patch
Created attachment 317958 [details] sdlmame-0.146_p2-no-opengl.patch
Created attachment 317960 [details] mame0146_p2-wiimote.patch
15 Jul 2012: MAME 0.146u3 was released
I will commit the ebuild for future version to my overlay until they are integrated in the official tree. The Ebuild and patches for 0.146u3 could be found here: https://github.com/maggu2810/maggu2810-overlay/tree/master/games-emulation/sdlmame
build output is not verbose CFLAGS, AR, CC, LD are still ignored use toolchain-funcs with tc-export CC or tc-getCC in conjunction with "CC ?= gcc" and "CFLAGS ?= -O3" for example which will only set those vars if they are not in the env and not passed to make. For crucial compiler flags we can do/leave CFLAGS += ... rewriting makefile and adding/changing options, so you can pass them to emake would be much cleaner instead of doing these sed-functions (and you can send it upstream). Some options should already work like "BUILD_ZLIB" (but "BIGENDIAN" is used in conjunction with "ifndef" which would need to be changed to ifeq...). You could then use something like: buildit() { use $1 && echo 1 || echo 0 ; } emake BUILD_ZLIB=$(buildit zlib) virtual/pkgconfig missing from DEPEND why not use EAPI=4? I would preset opengl in ${MY_CONF_PN}.ini if the useflag is activated.
I am using the "official" ebuild (that one in the portage tree) as a template. So I changed only what is necessary because that one is already in tree and so accepted. I could also try to write the ebuild from scratch, but I thought it should be okay if the previous one was accepted.
+*sdlmame-0.148_p1 (12 Feb 2013) + + 12 Feb 2013; Julian Ospald <hasufell@gentoo.org> +sdlmame-0.148_p1.ebuild, + +files/sdlmame-0.148_p1-makefile.patch, + +files/sdlmame-0.148_p1-no-opengl.patch: + version bump wrt #425750