From 39a5e3c55579c8a00c7fcf750cc564556e017f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 25 Apr 2014 10:01:04 +0200 Subject: [PATCH] z80: initial add MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit contains colour genie and trs80 emulator Signed-off-by: Andreas Müller --- recipes-emulators/z80/files/cgenie.desktop | 8 ++++ recipes-emulators/z80/files/trs80.desktop | 8 ++++ recipes-emulators/z80/z80_git.bb | 46 ++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 recipes-emulators/z80/files/cgenie.desktop create mode 100644 recipes-emulators/z80/files/trs80.desktop create mode 100644 recipes-emulators/z80/z80_git.bb diff --git a/recipes-emulators/z80/files/cgenie.desktop b/recipes-emulators/z80/files/cgenie.desktop new file mode 100644 index 0000000..a483a3e --- /dev/null +++ b/recipes-emulators/z80/files/cgenie.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Colour Genie Emulator +Path=/usr/share +Exec=cgenie +Terminal=false +StartupNotify=false +Categories=Game diff --git a/recipes-emulators/z80/files/trs80.desktop b/recipes-emulators/z80/files/trs80.desktop new file mode 100644 index 0000000..cad0ffd --- /dev/null +++ b/recipes-emulators/z80/files/trs80.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=TRS80 Emulator +Path=/usr/share +Exec=trs80 +Terminal=false +StartupNotify=false +Categories=Game diff --git a/recipes-emulators/z80/z80_git.bb b/recipes-emulators/z80/z80_git.bb new file mode 100644 index 0000000..b0c2637 --- /dev/null +++ b/recipes-emulators/z80/z80_git.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "Radio Shack® TRS-80 and the EACA Colour Genie EG2000 emulator" +HOMEPAGE = "http://pmbits.de/40846.html" +AUTHOR = "Jürgen Buchmüller" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" + +SRC_URI = " \ + git://github.com/schnitzeltony/z80.git;branch=master \ + file://cgenie.desktop \ + file://trs80.desktop \ +" + +SRCREV= "6f293d191ec34ccb5c3610a764fc0f28e7de5dea" +PV = "0.3.1+git${SRCPV}" + +inherit pkgconfig + +DEPENDS = "expat libsdl" + +S = "${WORKDIR}/git" + +do_compile() { + SDL_INC=$(pkg-config --cflags sdl) + SDL_LIB=$(pkg-config --libs sdl) + EXPAT_LIB=$(pkg-config --libs expat) + + mkdir -p ${S}/obj/trs80 + mkdir -p ${S}/obj/cgenie + + oe_runmake "CFLAGS=${CFLAGS} -I${STAGING_INCDIR} ${SDL_INC} -I${S}/include" "LD=${CC}" "LDFLAGS=${LDFLAGS} ${SDL_LIB} ${EXPAT_LIB}" +} + +do_install() { + install -d ${D}/${bindir} + install -m 0755 ${S}/bin/* ${D}/${bindir} + + install -d ${D}/${datadir}/cgenie + install -d ${D}/${datadir}/trs80 + cp -rf ${S}/cgenie/* ${D}/${datadir}/cgenie + cp -rf ${S}/trs80/* ${D}/${datadir}/trs80 + + install -d ${D}/${datadir}/applications + install -m 0644 ${WORKDIR}/*.desktop ${D}/${datadir}/applications +} + +FILES_${PN} += "${datadir}/cgenie ${datadir}/trs80"