summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Pierezan Camargo (camargo) <tcamargo@gmail.com>2007-10-21 19:45:06 +0000
committerTiago Pierezan Camargo (camargo) <tcamargo@gmail.com>2007-10-21 19:45:06 +0000
commitb33c7da606e8f29b002d8e16ed53f85e8415c540 (patch)
tree8ce3ad088b170a3e2f245b2dbaa2ffe24ec57769 /games-emulation
parentwolfmame patches for sdlmame-0.120a (diff)
downloadsunrise-b33c7da606e8f29b002d8e16ed53f85e8415c540.tar.gz
sunrise-b33c7da606e8f29b002d8e16ed53f85e8415c540.tar.bz2
sunrise-b33c7da606e8f29b002d8e16ed53f85e8415c540.zip
games-emulation/sdlmame: Version bump, Applying Wolfmame patches.
svn path=/sunrise/; revision=4833
Diffstat (limited to 'games-emulation')
-rw-r--r--games-emulation/sdlmame/ChangeLog4
-rw-r--r--games-emulation/sdlmame/Manifest7
-rw-r--r--games-emulation/sdlmame/sdlmame-0.120a.ebuild127
3 files changed, 137 insertions, 1 deletions
diff --git a/games-emulation/sdlmame/ChangeLog b/games-emulation/sdlmame/ChangeLog
index 40d055a3a..bbf913208 100644
--- a/games-emulation/sdlmame/ChangeLog
+++ b/games-emulation/sdlmame/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 21 Oct 2007; Tiago Pierezan Camargo (camargo) <tcamargo@gmail.com>
+ +sdlmame-0.120a.ebuild:
+ Version bump, Applying Wolfmame patches.
+
13 Oct 2007; Dawid Węgliński <cla@gentoo.org> sdlmame-0.119_p4.ebuild:
Quotes
diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest
index 74506012d..3307b8fc8 100644
--- a/games-emulation/sdlmame/Manifest
+++ b/games-emulation/sdlmame/Manifest
@@ -1,4 +1,9 @@
+AUX 0.120a/dipports113.patch 1059 RMD160 1256a74977f5a07ce3e3a7fe07931bbc32c72ff5 SHA1 7e5fa5a71fa27298a12942c7beb3f8003fa3285e SHA256 140aa2107a048d5ff54c0a3e1a1572930ec4f78fa1b17aff52862d4190e419b8
+AUX 0.120a/inpview12-120.patch 13689 RMD160 6cfa9a0cf47d91408a71a450e37a0247c1ebe44c SHA1 85afdb48e2a5347dc30597ef379e41c00754c444 SHA256 5423f6870922549093a5df1293c938157ea0f278032f09ae898e202c9cde072c
+AUX 0.120a/wolf120.patch 7577 RMD160 56abcf9e1070a945c5ba46020866d37eb86c2837 SHA1 fc65f762f1fbb28c826781e200b3c40507a806b5 SHA256 76b1ea8932037b7f4def5208c75e459d7c1f3828b0e5622838e187e3fa8ba07f
DIST sdlmame0119u4.zip 15894278 RMD160 b425374573d0f72d4fa4fe4b25f420cad39dbc54 SHA1 c9a17e9b61fea93e7156868975980da177567928 SHA256 55f8279f4c56aa8771267ccd89e4bd7c21e802b3085dff421b089c2771474b4a
+DIST sdlmame0120a.zip 15890590 RMD160 a995a0b5ed245148b7fb105944a8957e7a25b7b4 SHA1 9f0fb24f196e068ac8be2c3e81181f7707dac700 SHA256 024f053996f94755e3bcc99e0fdef54d10d846419ec42750ab2770d9f8c837b6
EBUILD sdlmame-0.119_p4.ebuild 2685 RMD160 f131ecec489b66e3637c3e1f3980a85175cb8695 SHA1 4a6112abe5add5b12a02403e7576082a468eb59d SHA256 fd8e751bd73c52225428751d1bc16f358d7be497c9f9e59e2409ce230fd65b65
-MISC ChangeLog 350 RMD160 4c0342748c2e90da8be3ad0805ba06965f23e9bd SHA1 b0769b1539bb0f67513c7e3d4188f04c746f7729 SHA256 70a70768aaf4fd74584b3cc8250013e92888d8b8cc9115b9087416509be3db23
+EBUILD sdlmame-0.120a.ebuild 2792 RMD160 5354711b159a4cbf4708e6ad6265b1cb469eb849 SHA1 e2d0cde85a524153c852729b163b2c8125e4cb0d SHA256 d41ff7c8bc103382722094958f54f645825526214ed840e07f64f01cb0b358cb
+MISC ChangeLog 489 RMD160 00238b45a42e6cf1b6a45a4c3096335d5fa17bcb SHA1 5736930c5f73acbd40d886ed83d26b7ac6514006 SHA256 837cb6333686dd9cf813f89455674ae10993cf7752f59fead48f1a2f7b6e5422
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/games-emulation/sdlmame/sdlmame-0.120a.ebuild b/games-emulation/sdlmame/sdlmame-0.120a.ebuild
new file mode 100644
index 000000000..c3ecc2c8e
--- /dev/null
+++ b/games-emulation/sdlmame/sdlmame-0.120a.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils games flag-o-matic
+
+MY_PV=${PV/./}
+# Minor releases
+MY_PV=${MY_PV/_p/u}
+MY_P=${PN}${MY_PV}
+MY_V=${PV%%_p*}
+
+DESCRIPTION="Multiple Arcade Machine Emulator (SDL)"
+HOMEPAGE="http://rbelmont.mameworld.info/?page_id=163"
+# Hope it goes to gentoo mirrors...
+#SRC_URI="mirror://gentoo/${MY_P}.zip"
+SRC_URI="http://rbelmont.mameworld.info/${MY_P}.zip"
+
+# Same as xmame. Should it be renamed to MAME?
+LICENSE="XMAME"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE="minimal debug"
+
+DEPEND=">=media-libs/libsdl-1.2.10
+ sys-libs/zlib
+ dev-libs/expat
+ debug? (
+ >gnome-base/gconf-2
+ >=x11-libs/gtk+-2 )"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+RESTRICT="fetch strip"
+
+pkg_nofetch() {
+ einfo "Please download sdlmame from"
+ einfo "${SRC_URI}"
+ einfo "and put the file in ${DISTDIR}"
+ einfo
+}
+
+# Function to disable a makefile option
+disable_feature() {
+ sed -i \
+ -e "/$1.*=/s:^:# :" \
+ "${S}"/makefile || die "disable $1 pacth failed"
+}
+
+# Function to enable a makefile option
+enable_feature() {
+ sed -i \
+ -e "/^#.*$1.*=/s:^# ::" \
+ "${S}"/makefile || die "enable $1 patch failed"
+}
+
+src_unpack() {
+ unpack "${A}"
+ # Don't compile zlib and expat
+ einfo "Disabling embedded libraries: zlib and expat"
+ $(disable_feature BUILD_ZLIB)
+ $(disable_feature BUILD_EXPAT)
+
+ case ${ARCH} in
+ amd64) einfo "Enabling 64-bit support"
+ $(enable_feature PTR64)
+ $(enable_feature AMD64)
+ ;;
+
+ x86) einfo "Optimizing build for $(get-flag march)"
+ case $(get-flag march) in
+ pentium3) $(enable_feature PM);;
+ pentium-m) $(enable_feature PM);;
+ pentium4) $(enable_feature P4);;
+ athlon) $(enable_feature ATHLON);;
+ k7) $(enable_feature ATHLON);;
+ i686) $(enable_feature I686);;
+ pentiumpro) $(enable_feature I686);;
+ esac
+ ;;
+
+ ppc) einfo "Enabling PPC support"
+ $(enable_feature G4)
+ ;;
+ esac
+
+ if use debug ; then
+ $(enable_feature DEBUG)
+ $(enable_feature SYMBOLS)
+ $(enable_feature PROFILE)
+ fi
+
+ einfo "Applying WolfMAME patches"
+ cd "${S}"
+ epatch "${FILESDIR}/${MY_V}"/dipports113.patch
+ epatch "${FILESDIR}/${MY_V}"/inpview12-120.patch
+ epatch "${FILESDIR}/${MY_V}"/wolf120.patch
+}
+
+src_compile() {
+ # Minimal driver support. Good for ebuild testing...
+ if use minimal ; then
+ make_opts="SUBTARGET=tiny"
+ fi
+
+ emake \
+ NAME="${PN}" \
+ 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 jedutil romcmp ; do
+ doexe "${f}" || die "doexe ${f} failed"
+ done
+
+ dodoc docs/* *.txt
+
+ prepgamesdirs
+}