diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/xmame | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/xmame')
-rw-r--r-- | recipes/xmame/files/tiny.mak | 127 | ||||
-rw-r--r-- | recipes/xmame/xmame-0.86/crosscompile.patch | 66 | ||||
-rw-r--r-- | recipes/xmame/xmame-tiny_0.100.bb | 9 | ||||
-rw-r--r-- | recipes/xmame/xmame_0.100.bb | 24 | ||||
-rw-r--r-- | recipes/xmame/xmame_0.86.bb | 26 | ||||
-rw-r--r-- | recipes/xmame/xmame_0.87.bb | 25 | ||||
-rw-r--r-- | recipes/xmame/xmame_0.95.bb | 25 |
7 files changed, 302 insertions, 0 deletions
diff --git a/recipes/xmame/files/tiny.mak b/recipes/xmame/files/tiny.mak new file mode 100644 index 0000000000..d195a98a94 --- /dev/null +++ b/recipes/xmame/files/tiny.mak @@ -0,0 +1,127 @@ +# a tiny compile is without Neogeo games + +ASTEROID=1 +#TEMPEST=1 +GALAGA=1 +CENTIPED=1 +#JOUST=1 + +## all games, obtained by : +# nm xmame.x11 | fgrep " driver_"|awk '{print $3}' |sed -e s/driver_// > allgames +## list all clones: +# ./xmame.x11 -listclones|awk '{print $1}'|sort |uniq > allclones +# sed `cat allclones |sed -e 's/^/-e s@^/' -e 's/$/$@@/'` < allgames > allbutclones + +GAMES = 4in1 8ball 8ballact ad2083 alibaba amidar anteater armorcar atlantis azurian bagman bigbucks blkhole bongo botanic bwcasino calipso cannonb catapult cavelon cavenger cclimber checkman chewing ckong conquer cosmos crush darkplnt darkwar dazzler dealer devilfsh diggerc dingo dingoe dkong dkong3 dkongjr dorodon drakton dremshpr drivfrcp eggor eyes frogger galaxian gmgalax goldbug guzzler harem heartatk hero hotshock hunchbak huncholy hustler igmo jumpbug jumpshot kingball ladybug levers lizwiz logger losttomb luctoday mariner mario mars megadon mimonkey minefld moonal2 mooncrst moonqsr moonwar mrkougar mrtnt mshuttle mspacman newsin7 nmouse orbitron ozon1 pacplus phoenix pickin pisces pleiads ponpoko porky puckman racknrol radarscp radarzon raiders redclash redufo rescue revenger rockclim rocktrv2 rpatrolb sbagman scobra scorpion scramble sfx shootbul shootgal skybase snapjack spacefrt spcfrcii spclforc spdcoin sraider stratgyx streakng strtheat superbik superbon suprglob survival swimmer tazmania theend triplep trvchlng turtles uniwars vanvan wallst warofbug woodpek zerohour zigzag + +comma:= , +empty:= +space:= $(empty) $(empty) +COREDEFS += -DTINY_NAME="$(subst $(space),$(comma),$(patsubst %,driver_%,$(GAMES)))" +COREDEFS += -DTINY_POINTER="$(subst $(space),$(comma),$(patsubst %,&driver_%,$(GAMES)))" + +# uses these CPUs +CPUS+=Z80@ +CPUS+=8085A@ +CPUS+=M6502@ +CPUS+=N2A03@ +CPUS+=I8035@ +CPUS+=I8039@ +CPUS+=S2650@ + +# uses these SOUNDs +SOUNDS+=DAC@ +SOUNDS+=SAMPLES@ +SOUNDS+=CUSTOM@ + +# basic set: pacman + dkong + galaxian + mario ... +SOUNDS+=AY8910@ +SOUNDS+=NAMCO@ +SOUNDS+=SN76496@ +SOUNDS+=TMS5110@ +SOUNDS+=NES@ +SOUNDS+=TMS36XX@ +SOUNDS+=DISCRETE@ +OBJS = \ + $(OBJ)/vidhrdw/pacman.o $(OBJ)/drivers/pacman.o \ + $(OBJ)/machine/mspacman.o $(OBJ)/machine/pacplus.o \ + $(OBJ)/machine/jumpshot.o $(OBJ)/machine/theglobp.o \ + $(OBJ)/machine/acitya.o \ + $(OBJ)/drivers/epos.o $(OBJ)/vidhrdw/epos.o \ + $(OBJ)/vidhrdw/dkong.o $(OBJ)/sndhrdw/dkong.o $(OBJ)/drivers/dkong.o \ + $(OBJ)/machine/strtheat.o $(OBJ)/machine/drakton.o \ + $(OBJ)/machine/scramble.o $(OBJ)/sndhrdw/scramble.o $(OBJ)/drivers/scramble.o \ + $(OBJ)/drivers/frogger.o \ + $(OBJ)/drivers/scobra.o \ + $(OBJ)/drivers/amidar.o \ + $(OBJ)/vidhrdw/galaxian.o $(OBJ)/sndhrdw/galaxian.o $(OBJ)/drivers/galaxian.o \ + $(OBJ)/vidhrdw/cclimber.o $(OBJ)/sndhrdw/cclimber.o $(OBJ)/drivers/cclimber.o \ + $(OBJ)/drivers/cvs.o $(OBJ)/vidhrdw/cvs.o $(OBJ)/vidhrdw/s2636.o \ + $(OBJ)/vidhrdw/mario.o $(OBJ)/sndhrdw/mario.o $(OBJ)/drivers/mario.o \ + $(OBJ)/machine/bagman.o $(OBJ)/vidhrdw/bagman.o $(OBJ)/drivers/bagman.o \ + $(OBJ)/vidhrdw/phoenix.o $(OBJ)/sndhrdw/phoenix.o $(OBJ)/drivers/phoenix.o \ + $(OBJ)/sndhrdw/pleiads.o \ + $(OBJ)/vidhrdw/ladybug.o $(OBJ)/drivers/ladybug.o \ + $(OBJ)/vidhrdw/redclash.o $(OBJ)/drivers/redclash.o \ + $(OBJ)/machine/8255ppi.o $(OBJ)/machine/7474.o \ + $(OBJ)/vidhrdw/res_net.o \ + +ifdef ASTEROID +GAMES += astdelux asteroid llander +SOUNDS+=POKEY@ +OBJS += \ + $(OBJ)/machine/atari_vg.o \ + $(OBJ)/machine/asteroid.o $(OBJ)/sndhrdw/asteroid.o \ + $(OBJ)/sndhrdw/llander.o $(OBJ)/drivers/asteroid.o \ + $(OBJ)/vidhrdw/avgdvg.o \ + +ifdef TEMPEST +GAMES += esb starwars tempest +SOUNDS+=TMS5220@ +OBJS += \ + $(OBJ)/machine/mathbox.o \ + $(OBJ)/drivers/tempest.o \ + $(OBJ)/machine/starwars.o \ + $(OBJ)/drivers/starwars.o $(OBJ)/sndhrdw/starwars.o \ + $(OBJ)/machine/slapstic.o \ + +endif +endif + +ifdef GALAGA +GAMES += bosco digdug galaga xevious +SOUNDS+=NAMCO_52XX@ +SOUNDS+=NAMCO_54XX@ +OBJS += \ + $(OBJ)/vidhrdw/bosco.o \ + $(OBJ)/vidhrdw/galaga.o $(OBJ)/drivers/galaga.o \ + $(OBJ)/vidhrdw/digdug.o \ + $(OBJ)/vidhrdw/xevious.o $(OBJ)/machine/xevious.o \ + $(OBJ)/machine/namcoio.o \ + +endif + +ifdef CENTIPED +GAMES += bullsdrt centiped milliped warlords +OBJS += \ + $(OBJ)/vidhrdw/centiped.o $(OBJ)/drivers/centiped.o \ + $(OBJ)/machine/random.o \ + +endif + +ifdef JOUST +GAMES += blaster bubbles colony7 defender inferno jin joust joust2 lottofun mayday mysticm playball robotron sinistar spdball splat stargate tshoot +CPUS+=M6809@ +CPUS+=M6808@ +SOUNDS+=YM2151@ +SOUNDS+=HC55516@ +SOUNDS+=OKIM6295@ +OBJS += \ + $(OBJ)/machine/williams.o $(OBJ)/vidhrdw/williams.o $(OBJ)/sndhrdw/williams.o $(OBJ)/drivers/williams.o \ + $(OBJ)/machine/6821pia.o \ + $(OBJ)/machine/ticket.o \ + +endif + +# MAME specific core objs +COREOBJS += $(OBJ)/tiny.o $(OBJ)/cheat.o diff --git a/recipes/xmame/xmame-0.86/crosscompile.patch b/recipes/xmame/xmame-0.86/crosscompile.patch new file mode 100644 index 0000000000..9f354e2958 --- /dev/null +++ b/recipes/xmame/xmame-0.86/crosscompile.patch @@ -0,0 +1,66 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- xmame-0.86/src/unix/unix.mak~crosscompile ++++ xmame-0.86/src/unix/unix.mak +@@ -20,6 +20,7 @@ + CFLAGS.risc = -DALIGN_INTS -DALIGN_SHORTS + CFLAGS.risc_lsb = -DALIGN_INTS -DALIGN_SHORTS -DLSB_FIRST + CFLAGS.mips = -DALIGN_INTS -DALIGN_SHORTS -DSGI_FIX_MWA_NOP ++CFLAGS.arm = -DALIGN_INTS -DALIGH_SHORTS -DLSB_FIRST + + ############################################################################## + # Architecture-dependent settings +@@ -61,7 +62,7 @@ + endif + LIBS.svgafx = $(X11LIB) -lvga -lvgagl -lglide3 + LIBS.openstep = -framework AppKit +-LIBS.SDL = $(X11LIB) `$(SDL_CONFIG) --libs` ++LIBS.SDL = `$(SDL_CONFIG) --libs` + LIBS.photon2 = -L/usr/lib -lph -lphrender + + CFLAGS.x11 = $(X11INC) $(JOY_X11_CFLAGS) $(XINPUT_DEVICES_CFLAGS) +@@ -72,7 +73,7 @@ + CFLAGS.xfx = $(X11INC) $(JOY_X11_CFLAGS) -I/usr/include/glide3 + endif + CFLAGS.svgafx = -I/usr/include/glide3 +-CFLAGS.SDL = $(X11INC) `$(SDL_CONFIG) --cflags` -D_REENTRANT ++CFLAGS.SDL = `$(SDL_CONFIG) --cflags` -D_REENTRANT + CFLAGS.photon2 = + + ifdef X11_DGA +@@ -562,7 +563,7 @@ + + $(OBJ)/%.a: + $(CC_COMMENT) @echo 'Archiving $@ ...' +- $(CC_COMPILE) ar $(AR_OPTS) $@ $^ ++ $(CC_COMPILE) $(AR) $(AR_OPTS) $@ $^ + $(CC_COMPILE) $(RANLIB) $@ + + $(OSDEPEND): $(UNIX_OBJS) +@@ -591,20 +592,20 @@ + # generate C source files for the 68000 emulator + $(OBJ)/cpu/m68000/m68kmake: src/cpu/m68000/m68kmake.c + $(CC_COMMENT) @echo 'M68K make $<...' +- $(CC_COMPILE) $(CC) $(MY_CFLAGS) -DDOS -o $(OBJ)/cpu/m68000/m68kmake $< ++ $(CC_COMPILE) $(BUILD_CC) $(BUILD_CFLAGS) $(MY_CFLAGS) -DDOS -o $(OBJ)/cpu/m68000/m68kmake $< + $(CC_COMMENT) @echo 'Generating M68K source files...' + $(CC_COMPILE) $(OBJ)/cpu/m68000/m68kmake $(OBJ)/cpu/m68000 src/cpu/m68000/m68k_in.c + + # generate asm source files for the 68000/68020 emulators + $(OBJ)/cpu/m68000/68000.asm: src/cpu/m68000/make68k.c + $(CC_COMMENT) @echo 'Compiling $<...' +- $(CC_COMPILE) $(CC) $(MY_CFLAGS) -O0 -DDOS -o $(OBJ)/cpu/m68000/make68k $< ++ $(CC_COMPILE) $(BUILD_CC) $(BUILD_CFLAGS) $(MY_CFLAGS) -O0 -DDOS -o $(OBJ)/cpu/m68000/make68k $< + $(CC_COMMENT) @echo 'Generating $@...' + $(CC_COMPILE) $(OBJ)/cpu/m68000/make68k $@ $(OBJ)/cpu/m68000/68000tab.asm 00 + + $(OBJ)/cpu/m68000/68020.asm: src/cpu/m68000/make68k.c + $(CC_COMMENT) @echo 'Compiling $<...' +- $(CC_COMPILE) $(CC) $(MY_CFLAGS) -O0 -DDOS -o $(OBJ)/cpu/m68000/make68k $< ++ $(CC_COMPILE) $(BUILD_CC) $(BUILD_CFLAGS) $(MY_CFLAGS) -O0 -DDOS -o $(OBJ)/cpu/m68000/make68k $< + $(CC_COMMENT) @echo 'Generating $@...' + $(CC_COMPILE) $(OBJ)/cpu/m68000/make68k $@ $(OBJ)/cpu/m68000/68020tab.asm 20 + diff --git a/recipes/xmame/xmame-tiny_0.100.bb b/recipes/xmame/xmame-tiny_0.100.bb new file mode 100644 index 0000000000..21e8ebe44f --- /dev/null +++ b/recipes/xmame/xmame-tiny_0.100.bb @@ -0,0 +1,9 @@ +require xmame_${PV}.bb + +DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL (tiny version)" +TINY = "1" +SRC_URI += " file://tiny.mak" + +do_compile_prepend () { + cp ${WORKDIR}/tiny.mak ${S}/src/mame.mak +} diff --git a/recipes/xmame/xmame_0.100.bb b/recipes/xmame/xmame_0.100.bb new file mode 100644 index 0000000000..34090d33a8 --- /dev/null +++ b/recipes/xmame/xmame_0.100.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL" +LICENSE = "xmame" +SECTION = "games" +PRIORITY = "optional" +DEPENDS = "expat virtual/libsdl libsdl-mixer" + +SRC_URI = "http://x.mame.net/download/historic/xmame-${PV}.tar.bz2 file://tiny.mak" +S = "${WORKDIR}/xmame-${PV}" + +inherit flow-lossage + +do_compile() { + test -z "${TINY}" && oe_runmake TARGET="mame" CC="${BUILD_CC}" maketree xmame.obj/cpu/m68000/m68kmake + oe_runmake TARGET="mame" JOY_SDL=1 SOUND_SDL=1 DISPLAY_METHOD=SDL \ + CC="${CC}" CXX="${CXX}" CFLAGS="-I. -Isrc -Isrc/include -Isrc/unix ${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" \ + RANLIB="${RANLIB}" MY_CPU="${TARGET_ARCH}" ARCH="${TARGET_OS}" \ + GLLIBS="" STRIP="${STRIP}" AR="${AR}" +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 xmame.SDL ${D}${bindir} +} diff --git a/recipes/xmame/xmame_0.86.bb b/recipes/xmame/xmame_0.86.bb new file mode 100644 index 0000000000..a5801e73da --- /dev/null +++ b/recipes/xmame/xmame_0.86.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL" +LICENSE = "xmame" +SECTION = "games" +PRIORITY = "optional" +DEPENDS = "expat virtual/libsdl libsdl-mixer" + +SRC_URI = "http://x.mame.net/download/historic/${P}.tar.bz2 \ + file://${FILESDIR}/crosscompile.patch;patch=1" + +inherit flow-lossage + +EXTRA_OEMAKE= + +do_compile() { + oe_runmake TARGET=mame JOY_SDL=1 SOUND_SDL=1 DISPLAY_METHOD=SDL \ + CC="${CC}" CXX="${CXX}" CFLAGS="-I. -Isrc -Isrc/include -Isrc/unix ${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" \ + RANLIB="${RANLIB}" MY_CPU="${TARGET_ARCH}" ARCH="${TARGET_OS}" \ + GLLIBS="" STRIP="${STRIP}" AR="${AR}" +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 xmame.SDL ${D}${bindir} +} + diff --git a/recipes/xmame/xmame_0.87.bb b/recipes/xmame/xmame_0.87.bb new file mode 100644 index 0000000000..80924ef0c6 --- /dev/null +++ b/recipes/xmame/xmame_0.87.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL" +LICENSE = "xmame" +SECTION = "games" +PRIORITY = "optional" +DEPENDS = "expat virtual/libsdl libsdl-mixer" + +SRC_URI = "http://x.mame.net/download/historic/${P}.tar.bz2" + +inherit flow-lossage + +EXTRA_OEMAKE= + +do_compile() { + oe_runmake TARGET=mame JOY_SDL=1 SOUND_SDL=1 DISPLAY_METHOD=SDL \ + CC="${CC}" CXX="${CXX}" CFLAGS="-I. -Isrc -Isrc/include -Isrc/unix ${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" \ + RANLIB="${RANLIB}" MY_CPU="${TARGET_ARCH}" ARCH="${TARGET_OS}" \ + GLLIBS="" STRIP="${STRIP}" AR="${AR}" +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 xmame.SDL ${D}${bindir} +} + diff --git a/recipes/xmame/xmame_0.95.bb b/recipes/xmame/xmame_0.95.bb new file mode 100644 index 0000000000..80924ef0c6 --- /dev/null +++ b/recipes/xmame/xmame_0.95.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "Multiple Arcade Machine Emulator based on SDL" +LICENSE = "xmame" +SECTION = "games" +PRIORITY = "optional" +DEPENDS = "expat virtual/libsdl libsdl-mixer" + +SRC_URI = "http://x.mame.net/download/historic/${P}.tar.bz2" + +inherit flow-lossage + +EXTRA_OEMAKE= + +do_compile() { + oe_runmake TARGET=mame JOY_SDL=1 SOUND_SDL=1 DISPLAY_METHOD=SDL \ + CC="${CC}" CXX="${CXX}" CFLAGS="-I. -Isrc -Isrc/include -Isrc/unix ${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}" \ + RANLIB="${RANLIB}" MY_CPU="${TARGET_ARCH}" ARCH="${TARGET_OS}" \ + GLLIBS="" STRIP="${STRIP}" AR="${AR}" +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 xmame.SDL ${D}${bindir} +} + |