diff options
author | Christian Birchinger <joker@gentoo.org> | 2008-05-16 21:34:23 +0000 |
---|---|---|
committer | Christian Birchinger <joker@gentoo.org> | 2008-05-16 21:34:23 +0000 |
commit | 4a1df121b381a02de52662cf3984792646a4f220 (patch) | |
tree | 1b834d6fdcabf092f674b9bd841931ebea692578 /games-emulation | |
parent | fix build with libtool 2.2 (diff) | |
download | historical-4a1df121b381a02de52662cf3984792646a4f220.tar.gz historical-4a1df121b381a02de52662cf3984792646a4f220.tar.bz2 historical-4a1df121b381a02de52662cf3984792646a4f220.zip |
Version bump
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/sdlmame/ChangeLog | 8 | ||||
-rw-r--r-- | games-emulation/sdlmame/Manifest | 14 | ||||
-rw-r--r-- | games-emulation/sdlmame/sdlmame-0.125.ebuild | 156 |
3 files changed, 166 insertions, 12 deletions
diff --git a/games-emulation/sdlmame/ChangeLog b/games-emulation/sdlmame/ChangeLog index f6172f9bfe61..6f3a2caf346d 100644 --- a/games-emulation/sdlmame/ChangeLog +++ b/games-emulation/sdlmame/ChangeLog @@ -1,6 +1,12 @@ # 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.4 2008/04/25 13:50:18 drac Exp $ +# $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 <joker@gentoo.org> + +sdlmame-0.125.ebuild: + Version bump 24 Apr 2008; Samuli Suominen <drac@gentoo.org> sdlmame-0.124.ebuild, sdlmame-0.124_p3.ebuild: diff --git a/games-emulation/sdlmame/Manifest b/games-emulation/sdlmame/Manifest index d4e1d4397afb..4d4b9c1936c8 100644 --- a/games-emulation/sdlmame/Manifest +++ b/games-emulation/sdlmame/Manifest @@ -1,20 +1,12 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - 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 sdlmame0124.zip 16248845 RMD160 3fe3f0d2762a0170bd2553445df75d3adf06721e SHA1 b5bfa179b4ae2d66dd4094163b8d11beaabe545e SHA256 b0f993878b7ad72fa8905701a40ce631a6500774b11011711003c4101ab2ed54 DIST sdlmame0124u3.zip 16376327 RMD160 bb8a9d0b142314ead25d6fbb73a37beaa7f5713f SHA1 820fef70246620d211dd62e25a4746f6b50011b1 SHA256 9d4179aae9eec588e5fcc19ccbeb88e49c0cb1ab3eaeb13414d4881147a8d695 +DIST sdlmame0125.zip 16403503 RMD160 c0fc73f995ce5a11a260d2a89857132ccd279a0b SHA1 ce336396ddf87e327ef28230495d3a39159fcf3f SHA256 688d4a5d327636b21dd9a93de1083b08a6ed3fc201a0bc6e331aed30f55a5ed6 EBUILD sdlmame-0.124.ebuild 3767 RMD160 32546d607320543f39a1a32671f7755912d4d57a SHA1 ba689989a8fcc092b945b93e10c3c02e71cab233 SHA256 b174bc6f81f861925db66d902d71660d6375be9248ec867fda01b45febc51477 EBUILD sdlmame-0.124_p3.ebuild 3770 RMD160 50c3c8cdc3fb052abe1c7bc420a95b7fbdbb6c22 SHA1 a730236571f57d7c267d631f31fc1f9c2477bcdc SHA256 17d648977b85b3d696188c2443095d3bf07d4c47e6c02b07e472faa70d6e28f3 -MISC ChangeLog 651 RMD160 9fd480c999a7b63e53a2d95dafb3302dd3c6fd94 SHA1 72d390f7504e6abb2436df860fad737d8e1bb4e6 SHA256 b64cd7658e40d51052398f85558ee4e123ba27e2fbff9a0065f72b9bb099d463 +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 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.9 (GNU/Linux) - -iEYEARECAAYFAkgYRWAACgkQdz7hIScOURGlmwCg27tcRXpIn8XDEMam2BQOhsLB -essAnRjK0htLVKX1zKLVx0SGq1pUQeoy -=AZk+ ------END PGP SIGNATURE----- diff --git a/games-emulation/sdlmame/sdlmame-0.125.ebuild b/games-emulation/sdlmame/sdlmame-0.125.ebuild new file mode 100644 index 000000000000..30482ee0a1ba --- /dev/null +++ b/games-emulation/sdlmame/sdlmame-0.125.ebuild @@ -0,0 +1,156 @@ +# 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 +} |