From c33051deafc3502b37936301a76d00f5a6e54cbf Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Jun 2015 17:18:23 +0200 Subject: [PATCH] Added latest gngeo and missed sdlmame ebuild --- games-emulation/gngeo/ChangeLog | 112 ++++++++++ games-emulation/gngeo/Manifest | 6 + .../files/gngeo-9999-concurrentMake.patch | 16 ++ .../gngeo/files/gngeo-9999-execstacks.patch | 105 +++++++++ .../gngeo/files/gngeo-9999-zlib.patch | 9 + games-emulation/gngeo/gngeo-9999.ebuild | 52 +++++ games-emulation/gngeo/metadata.xml | 5 + .../sdlmame/sdlmame-0.148_p1-r88.ebuild | 201 ++++++++++++++++++ 8 files changed, 506 insertions(+) create mode 100644 games-emulation/gngeo/ChangeLog create mode 100644 games-emulation/gngeo/Manifest create mode 100644 games-emulation/gngeo/files/gngeo-9999-concurrentMake.patch create mode 100644 games-emulation/gngeo/files/gngeo-9999-execstacks.patch create mode 100644 games-emulation/gngeo/files/gngeo-9999-zlib.patch create mode 100644 games-emulation/gngeo/gngeo-9999.ebuild create mode 100644 games-emulation/gngeo/metadata.xml create mode 100644 games-emulation/sdlmame/sdlmame-0.148_p1-r88.ebuild diff --git a/games-emulation/gngeo/ChangeLog b/games-emulation/gngeo/ChangeLog new file mode 100644 index 0000000..ff1659c --- /dev/null +++ b/games-emulation/gngeo/ChangeLog @@ -0,0 +1,112 @@ +# ChangeLog for games-emulation/gngeo +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/gngeo/ChangeLog,v 1.27 2015/03/20 18:44:59 mr_bones_ Exp $ + + 20 Mar 2015; Michael Sterrett + -files/gngeo-0.7-build.patch, -files/gngeo-0.7-concurrentMake.patch, + -files/gngeo-0.7-execstacks.patch, -files/gngeo-0.7-zlib.patch, + -gngeo-0.7.ebuild: + old + + 25 Feb 2015; Agostino Sarubbo gngeo-0.8.ebuild: + Stable for x86, wrt bug #540612 + + 19 Feb 2015; Agostino Sarubbo gngeo-0.8.ebuild: + Stable for amd64, wrt bug #540612 + +*gngeo-0.8 (24 Jan 2015) + + 24 Jan 2015; Michael Sterrett + +files/gngeo-0.8-concurrentMake.patch, +files/gngeo-0.8-execstacks.patch, + +files/gngeo-0.8-zlib.patch, +gngeo-0.8.ebuild: + version bump + + 17 Jan 2015; Tupone Alfredo gngeo-0.7.ebuild: + EAPI 5 + + 04 Sep 2012; Alfredo Tupone gngeo-0.7.ebuild, + +files/gngeo-0.7-zlib.patch: + Build with latest zlib. Bug #431118 by Diego Elio Pettenò + + 17 Jan 2009; Michael Sterrett gngeo-0.7.ebuild: + Doesn't work with latest nasm so disable that for now (bug #249834) + + 14 Jun 2008; Santiago M. Mola gngeo-0.7.ebuild: + Ensure we do not use i386 asm on amd64, fixes #222149. + + 02 Jul 2007; Tristan Heaven + files/gngeo-0.7-execstacks.patch: + update exec stack patch + + 07 Feb 2007; Tristan Heaven gngeo-0.7.ebuild: + Use mirror://berlios + + 05 Jan 2007; Tristan Heaven + +files/gngeo-0.7-build.patch, gngeo-0.7.ebuild: + Set WANT_AUTOCONF and WANT_AUTOMAKE + + 26 Oct 2006; +files/gngeo-0.7-concurrentMake.patch, + gngeo-0.7.ebuild: + Added ~amd64 keyword. Bug #149785 by Shiro Ikkakujyu + Fixed parallelized make + +*gngeo-0.7 (02 Sep 2006) + + 02 Sep 2006; Michael Sterrett + -files/gngeo-0.6.11-execstacks.patch, +files/gngeo-0.7-execstacks.patch, + -gngeo-0.6.11.ebuild, +gngeo-0.7.ebuild: + version bump; clean out older ebuild + +*gngeo-0.6.12 (20 Jun 2006) + + 20 Jun 2006; Michael Sterrett + +files/gngeo-0.6.12-execstacks.patch, +gngeo-0.6.12.ebuild: + version bump + + 21 May 2006; Michael Sterrett gngeo-0.6.11.ebuild: + force newer gcc for bug #128587 + +*gngeo-0.6.11 (07 Apr 2006) + + 07 Apr 2006; Michael Sterrett + +files/gngeo-0.6.11-execstacks.patch, +gngeo-0.6.11.ebuild: + version bump + + 06 Mar 2006; Michael Sterrett + +files/gngeo-0.6.10-execstacks.patch, gngeo-0.6.10.ebuild: + patch from Spanky to deal with executable stacks + +*gngeo-0.6.10 (06 Mar 2006) + + 06 Mar 2006; Michael Sterrett +gngeo-0.6.10.ebuild: + version bump + +*gngeo-0.6.7 (20 Jan 2006) + + 20 Jan 2006; Michael Sterrett +gngeo-0.6.7.ebuild: + version bump + + 08 Jul 2005; Michael Sterrett -gngeo-0.5.9a.ebuild, + -gngeo-0.6.1.ebuild, gngeo-0.6.3.ebuild: + clean old ebuilds; tidy + +*gngeo-0.6.3 (31 Jul 2004) + + 31 Jul 2004; Michael Sterrett +gngeo-0.6.3.ebuild: + version bump (bug #58782) + + 01 Jul 2004; Jeremy Huddleston gngeo-0.6.1.ebuild: + virtual/glibc -> virtual/libc + + 30 Mar 2004; Michael Sterrett gngeo-0.5.9a.ebuild: + don't rdepend on nasm + +*gngeo-0.6.1 (30 Mar 2004) + + 30 Mar 2004; Michael Sterrett gngeo-0.6.1.ebuild: + version bump + +*gngeo-0.5.9a (29 Jul 2003) + + 29 Jul 2003; Michael Sterrett gngeo-0.5.9a.ebuild: + Initial ebuild supplied by Paolo and tidied (bug 24702) diff --git a/games-emulation/gngeo/Manifest b/games-emulation/gngeo/Manifest new file mode 100644 index 0000000..0ba5577 --- /dev/null +++ b/games-emulation/gngeo/Manifest @@ -0,0 +1,6 @@ +AUX gngeo-9999-concurrentMake.patch 631 SHA256 8757156a59b4f4583d1063ee6891b49d4d87c35336fcba56d32985e324300713 SHA512 050de6034a799e7dad41ebb2a65fb9a7ad3dd39da96151dac376a2c58862c1eeed19bb8f9b3479ffc2b2248131370d3065a73a37ce0390e5839607a6f8df6c1c WHIRLPOOL 592d82c9b8c54b465cf83307075ce68e452452fb1154deb6367fceb78243d143e153ee76cf9282de26e1887592175b223a9225d470bb36042406f2b30e299775 +AUX gngeo-9999-execstacks.patch 2465 SHA256 5ddb3327424b6ec92f274e5e0fe38dc90efa1906afd350ab056ba33982dcbf11 SHA512 0717568d9c967a4f314856ba490eb15efb2fe336cb7cf8eae8e918ba3e550d5704f5bca0a4a7163fae7c02257447eb783da80650f7496dd9cf81358287bd92ad WHIRLPOOL cf89268815bdce0efa43d765de3c2ffc5e6520666ddda90d9dcac2467cf0b3cf0c62cdc1ecc3143d21ad7707f30bf73b6813fdb3fe55deac1fb191a35997d0a4 +AUX gngeo-9999-zlib.patch 335 SHA256 3d6f6a34ca17c8c30988257b0727d2f215913b20128f1dde80e1c4deafa7eb81 SHA512 6f09ebb89173bc172dc035247727d5e046fb36b3b05789d4b8e98648a229a260f3749fa3e2e35065a418e339d8d80830411ca3614171ef7aadeba0147a4f6a70 WHIRLPOOL f15eec2c4b5a912a091c1763e6e6bc7b5c33bb2758c14c69e281c1356856cd5c7c5db02a11395dbf3eb1edca866c5fad886188c4b429e9203e98a99a701256f9 +EBUILD gngeo-9999.ebuild 1107 SHA256 d1dd644eb3dc885cd1e200d8942fd33931ba40d6306b6a935a5513413bad646e SHA512 ef9a15f852e80ad71bf3d4114ecd282a48d54012984575180e09d275969cc36ac37224487c37edf32fb494f253638d1ba1971e5e69d45bfa337e3a3101519010 WHIRLPOOL b08817d35e3527d3c28a2bf3f14f995284c8b5c1e9eb53b4e0e128b37408ead7d571f2650f032c91c5daa6d7ac34607eec6b7090894ad32fa7fa5e18ac32e229 +MISC ChangeLog 3751 SHA256 fa691d4004ea71fc5ad6a5fd7e87282a3719534353f3d69fa45bda607fe8aa6c SHA512 4e61e8a1651f07bc5b7be711038040fc8949e442696458314ff0d2a6ae19c983a2170d925779afb4a394cd20dcff3b093128388b9e4cc22cbda20a2c209dfe26 WHIRLPOOL 44d6366c8bfb925e7e58812ecd69d43ed36eca51aeb96f438235d6b5773ef53805e02e01ce55d42e9f76fbb28ec86179fd7fa6487a351b2e451d642ca6b42f1f +MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada diff --git a/games-emulation/gngeo/files/gngeo-9999-concurrentMake.patch b/games-emulation/gngeo/files/gngeo-9999-concurrentMake.patch new file mode 100644 index 0000000..1afc182 --- /dev/null +++ b/games-emulation/gngeo/files/gngeo-9999-concurrentMake.patch @@ -0,0 +1,16 @@ +--- src/generator68k/Makefile.am.orig 2015-01-23 18:37:37.998723294 -0500 ++++ src/generator68k/Makefile.am 2015-01-23 18:38:39.995391133 -0500 +@@ -71,9 +71,12 @@ + + #def68k : def68k.c + # gcc def68k.c tab68k.c -o def68k -I .. -I ../.. -I . `sdl-config --cflags` +-def68k.o gen68k.o tab68k2.o : %.o : %.c ++def68k.o tab68k2.o : %.o : %.c + $(gcc_build_verbose)$(CC_FOR_BUILD) -c $< -o $@ -I .. -I ../.. -I . `sdl-config --cflags` + ++gen68k.o: gen68k.c def68k-iibs.h ++ $(CC_FOR_BUILD) -c $< -o $@ -I .. -I ../.. -I . `sdl-config --cflags` ++ + def68k : def68k.o tab68k2.o + $(gcc_build_verbose)$(CC_FOR_BUILD) def68k.o tab68k2.o -o $@ + diff --git a/games-emulation/gngeo/files/gngeo-9999-execstacks.patch b/games-emulation/gngeo/files/gngeo-9999-execstacks.patch new file mode 100644 index 0000000..17c576b --- /dev/null +++ b/games-emulation/gngeo/files/gngeo-9999-execstacks.patch @@ -0,0 +1,105 @@ +--- src/effect/2xsaimmx.asm ++++ src/effect/2xsaimmx.asm +@@ -2107,3 +2107,7 @@ + final1b resb 8 + final2a resb 8 + final2b resb 8 ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +--- src/effect/effect_i386.asm ++++ src/effect/effect_i386.asm +@@ -88,3 +88,7 @@ + emms + + endproc ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +--- src/effect/hq2x16.asm ++++ src/effect/hq2x16.asm +@@ -1935,3 +1935,7 @@ + dd ..@cross8, ..@flag0, ..@flag0, ..@flag0, + dd ..@flag0, ..@flag0, ..@flag0, ..@flag0 + ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +--- src/effect/hq3x16.asm ++++ src/effect/hq3x16.asm +@@ -2520,3 +2520,7 @@ + dd ..@cross8, ..@flag0, ..@flag0, ..@flag0, + dd ..@flag0, ..@flag0, ..@flag0, ..@flag0 + ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +--- src/memcpy.S ++++ src/memcpy.S +@@ -495,4 +495,8 @@ + + Lmemcpy_bsrcul1l4: + add r1, r1, #1 +-b Lmemcpy_bl4 +\ No newline at end of file ++b Lmemcpy_bl4 ++ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",@progbits ++#endif +--- src/raze/Makefile.am ++++ src/raze/Makefile.am +@@ -20,7 +20,7 @@ + $(srcdir)/strip_ $< $@ + + raze2.asm: raze.asmu raze.incu raze.regu +- nasm -w+orphan-labels -I $(srcdir)/ -e $< -o $@ ++ nasm -w+orphan-labels -f elf -I $(srcdir)/ -e $< -o $@ + + # This assembles the file, once it's been pre-processed + raze.o: raze2.asm +--- src/raze/raze.asm ++++ src/raze/raze.asm +@@ -4259,3 +4259,6 @@ + + ;- the end ------------------------------------------------------------------; + ++%ifidn ___OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +--- src/screen_i386.asm ++++ src/screen_i386.asm +@@ -96,3 +96,6 @@ + endproc + + ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif +--- src/star/star.c ++++ src/star/star.c +@@ -2431,6 +2431,10 @@ + */ + static void suffixes(void) { + emit("end\n"); ++ ++ emit("%%ifidn ___OUTPUT_FORMAT__,elf\n"); ++ emit("section .note.GNU-stack noalloc noexec nowrite progbits\n"); ++ emit("%%endif\n"); + } + + /**************************************************************************** +--- src/video_i386.asm ++++ src/video_i386.asm +@@ -86,3 +86,7 @@ + + popa + endproc ++ ++%ifidn __OUTPUT_FORMAT__,elf ++section .note.GNU-stack noalloc noexec nowrite progbits ++%endif diff --git a/games-emulation/gngeo/files/gngeo-9999-zlib.patch b/games-emulation/gngeo/files/gngeo-9999-zlib.patch new file mode 100644 index 0000000..9aa4a6b --- /dev/null +++ b/games-emulation/gngeo/files/gngeo-9999-zlib.patch @@ -0,0 +1,9 @@ +diff -ru gngeo-0.8.orig/configure.in gngeo-0.8/configure.in +--- gngeo-0.8.orig/configure.in 2012-11-15 17:57:57.849578009 -0500 ++++ gngeo-0.8/configure.in 2012-11-15 18:19:55.305923094 -0500 +@@ -95,6 +95,7 @@ + #AC_SUBST(LIBOBJS) + AC_CHECK_LIB([m], [acos]) + AC_CHECK_LIB([z], [inflate]) ++AC_CHECK_LIB([minizip], [unzReadCurrentFile]) + diff --git a/games-emulation/gngeo/gngeo-9999.ebuild b/games-emulation/gngeo/gngeo-9999.ebuild new file mode 100644 index 0000000..f386b63 --- /dev/null +++ b/games-emulation/gngeo/gngeo-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/gngeo/gngeo-0.8.ebuild,v 1.3 2015/02/25 15:57:48 ago Exp $ + +EAPI=5 +inherit eutils autotools games + + +DESCRIPTION="A NeoGeo emulator" +HOMEPAGE="http://code.google.com/p/gngeo/" + +LICENSE="GPL-2" +SLOT="0" +if [[ ${PV} = 9999 ]]; then + EGIT_REPO_URI="https://github.com/Sohil876/gngeo.git" + inherit git-2 + KEYWORDS="" +fi +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/libsdl[joystick,opengl,sound,video] + sys-libs/zlib[minizip]" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-execstacks.patch \ + "${FILESDIR}"/${P}-zlib.patch \ + "${FILESDIR}"/${P}-concurrentMake.patch + mv configure.in configure.ac || die + eautoreconf + chmod +x configure +} + +src_configure() { + egamesconf --disable-i386asm +} + +src_install() { + DOCS=( AUTHORS FAQ NEWS README* TODO sample_gngeorc ) + default + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "A licensed NeoGeo BIOS copy is required to run the emulator." + echo +} diff --git a/games-emulation/gngeo/metadata.xml b/games-emulation/gngeo/metadata.xml new file mode 100644 index 0000000..d3c2cc9 --- /dev/null +++ b/games-emulation/gngeo/metadata.xml @@ -0,0 +1,5 @@ + + + +games + diff --git a/games-emulation/sdlmame/sdlmame-0.148_p1-r88.ebuild b/games-emulation/sdlmame/sdlmame-0.148_p1-r88.ebuild new file mode 100644 index 0000000..a09db7f --- /dev/null +++ b/games-emulation/sdlmame/sdlmame-0.148_p1-r88.ebuild @@ -0,0 +1,201 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/sdlmame-0.148_p1-r1.ebuild,v 1.6 2015/04/08 18:10:41 mgorny Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils flag-o-matic python-any-r1 games + +MY_PV=${PV/.} +MY_CONF_PN=${PN/sdl} +MY_P=sdlmame${MY_PV} +MY_P=${MY_P%%_p*} +MY_CONF_VER="0.139" + +# patches +SRC_URI="$(for PATCH_VER in $(seq 1 ${PV##*_p}) ; do echo "http://dev.gentoo.org/~hasufell/distfiles/${MY_P}u${PATCH_VER}_diff.zip"; done)" + +DESCRIPTION="Multiple Arcade Machine Emulator (SDL)" +HOMEPAGE="http://mamedev.org/" +# Upstream doesn't allow fetching with unknown User-Agent such as wget +SRC_URI="$SRC_URI http://dev.gentoo.org/~hasufell/distfiles/${MY_P/sdl}s.zip" +if [[ ${PN} == "sdlmame" ]] ; then + SRC_URI="$SRC_URI http://www.netswarm.net/misc/sdlmame-ui.bdf.gz" +fi + +LICENSE="XMAME" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="X alsa debug opengl" +REQUIRED_USE="debug? ( X )" + +RDEPEND="dev-libs/expat + media-libs/fontconfig + media-libs/flac + >=media-libs/libsdl-1.2.10[X,sound,joystick,opengl?,video] + media-libs/sdl-ttf + sys-libs/zlib + virtual/jpeg + alsa? ( media-libs/alsa-lib ) + X? ( + gnome-base/gconf + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXinerama + )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + app-arch/unzip + media-libs/alsa-lib + virtual/pkgconfig + X? ( x11-proto/xineramaproto )" + +S=${WORKDIR} + +# Function to disable a makefile option +disable_feature() { + sed -i \ + -e "/$1.*=/s:^:# :" \ + "${S}"/makefile \ + || die "sed failed" +} + +# Function to enable a makefile option +enable_feature() { + sed -i \ + -e "/^#.*$1.*=/s:^#::" \ + "${S}"/${2:-makefile} \ + || die "sed failed" +} + +pkg_setup() { + games_pkg_setup + python-any-r1_pkg_setup +} + +src_unpack() { + default + unpack ./mame.zip + rm -f mame.zip +} + +src_prepare() { + if [[ $PV == *_p* ]] ; then + edos2unix $(find $(grep +++ *diff | awk '{ print $2 }' | sort -u) 2>/dev/null) *diff + einfo "Patching release with source updates" + epatch ${MY_PV%%_p*}*.diff + fi + edos2unix src/osd/sdl/osdsdl.h + + epatch \ + "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-no-opengl.patch + + #sed -i \ + # -e "s/^CONLYFLAGS =/CONLYFLAGS = --std=c99/" \ + # "${S}"/makefile \ + # || die "sed failed" + + #sed -i \ + # -e "s/^CONLYFLAGS =/CONLYFLAGS = --std=c99 -fPIC/" \ + # "${S}"/makefile \ + # || die "sed failed" + + sed -i \ + -e "s/memcpy/memmove/" \ + "${S}"/src/emu/cpu/m68000/m68kmake.c \ + || die "sed failed" + + # Don't compile zlib and expat + einfo "Disabling embedded libraries: expat, flac, jpeg, zlib" + disable_feature BUILD_EXPAT + disable_feature BUILD_FLAC + disable_feature BUILD_JPEG + disable_feature BUILD_ZLIB + + if use amd64; then + einfo "Enabling 64-bit support" + enable_feature PTR64 + fi + + if use ppc; then + einfo "Enabling PPC support" + enable_feature BIGENDIAN + fi + + if use debug; then + einfo "Enabling debug support" + enable_feature DEBUG + fi + + if ! use opengl ; then + einfo "Disabling opengl support" + enable_feature NO_OPENGL src/osd/sdl/sdl.mak + fi + + if ! use alsa ; then + einfo "Disabling alsa midi support" + enable_feature NO_USE_MIDI src/osd/sdl/sdl.mak + fi + + if ! use X ; then + einfo "Disabling X support" + enable_feature NO_X11 src/osd/sdl/sdl.mak + fi +} + +src_compile() { + emake \ + TARGET="${PN#sdl}" \ + NAME="${PN}" \ + OPT_FLAGS='-DINI_PATH=\"\$$HOME/.'${PN}'\;'"${GAMES_SYSCONFDIR}/${PN}"'\"' \ + NO_DEBUGGER=$(usex debug "0" "1") default +} +# +src_install() { + newgamesbin ${PN}$(use amd64 && echo 64)$(use debug && echo d) ${PN} + + newman src/osd/sdl/man/${PN#sdl}.6 ${PN}.6 + + insinto "${GAMES_DATADIR}/${PN}" + doins -r src/osd/sdl/keymaps + [[ ${PN} == "sdlmame" ]] && newins sdlmame-ui.bdf ui.bdf + + insinto "${GAMES_SYSCONFDIR}/${PN}" + doins "${FILESDIR}"/vector.ini + + sed \ + -e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \ + -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \ + "${FILESDIR}/${MY_CONF_PN}-${MY_CONF_VER}".ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/${MY_CONF_PN}".ini \ + || die "sed failed" + + dodoc docs/{config,mame,newvideo}.txt + if [[ ${PN} == "sdlmame" ]] ; then + dodoc whatsnew*.txt + else + dodoc messnew*.txt + fi + + keepdir \ + "${GAMES_DATADIR}/${PN}"/{ctrlr,cheats,roms,samples,artwork,crosshair} \ + "${GAMES_SYSCONFDIR}/${PN}"/{ctrlr,cheats} + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + + elog "optional dependencies:" + elog " games-emulation/sdlmametools (development tools)" + echo + elog "It's strongly recommended that you change either the system-wide" + elog "${MY_CONF_PN}.ini at \"${GAMES_SYSCONFDIR}/${PN}\" or use a per-user setup at \$HOME/.${PN}" + + if use opengl; then + echo + elog "You built ${PN} with opengl support and should set" + elog "\"video\" to \"opengl\" in ${MY_CONF_PN}.ini to take advantage of that" + fi +}