ChangeLog

# ChangeLog for games-emulation/sdlmame
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/ChangeLog,v 1.5 2008/05/16 21:34:23 joker Exp $

*sdlmame-0.125 (16 May 2008)

16 May 2008; Christian Birchinger
+sdlmame-0.125.ebuild:
Version bump

24 Apr 2008; Samuli Suominen sdlmame-0.124.ebuild,
sdlmame-0.124_p3.ebuild:
Sed -Werror out of makefile because we get more warnings with GCC 4.3.

*sdlmame-0.124_p3 (24 Apr 2008)
*sdlmame-0.124 (24 Apr 2008)

24 Apr 2008; Christian Birchinger +files/joymap.dat,
+files/mame.ini.in, +files/vector.ini, +metadata.xml,
+sdlmame-0.124.ebuild, +sdlmame-0.124_p3.ebuild:
Initial release

Manifest

AUX joymap.dat 223 RMD160 d86c536a5d33bec9ecd6efbee2f7389835495328 SHA1 011d631b844316ea5b113ac01407665ea674d1f9 SHA256 bf6e7473b2b1ed573aacf697446e4bdb61e0f63b6e3d55c5b8fac93fb49059f9
AUX mame.ini.in 5962 RMD160 6eb4c315b29d5e6da24a40ad94a646bb56b27998 SHA1 fadb0546bdac23e7162833fad60533c0a4fcf772 SHA256 6205c738b7e57ead9c05885bdaeb3ebfb143bec9dc1de7a97016b791bea532d8
AUX vector.ini 116 RMD160 e63ed40b21a2426b28571d514933efab6ccce7e8 SHA1 c6615ce44d08b89a65435dfe7e0af9ac6d8459df SHA256 408aeaaffcb2ecccd20db457f22d2d5efa930c0f62a92987b0fbefaf6c038c23
DIST sdlmame-manpages.tar.gz 14400 RMD160 14660470488458a8897a8a924c12f7ab961d6729 SHA1 279fbf37668282c0e4e86d62a29f5ec53fa0ab1a SHA256 507240258dfb816fbfddc674c5995a126c7a975158c2aad1ada8cb064c5e3d08
DIST sdlmame0125.zip 16403503 RMD160 c0fc73f995ce5a11a260d2a89857132ccd279a0b SHA1 ce336396ddf87e327ef28230495d3a39159fcf3f SHA256 688d4a5d327636b21dd9a93de1083b08a6ed3fc201a0bc6e331aed30f55a5ed6
EBUILD sdlmame-0.125.ebuild 3768 RMD160 bb07498a2ecb181484ecb351d5e34456267639a7 SHA1 6572be63253e690a6948a109020cdeb497c2811c SHA256 98b5163b5887b5a05661f57bf8bc052a71148c27a9a5a5bb94c58276b642b5d1
MISC ChangeLog 778 RMD160 39acac2138a3252d15de35dd8f43758d60f9cbc3 SHA1 98926a66e10d815984def0b28391dab966509e61 SHA256 4a3ead93e09c5a4b86a4fbe7288e2848c299ebb0ee6801ae674c9c52252f287e
MISC metadata.xml 1259 RMD160 2d811f69affdc305f497d50546e6ba71aaea1d6f SHA1 0f6dfc168b13e49315006e80ae031a933535fb26 SHA256 0f528e867cb2e2350ee31faa9c532f8c4c579a9fe8d79d47c07e787a839f1251

files

metadata.xml




games

joker@gentoo.org
Christian Birchinger
Please assign bugs to games@gentoo.org and CC me.


SDLMAME is a port of the popular MAME[tm]. There are a few principles that guide it's development:

1) run on Linux/Unix, Mac OS X, and other SDL supported operating systems with as few changes as
possible to the base Win32 code. This means we can track changes faster than larger more conventional
ports such as MacMAME, and we also maintain what I call "Firefox compatibilty" where learning a major
app only needs to be done once per application, and it then applies across many operating systems. If
you can use the command-line Win32 MAME, you already know how to use SDLMAME on any platform you may
encounter it on.

2) MAME developers are important. By keeping quickly up to date, we make it easy for people on
non-Windows platforms to make and submit changes to the core MAME code, and we offer native
implementations of MAME's multi-window GUI debugger on both Linux/Unix and Mac OS X.

