diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | README | 11 | ||||
-rw-r--r-- | backends/platform/maemo/Makefile | 72 | ||||
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | dists/maemo/scummvm.desktop | 11 | ||||
-rw-r--r-- | dists/maemo/scummvm.wrapper | 6 |
6 files changed, 45 insertions, 62 deletions
@@ -19,6 +19,7 @@ For a more comprehensive changelog for the latest experimental SVN code, see: New Ports: - Added iPhone port. + - Added Maemo port for Nokia Internet tablets. General: - Added ARM assembly routines for code in the sound mixer and SCUMM @@ -719,6 +719,7 @@ Supported platforms include (but are not limited to): PlayStation Portable RISC OS Symbian + Maemo (Nokia Internet tablets 770, N800, N810) The Dreamcast port does not support The Curse of Monkey Island, nor The Dig. The PalmOS port does not support The Curse of Monkey Island, Beneath a Steel @@ -1778,6 +1779,16 @@ messages (see http://www.sysinternals.com/ntw2k/freeware/debugview.shtml). * Please refer to: http://wiki.scummvm.org/index.php/Compiling_ScummVM/iPhone + Maemo: + * Get Scratchbox environment with Maemo 2.2 rootstrap (2.2 is for 770 and up) + * Install limbad, Tremor, FLAC, libmpeg2 from source + * patch scummvm source (some stuff is currently too dirty to be in svn directly) + patch -p1 < backends/platform/maemo/scummvm-0.11.0-maemo.patch + * go to backends/platform/maemo + * run 'make config' + * run 'make scummvm' + * create your debian/changelog in top directory + * run 'make deb' in backends/platform/maemo ------------------------------------------------------------------------ Good Luck and Happy Adventuring! diff --git a/backends/platform/maemo/Makefile b/backends/platform/maemo/Makefile index 4ef251e356..f70a00e490 100644 --- a/backends/platform/maemo/Makefile +++ b/backends/platform/maemo/Makefile @@ -1,69 +1,19 @@ -# ScummVM Maemo MakeFile -# $URL$ -# $Id$ +.PHONY: all -#control build -DISABLE_HQ_SCALERS = true +all: -#DISABLE_SCUMM = 1 -#DISABLE_HE = 1 -DISABLE_AGOS = 1 -DISABLE_SKY = 1 -DISABLE_SWORD1 = 1 -DISABLE_SWORD2 = 1 -DISABLE_QUEEN = 1 -DISABLE_KYRA = 1 -DISABLE_SAGA = 1 -DISABLE_GOB = 1 -DISABLE_LURE = 1 -DISABLE_CINE = 1 -DISABLE_AGI = 1 -srcdir = ../../.. -VPATH = $(srcdir) +SRCDIR = ../../.. -CXX := g++ -EXECUTABLE := scummvm +config: + cd $(SRCDIR) ; CXXFLAGS="-Os -mcpu=arm926ej-s -fomit-frame-pointer -DMAEMO_SDL" ./configure --host=arm-linux --prefix=/usr --disable-debug --disable-mt32emu --disable-hq-scalers --with-tremor-prefix=/usr --enable-tremor --with-zlib-prefix=/usr --enable-zlib --with-mad-prefix=/usr --enable-mad --enable-flac --disable-fluidsynth -INCDIR = $(srcdir)/ . $(srcdir)/engines/ +scummvm: + cd $(SRCDIR) ; make + echo "If there is compiler crash (in Kyra engine) then cd ../../.. and copy/run last line with -O3 instead of -Os and re-run make" +# cp $(SRCDIR)/scummvm . -CXXFLAGS := -g -ansi -W -Wno-unused-parameter -CXXFLAGS += `pkg-config --cflags gconf-2.0 hildon-libs gtk+-2.0 libosso gdk-2.0` -CXXFLAGS += $(addprefix -I,$(INCDIR)) -I. -Wall $(CXXFLAGS) -CXXFLAGS += -O -Wuninitialized -CXXFLAGS += -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -# Even more warnings... -CXXFLAGS += -pedantic -Wpointer-arith -Wcast-qual -Wconversion -CXXFLAGS += -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor -CXXFLAGS += -Wno-reorder -Wwrite-strings -fcheck-new -LIBS += -lz -L/usr/lib -lSDL -lpthread -lXsp -losso -LIBS += `pkg-config --libs gconf-2.0 hildon-libs gtk+-2.0 libosso gdk-2.0` -INCLUDES += -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -OBJS += -DEFINES += -DUNIX -DNONSTANDARD_PORT -D__MAEMO__ -LDFLAGS += - -RANLIB := ranlib -INSTALL := install -AR := ar cru -MKDIR := mkdir -p -ECHO := printf -CAT := cat -RM := rm -f -RM_REC := rm -f -r -CP := cp - -OBJS := main.o maemo-sdl.o - -MODULE_DIRS += . - - -BACKEND := sdl -MODULES += backends/platform/sdl base -MODULE_DIRS += . - -HAVE_GCC3 = 1 - -include $(srcdir)/Makefile.common +deb: $(SRCDIR)/scummvm + cd $(SRCDIR) ; dpkg-buildpackage -rfakeroot -b -nc @@ -1332,7 +1332,11 @@ EOF fi if test "$_flac" = yes ; then _def_flac='#define USE_FLAC' - LIBS="$LIBS $FLAC_LIBS $OGG_LIBS -lFLAC -logg" + if test "$_ogg" = yes ; then + LIBS="$LIBS $FLAC_LIBS $OGG_LIBS -lFLAC -logg" + else + LIBS="$LIBS $FLAC_LIBS -lFLAC" + fi INCLUDES="$INCLUDES $FLAC_CFLAGS" add_to_config_mk_if_no no 'USE_FLAC = 1' else diff --git a/dists/maemo/scummvm.desktop b/dists/maemo/scummvm.desktop new file mode 100644 index 0000000000..25a32727bb --- /dev/null +++ b/dists/maemo/scummvm.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Name=ScummVM +Exec=/usr/games/scummvm +Icon=scummvm +X-Icon-path=/usr/share/icons +X-Window-Icon=scummvm +X-HildonDesk-ShowInToolbar=true +X-Osso-Type=application/x-executable diff --git a/dists/maemo/scummvm.wrapper b/dists/maemo/scummvm.wrapper new file mode 100644 index 0000000000..f3ab6508aa --- /dev/null +++ b/dists/maemo/scummvm.wrapper @@ -0,0 +1,6 @@ +#!/bin/sh +# wrapper for proper WM_CLASS name in SDL apps (needed for icon in taskbar) +#BASEDIR=`dirname $0` +BASENAME=`basename $0` +export SDL_VIDEO_X11_WMCLASS=${BASENAME} +exec ${0}.bin "$@" |