diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-07-11 16:54:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-07-11 16:54:43 +0000 |
commit | 7847ff4ff5a994c4bc9807ce11dbd70c9105e502 (patch) | |
tree | eacbe2df2a8e62fbd1786922b1a8168da046ac3d /app-emulation/xmess | |
parent | version bump + major code rehaul #19083 (diff) | |
download | historical-7847ff4ff5a994c4bc9807ce11dbd70c9105e502.tar.gz historical-7847ff4ff5a994c4bc9807ce11dbd70c9105e502.tar.bz2 historical-7847ff4ff5a994c4bc9807ce11dbd70c9105e502.zip |
version bump + major code rehaul #19083
Diffstat (limited to 'app-emulation/xmess')
-rw-r--r-- | app-emulation/xmess/ChangeLog | 10 | ||||
-rw-r--r-- | app-emulation/xmess/Manifest | 6 | ||||
-rw-r--r-- | app-emulation/xmess/files/digest-xmess-0.62.2-r1 | 1 | ||||
-rw-r--r-- | app-emulation/xmess/files/digest-xmess-0.70.1 | 1 | ||||
-rw-r--r-- | app-emulation/xmess/xmess-0.62.2-r1.ebuild | 270 | ||||
-rw-r--r-- | app-emulation/xmess/xmess-0.70.1.ebuild | 121 |
6 files changed, 133 insertions, 276 deletions
diff --git a/app-emulation/xmess/ChangeLog b/app-emulation/xmess/ChangeLog index 0be54aabec8b..e8b8d9e35870 100644 --- a/app-emulation/xmess/ChangeLog +++ b/app-emulation/xmess/ChangeLog @@ -1,8 +1,14 @@ # ChangeLog for app-emulation/xmess # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmess/ChangeLog,v 1.3 2003/06/29 20:06:54 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmess/ChangeLog,v 1.4 2003/07/11 16:54:37 vapier Exp $ + +*xmame-0.70.1 (11 Jul 2003) + + 11 Jul 2003; Mike Frysinger <vapier@gentoo.org> : + Version bump + major rehaul of code. Thanks to Caleb Shay <caleb@webninja.com> for + his ideas/submissions. *xmess-0.62.2-r1 (13 Jan 2003) 13 Jan 2003; Ryan Phillips <rphillips@gentoo.org> xmess-0.62.2-r1.ebuild : - initial release. Submitted by Caleb Shay + initial release. Submitted by Caleb Shay. diff --git a/app-emulation/xmess/Manifest b/app-emulation/xmess/Manifest index 56711b6fc3f0..e3701a8e6faf 100644 --- a/app-emulation/xmess/Manifest +++ b/app-emulation/xmess/Manifest @@ -1,3 +1,3 @@ -MD5 0e902d72507e8c36cc262c54d1b6aff0 files/digest-xmess-0.62.2-r1 66 -MD5 c12b9772097df51b017bf4c2f2baf500 xmess-0.62.2-r1.ebuild 6992 -MD5 2a2da1fdf5de697e487a4205039aaffd ChangeLog 370 +MD5 b9d5b1d5f70db976a728f55426205e87 files/digest-xmess-0.70.1 66 +MD5 95e6c74ceaaf4763f68037436d0f0911 xmess-0.70.1.ebuild 4088 +MD5 b8a081066d852b7a0a5f8ad25089fd00 ChangeLog 566 diff --git a/app-emulation/xmess/files/digest-xmess-0.62.2-r1 b/app-emulation/xmess/files/digest-xmess-0.62.2-r1 deleted file mode 100644 index 0827a1c32593..000000000000 --- a/app-emulation/xmess/files/digest-xmess-0.62.2-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 16a69e86535f96b1df5b69b714c50092 xmame-0.62.2.tar.bz2 8314736 diff --git a/app-emulation/xmess/files/digest-xmess-0.70.1 b/app-emulation/xmess/files/digest-xmess-0.70.1 new file mode 100644 index 000000000000..d0dda2921b8c --- /dev/null +++ b/app-emulation/xmess/files/digest-xmess-0.70.1 @@ -0,0 +1 @@ +MD5 a6ab5e8a70cc6c64f7c364522a1b018f xmame-0.70.1.tar.bz2 9940156 diff --git a/app-emulation/xmess/xmess-0.62.2-r1.ebuild b/app-emulation/xmess/xmess-0.62.2-r1.ebuild deleted file mode 100644 index 41d09fc2bce1..000000000000 --- a/app-emulation/xmess/xmess-0.62.2-r1.ebuild +++ /dev/null @@ -1,270 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# Based on the 0.59.1 ebuild by Ben Lutgens <blutgens@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmess/xmess-0.62.2-r1.ebuild,v 1.3 2003/06/29 20:06:54 aliz Exp $ - -IUSE="sdl dga xv alsa esd opengl X 3dfx svga ggi arts" - -P="xmame-0.62.2" -S=${WORKDIR}/${P} -DESCRIPTION="Multi Emulator Super System for X11" -SRC_URI="http://x.mame.net/download/${P}.tar.bz2" -HOMEPAGE="http://x.mame.net" -SLOT="0" -LICENSE="xmame" -DEPEND="sdl? ( >=media-libs/libsdl-1.2.0 ) - sys-libs/zlib - alsa? ( media-libs/alsa-lib ) - xv? ( >=x11-base/xfree-4.1.0 ) - dga? ( >=x11-base/xfree-4.1.0 ) - esd? ( >=media-sound/esound-0.2.29 ) - svga? ( media-libs/svgalib ) - ggi? ( media-libs/libggi ) - arts? ( kde-base/arts )" - -RDEPEND=${DEPEND} - -if [ ${ARCH} = "x86" ]; then - DEPEND="${DEPEND} ( dev-lang/nasm )" -fi - - - -# Please note modifications for ppc in this ebuild. If you update the ebuild, -# please either test on ppc, or send it to a ppc developer for testing before -# you commit the ebuild. Thanks :-) - -KEYWORDS="x86 ~ppc" - -src_unpack() { - unpack ${P}.tar.bz2 - cd ${S} - sed -e "s:CFLAGS = -O -Wall:\#CFLAGS=:g" -e \ - "s:PREFIX = /usr/local:PREFIX = /usr:g" -e \ - "s:MANDIR = \$\(PREFIX\)/man/man6:MANDIR = \$\(PREFIX\)/share/man/man6:g" -e \ - "s:TARGET = mame:TARGET = mess:g" \ - makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - - if [ ${ARCH} = "x86" ] - then - # Enable joystick support - sed -e "s/\# JOY_I386/JOY_I386/g" makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - # Enable M68K asm core - sed -e "s/\# X86_ASM_68000 = 1/X86_ASM_68000 = 1/g" makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - fi - - if [ ${ARCH} = "ppc" ] - then - sed -e "s:MY_CPU = i386:\#MY_CPU = i386:g" -e \ - "s:\# MY_CPU = risc$:MY_CPU = risc:" makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - fi - - if [ "`use esd`" ]; then - sed -e "s/\# SOUND_ESOUND/SOUND_ESOUND/g" makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - fi - - if [ "`use alsa`" ]; then - sed -e "s/\# SOUND_ALSA/SOUND_ALSA/g" makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - fi - - if [ "`use arts`" ]; then - sed -e "s/\# SOUND_ARTS/SOUND_ARTS/g" makefile.unix > makefile.unix.tmp - mv makefile.unix.tmp makefile.unix - fi - - if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then - cp makefile.unix makefile.x11; - fi - - if [ "`use svga`" ]; then - cp makefile.unix makefile.svga - sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = svgalib/g" \ - makefile.svga > makefile.svga.tmp - mv makefile.svga.tmp makefile.svga - fi - - if [ "`use sdl`" ]; then - cp makefile.unix makefile.SDL - sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = SDL/g" \ - makefile.SDL > makefile.SDL.tmp - mv makefile.SDL.tmp makefile.SDL - fi - - if [ "`use ggi`" ]; then - cp makefile.unix makefile.ggi - sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = ggi/g" \ - makefile.ggi > makefile.ggi.tmp - mv makefile.ggi.tmp makefile.ggi - fi - - if [ "`use opengl`" ]; then - cp makefile.unix makefile.xgl - sed -e "s/DISPLAY_METHOD = x11/DISPLAY_METHOD = xgl/g" \ - makefile.xgl > makefile.xgl.tmp - mv makefile.xgl.tmp makefile.xgl - sed -e "s/<GL\/glx.h>/\"\/usr\/lib\/opengl\/xfree\/include\/glx.h\"/g" \ - src/unix/video-drivers/gltool.h > src/unix/video-drivers/gltool.h.tmp - mv src/unix/video-drivers/gltool.h.tmp src/unix/video-drivers/gltool.h - fi - - - if [ "`use dga`" ]; then - sed -e "s/\# X11_DGA = 1/X11_DGA = 1/g" \ - makefile.x11 > makefile.x11.tmp - mv makefile.x11.tmp makefile.x11 - if [ "`use 3dfx`"]; then - sed -e "s/\# TDFX_DGA_WORKAROUND/TDFX_DGA_WORKAROUND/g" \ - makefile.x11 > makefile.x11.tmp - mv makefile.x11.tmp makefile.x11 - fi - if [ "`use sdl`" ]; then - sed -e "s/\# X11_DGA = 1/X11_DGA = 1/g" \ - makefile.SDL > makefile.SDL.tmp - mv makefile.SDL.tmp makefile.SDL - if [ "`use 3dfx`"]; then - sed -e "s/\# TDFX_DGA_WORKAROUND/TDFX_DGA_WORKAROUND/g" \ - makefile.SDL > makefile.SDL.tmp - mv makefile.SDL.tmp makefile.SDL - fi - fi - fi - - if [ "`use xv`" ]; then - sed -e "s/\# X11_XV = 1/X11_XV = 1/g" makefile.x11 > makefile.x11.tmp - mv makefile.x11.tmp makefile.x11 - fi -} - -src_compile() { - local MYFLAGS - local GCCMAJ - MYFLAGS="" - # 08 Oct 2002 Caleb Shay - # Parallel makes breaks the build - MAKEOPTS="" - - GCCMAJ=`gcc -v 2>&1 | grep version | awk '{print $3}' | cut -f1 -d\.` - - if [ ${ARCH} = "ppc" ] ; then - # add Makefile suggested flags for ppc - MYFLAGS="${CFLAGS} -funroll-loops \ - -fstrength-reduce -fomit-frame-pointer -ffast-math -fsigned-char" - fi - - if [ ${ARCH} = "x86" ] ; then - # add Makefile suggested flags for x86 - MYFLAGS="${CFLAGS} -O3 -Wall -Wno-unused -funroll-loops \ - -fstrength-reduce -fomit-frame-pointer -ffast-math" - if [ ${GCCMAJ} = "2" ]; then - MYFLAGS="${MYFLAGS} -malign-functions=2 -malign-jumps=2 -malign-loops=2" - else - MYFLAGS="${MYFLAGS} -falign-functions=2 -falign-jumps=2 -falign-loops=2" - fi - fi - - if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then - cp makefile.x11 Makefile - emake CFLAGS="${MYFLAGS}" || die - fi - - if [ "`use sdl`" ]; then - cp makefile.SDL Makefile - emake CFLAGS="${MYFLAGS}" || die - fi - - if [ "`use svga`" ]; then - cp makefile.svga Makefile - emake CFLAGS="${MYFLAGS}" || die - fi - - if [ "`use ggi`" ]; then - cp makefile.ggi Makefile - emake CFLAGS="${MYFLAGS}" || die - fi - - if [ "`use opengl`" ]; then - cp makefile.xgl Makefile - emake CFLAGS="${MYFLAGS}" || die - fi - -} - -src_install () { - - if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then - cp makefile.x11 Makefile - make \ - PREFIX=${D}/usr \ - MANDIR=${D}/usr/share/man/man6 \ - install - fi - if [ "`use sdl`" ]; then - cp makefile.SDL Makefile - make \ - PREFIX=${D}/usr \ - MANDIR=${D}/usr/share/man/man6 \ - install - fi - if [ "`use svga`" ]; then - cp makefile.svga Makefile - make \ - PREFIX=${D}/usr \ - MANDIR=${D}/usr/share/man/man6 \ - install - fi - if [ "`use ggi`" ]; then - cp makefile.ggi Makefile - make \ - PREFIX=${D}/usr \ - MANDIR=${D}/usr/share/man/man6 \ - install - fi - if [ "`use opengl`" ]; then - cp makefile.xgl Makefile - make \ - PREFIX=${D}/usr \ - MANDIR=${D}/usr/share/man/man6 \ - install - fi - - - dodoc doc/{changes.*,dga2.txt,gamelist.mame,readme.mame,xmamerc.dist} - dodoc doc/{xmame-doc.ps,xmame-doc.txt} - - dohtml -r doc - - if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then - dosym xmess.x11 /usr/bin/xmess - fi - -} - -pkg_postinst() { - - einfo "Your available MESS binaries are:" - if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then - einfo " xmess.x11"; - fi - if [ "`use sdl`" ]; then - einfo " xmess.SDL" - fi - if [ "`use svga`" ]; then - einfo " xmess.svgalib" - fi - if [ "`use ggi`" ]; then - einfo " xmess.ggi" - fi - if [ "`use opengl`" ]; then - einfo " xmess.xgl" - fi - if [ "`use X`" ] || [ "`use dga`" ] || [ "`use xv`" ]; then - einfo "xmess is a symbolic link to xmess.x11" - fi - -} diff --git a/app-emulation/xmess/xmess-0.70.1.ebuild b/app-emulation/xmess/xmess-0.70.1.ebuild new file mode 100644 index 000000000000..1f7c9a30f578 --- /dev/null +++ b/app-emulation/xmess/xmess-0.70.1.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xmess/xmess-0.70.1.ebuild,v 1.1 2003/07/11 16:54:37 vapier Exp $ + +inherit games flag-o-matic gcc + +TARGET=${PN} + +DESCRIPTION="Multiple Arcade Machine Emulator for X11" +SRC_URI="http://x.mame.net/download/xmame-${PV}.tar.bz2" +HOMEPAGE="http://x.mame.net/" + +SLOT="0" +LICENSE="xmame" +KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha" +IUSE="sdl dga xv alsa esd opengl X 3dfx svga ggi arts joystick" + +DEPEND="sys-libs/zlib + sdl? ( >=media-libs/libsdl-1.2.0 ) + alsa? ( media-libs/alsa-lib ) + xv? ( >=x11-base/xfree-4.1.0 ) + dga? ( >=x11-base/xfree-4.1.0 ) + esd? ( >=media-sound/esound-0.2.29 ) + svga? ( media-libs/svgalib ) + ggi? ( media-libs/libggi ) + arts? ( kde-base/arts ) + x86? ( dev-lang/nasm )" + +S=${WORKDIR}/xmame-${PV} + +src_unpack() { + unpack ${A} + + cd ${S} + + [ ${ARCH} == "x86" ] && sed -i -e '/X86_ASM_68000 =/s:#::' -e '/X86_MIPS3_DRC =/s:#::' Makefile + [ ${ARCH} == "ppc" ] && sed -i '/^MY_CPU/s:i386:risc:' Makefile + [ ${ARCH} == "sparc" ] && sed -i '/^MY_CPU/s:i386:risc:' Makefile + [ ${ARCH} == "alpha" ] && sed -i '/^MY_CPU/s:i386:alpha:' Makefile + [ ${ARCH} == "mips" ] && sed -i '/^MY_CPU/s:i386:mips:' Makefile + + [ ${ARCH} == "x86" ] && [ `use joystick` ] && sed -i '/JOY_I386.*=/s:#::' Makefile + + [ `use esd` ] && sed -i '/SOUND_ESOUND/s:#::' Makefile + [ `use alsa` ] && sed -i '/SOUND_ALSA/s:#::' Makefile + [ `use arts` ] && sed -i '/SOUND_ARTS/s:#::' Makefile + [ `use sdl` ] && sed -i '/SOUND_SDL/s:#::' Makefile + + if [ `use dga` ] ; then + sed -i '/X11_DGA/s:#::' Makefile + [ `use 3dfx` ] && sed -i '/TDFX_DGA_WORKAROUND/s:#::' Makefile + fi + + [ `use xv` ] && sed -i '/X11_XV/s:#::' Makefile + + sed -i \ + -e "/^PREFIX/s:=.*:=/usr:" \ + -e "/^BINDIR/s:=.*:=${GAMES_BINDIR}:" \ + -e "/^XMAMEROOT/s:=.*:=${GAMES_DATADIR}/${TARGET}:" \ + Makefile + + case ${ARCH} in + x86) append-flags -Wno-unused -fomit-frame-pointer -fstrict-aliasing -fstrength-reduce -ffast-math + [ `gcc-major-version` -eq 3 ] \ + && append-flags -falign-functions=2 -falign-jumps=2 -falign-loops=2 \ + || append-flags -malign-functions=2 -malign-jumps=2 -malign-loops=2 + ;; + ppc) append-flags -Wno-unused -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math -fsigned-char + ;; + esac + sed -i "s:^CFLAGS =:CFLAGS=${CFLAGS}:" Makefile +} + +src_compile() { + [ ! -z "`use X``use dga``use xv`" ] && { make DISPLAY_METHOD=x11 || die; } + [ `use sdl` ] && { make DISPLAY_METHOD=SDL || die; } + [ `use svga` ] && { make DISPLAY_METHOD=svgalib || die; } + [ `use ggi` ] && { make DISPLAY_METHOD=ggi || die; } + [ `use opengl` ] && { make DISPLAY_METHOD=xgl || die; } +} + +src_install() { + sed -i \ + -e "s:^PREFIX.*:PREFIX=${D}/usr:" \ + -e "s:^BINDIR.*:BINDIR=${D}/${GAMES_BINDIR}:" \ + -e "s:^XMAMEROOT.*:XMAMEROOT=${D}/${GAMES_DATADIR}/${TARGET}:" \ + Makefile + + [ ! -z "`use X``use dga``use xv`" ] && { make DISPLAY_METHOD=x11 install || die; } + [ `use sdl` ] && { make DISPLAY_METHOD=SDL install || die; } + [ `use svga` ] && { make DISPLAY_METHOD=svgalib install || die; } + [ `use ggi` ] && { make DISPLAY_METHOD=ggi install || die; } + [ `use opengl` ] && { make DISPLAY_METHOD=xgl install || die; } + + dodoc doc/{changes.*,*.txt,mame/*,${TARGET}rc.dist} README todo + dohtml -r doc/* + + if [ `use opengl` ] ; then + dosym ${TARGET}.xgl ${GAMES_BINDIR}/${TARGET} + elif [ ! -z "`use X``use dga``use xv`" ] ; then + dosym ${TARGET}.x11 ${GAMES_BINDIR}/${TARGET} + elif [ `use sdl` ] ; then + dosym ${TARGET}.SDL ${GAMES_BINDIR}/${TARGET} + elif [ `use svga` ] ; then + dosym ${TARGET}.svgalib ${GAMES_BINDIR}/${TARGET} + elif [ `use ggi` ] ; then + dosym ${TARGET}.ggi ${GAMES_BINDIR}/${TARGET} + fi + + prepgamesdirs +} + +pkg_postinst() { + einfo "Your available MAME binaries are:" + [ ! -z "`use X``use dga``use xv`" ] && einfo " ${TARGET}.x11" + [ `use sdl` ] && einfo " ${TARGET}.SDL" + [ `use svga` ] && einfo " ${TARGET}.svgalib" + [ `use ggi` ] && einfo " ${TARGET}.ggi" + [ `use opengl` ] && einfo " ${TARGET}.xgl" + games_pkg_postinst +} |