sdlmame-0.125.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/sdlmame/sdlmame-0.125.ebuild,v 1.1 2008/05/16 21:34:23 joker Exp $

inherit eutils flag-o-matic games

DESCRIPTION="Multiple Arcade Machine Emulator (SDL)"
HOMEPAGE="http://rbelmont.mameworld.info/?page_id=163"

MY_PV=${PV/.}
MY_PV=${MY_PV/_p/u}
MY_P=${PN}${MY_PV}

# Upstream doesn't allow fetching with unknown User-Agent such as wget
SRC_URI="mirror://gentoo/${MY_P}.zip
mirror://gentoo/${PN}-manpages.tar.gz"

# Same as xmame. Should it be renamed to MAME?
LICENSE="XMAME"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug opengl"

RDEPEND=">=media-libs/libsdl-1.2.10
sys-libs/zlib
dev-libs/expat
x11-libs/libXinerama
debug? (
>gnome-base/gconf-2
>=x11-libs/gtk+-2 )"

DEPEND="${RDEPEND}
app-arch/unzip
x11-proto/xineramaproto"

S=${WORKDIR}/${MY_P}

# 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}"/makefile \
|| die "sed failed"
}

pkg_setup() {
if use opengl && ! built_with_use media-libs/libsdl opengl ; then
die "Please emerge media-libs/libsdl with USE=opengl"
fi
games_pkg_setup
}

src_unpack() {
unpack ${A}
sed -i \
-e '/CFLAGS += -O$(OPTIMIZE)/s:^:# :' \
-e '/CFLAGS += -pipe/s:^:# :' \
-e '/LDFLAGS += -s/s:^:# :' \
-e 's:-Werror::' \
"${S}"/makefile \
|| die "sed failed"

# CFLAGS and build debugging help
#sed -i \
# -e "/^\(AR\|CC\|LD\|RM\) =/s:@::" \
# -i "${S}"/makefile
}

src_compile() {
local make_opts

# Don't compile zlib and expat
einfo "Disabling embedded libraries: zlib and expat"
disable_feature BUILD_ZLIB
disable_feature BUILD_EXPAT

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
ewarn "Building with DEBUG support is not recommended for normal use"
enable_feature DEBUG
enable_feature PROFILE
enable_feature SYMBOLS
enable_feature DEBUGGER
fi

use opengl || make_opts="${make_opts} NO_OPENGL=1"

emake \
NAME="${PN}" \
OPT_FLAGS='-DINI_PATH=\"\$$HOME/.sdlmame\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CFLAGS}" \
SUFFIX="" \
${make_opts} \
|| die "emake failed"
}

src_install() {
dogamesbin "${PN}" || die "dogamesbin "${PN}" failed"

# Follows xmame ebuild, avoiding collision on /usr/games/bin/jedutil
exeinto "$(games_get_libdir)/${PN}"
local f
for f in chdman makemeta jedutil romcmp testkeys; do
doexe "${f}" || die "doexe ${f} failed"
done

insinto "${GAMES_DATADIR}/${PN}"
doins ui.bdf || die "doins ui.bdf failed"
doins -r keymaps || die "doins -r keymaps failed"

insinto "${GAMES_SYSCONFDIR}/${PN}"
doins "${FILESDIR}"/{joymap.dat,vector.ini} || die "doins joymap.dat vector.ini failed"

sed \
-e "s:@GAMES_SYSCONFDIR@:${GAMES_SYSCONFDIR}:" \
-e "s:@GAMES_DATADIR@:${GAMES_DATADIR}:" \
"${FILESDIR}"/mame.ini.in > "${D}/${GAMES_SYSCONFDIR}/${PN}/"mame.ini \
|| die "sed failed"

dodoc docs/{config,mame,newvideo}.txt *.txt
doman "${WORKDIR}/${PN}-manpages"/*

keepdir "${GAMES_DATADIR}/${PN}"/{roms,samples,artwork}
keepdir "${GAMES_SYSCONFDIR}/${PN}"/ctrlr

prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst

elog "It's strongly recommended that you change either the system-wide"
elog "mame.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 mame.ini to take advantage of that"
fi
}