summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/scummvm/files/openmoko/scummvm.desktop12
-rw-r--r--packages/scummvm/files/scummvm.desktop2
-rw-r--r--packages/scummvm/scummvm_0.12.0.bb40
3 files changed, 53 insertions, 1 deletions
diff --git a/packages/scummvm/files/openmoko/scummvm.desktop b/packages/scummvm/files/openmoko/scummvm.desktop
new file mode 100644
index 0000000000..96c025050e
--- /dev/null
+++ b/packages/scummvm/files/openmoko/scummvm.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=ScummVM
+Name[pl]=ScummVM
+Comment=Interpreter for several adventure games
+Comment[pl]=Interpreter graficznych gier przygodowych
+Exec=openmoko-scummvm
+Icon=scummvm.xpm
+Terminal=false
+Type=Application
+Categories=Application;Game;AdventureGame;
+StartupNotify=false
diff --git a/packages/scummvm/files/scummvm.desktop b/packages/scummvm/files/scummvm.desktop
index 96c025050e..5a0f88b355 100644
--- a/packages/scummvm/files/scummvm.desktop
+++ b/packages/scummvm/files/scummvm.desktop
@@ -4,7 +4,7 @@ Name=ScummVM
Name[pl]=ScummVM
Comment=Interpreter for several adventure games
Comment[pl]=Interpreter graficznych gier przygodowych
-Exec=openmoko-scummvm
+Exec=scummvm
Icon=scummvm.xpm
Terminal=false
Type=Application
diff --git a/packages/scummvm/scummvm_0.12.0.bb b/packages/scummvm/scummvm_0.12.0.bb
new file mode 100644
index 0000000000..8a45f0e285
--- /dev/null
+++ b/packages/scummvm/scummvm_0.12.0.bb
@@ -0,0 +1,40 @@
+require scummvm.inc
+
+CCACHE = ""
+
+DEPENDS = "virtual/libsdl libvorbis libogg zlib \
+ ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad mpeg2dec', d)}"
+
+SRC_URI += " file://scummvm.desktop "
+
+SRC_URI_append_openmoko = " file://openmoko-scummvm "
+
+
+SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"
+
+EXTRA_OECONF += " \
+ --disable-scumm-7-8 \
+ --disable-he \
+ "
+
+do_compile() {
+ oe_runmake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS} ${@base_conditional('ENTERPRISE_DISTRO', '1', '', '-lmpeg2', d)}" \
+ DEFINES="-DUNIX -DSCUMM_NEED_ALIGNMENT -DUSE_VORBIS -DUSE_ZLIB -DUSE_MPEG2 ${@base_conditional('ENTERPRISE_DISTRO', '1', '', '-DUSE_MAD -DUSE_MPEG2', d)}"
+}
+
+
+do_install_append() {
+ if [ -f ${WORKDIR}/openmoko-scummvm ]; then
+ install -d ${D}${bindir}
+ install -m 0755 ${WORKDIR}/openmoko-scummvm ${D}${bindir}/openmoko-scummvm
+ fi
+ if [ -f ${WORKDIR}/scummvm.desktop ]; then
+ install -d ${D}${datadir}/applications
+ install -m 0644 ${WORKDIR}/scummvm.desktop ${D}${datadir}/applications
+ fi
+ install -d ${D}${datadir}/scummvm
+ install -m 0644 gui/themes/modern.ini ${D}${datadir}/scummvm/
+ install -m 0644 gui/themes/modern.zip ${D}${datadir}/scummvm/
+}