Ticket #8778: scummvm-maemo-1.patch

File scummvm-maemo-1.patch, 5.5 KB (added by SF/fanous, 16 years ago)
  • scummvm-0.11

    old new  
    717717        PlayStation Portable
    718718        RISC OS
    719719        Symbian
    720 
     720        Maemo (Nokia Internet tablets 770, N800, N810)
     721       
    721722The Dreamcast port does not support The Curse of Monkey Island, nor The Dig.
    722723The PalmOS port does not support The Curse of Monkey Island, Beneath a Steel
    723724Sky, nor either Simon the Sorcerer 1 or 2. The Dig will only work on some
     
    17681769        * Please refer to:
    17691770          http://wiki.scummvm.org/index.php/Compiling_ScummVM/iPhone
    17701771
     1772     Maemo:
     1773        * Get Scratchbox environment with Maemo 2.2 rootstrap (2.2 is for 770 and up)
     1774        * Install limbad, Tremor, FLAC, libmpeg2 from source
     1775        * patch scummvm source (some stuff is currently too dirty to be in svn directly)
     1776          patch -p1 < backends/platform/maemo/scummvm-0.11.0-maemo.patch
     1777        * go to backends/platform/maemo
     1778        * run 'make config'
     1779        * run 'make scummvm'
     1780        * create your debian/changelog in top directory
     1781        * run 'make deb' in backends/platform/maemo
    17711782
    17721783------------------------------------------------------------------------
    17731784Good Luck and Happy Adventuring!
  • scummvm-0.11

    old new  
    1414
    1515 New Ports:
    1616   - Added iPhone port.
     17   - Added Maemo port for Nokia Internet tablets.
    1718 
    1819 General:
    1920   - Added ARM assembly routines for code in the sound mixer and SCUMM
  • dists/maemo/scummvm.desktop

    diff -Naur scummvm-0.11.orig/dists/maemo/scummvm.desktop scummvm-0.11/dists/maemo/scummvm.desktop
    old new  
     1[Desktop Entry]
     2Encoding=UTF-8
     3Version=1.0
     4Type=Application
     5Name=ScummVM
     6Exec=/usr/games/scummvm
     7Icon=scummvm
     8X-Icon-path=/usr/share/icons
     9X-Window-Icon=scummvm
     10X-HildonDesk-ShowInToolbar=true
     11X-Osso-Type=application/x-executable
  • dists/maemo/scummvm.wrapper

    diff -Naur scummvm-0.11.orig/dists/maemo/scummvm.wrapper scummvm-0.11/dists/maemo/scummvm.wrapper
    old new  
     1#!/bin/sh
     2# wrapper for proper WM_CLASS name in SDL apps (needed for icon in taskbar)
     3#BASEDIR=`dirname $0`
     4BASENAME=`basename $0`
     5export SDL_VIDEO_X11_WMCLASS=${BASENAME}
     6exec ${0}.bin "$@"
  • scummvm-0.11

    old new  
    13321332fi
    13331333if test "$_flac" = yes ; then
    13341334        _def_flac='#define USE_FLAC'
    1335         LIBS="$LIBS $FLAC_LIBS $OGG_LIBS -lFLAC -logg"
     1335        if test "$_ogg" = yes ; then
     1336                LIBS="$LIBS $FLAC_LIBS $OGG_LIBS -lFLAC -logg"
     1337        else
     1338                LIBS="$LIBS $FLAC_LIBS -lFLAC"
     1339        fi
    13361340        INCLUDES="$INCLUDES $FLAC_CFLAGS"
    13371341        add_to_config_mk_if_no no 'USE_FLAC = 1'
    13381342else
  • backends/platform/maemo/Makefile

    old new  
    1 # ScummVM Maemo MakeFile
    2 # $URL: https://svn.sourceforge.net/svnroot/scummvm/scummvm/trunk/backends/platform/maemo/Makefile $
    3 # $Id: Makefile 24008 2006-09-29 08:14:27Z sev $
    4 
    5 #control build
    6 DISABLE_HQ_SCALERS = true
    7 
    8 #DISABLE_SCUMM = 1
    9 #DISABLE_HE = 1
    10 DISABLE_AGOS = 1
    11 DISABLE_SKY = 1
    12 DISABLE_SWORD1 = 1
    13 DISABLE_SWORD2 = 1
    14 DISABLE_QUEEN = 1
    15 DISABLE_KYRA = 1
    16 DISABLE_SAGA = 1
    17 DISABLE_GOB = 1
    18 DISABLE_LURE = 1
    19 DISABLE_CINE = 1
    20 DISABLE_AGI = 1
    21 
    22 srcdir = ../../..
    23 VPATH = $(srcdir)
    24 
    25 CXX := g++
    26 EXECUTABLE  := scummvm
    27 
    28 INCDIR = $(srcdir)/ . $(srcdir)/engines/
    29 
    30 CXXFLAGS := -g -ansi -W -Wno-unused-parameter
    31 CXXFLAGS += `pkg-config --cflags gconf-2.0 hildon-libs gtk+-2.0 libosso gdk-2.0`
    32 CXXFLAGS += $(addprefix -I,$(INCDIR)) -I. -Wall $(CXXFLAGS)
    33 CXXFLAGS += -O -Wuninitialized
    34 CXXFLAGS += -Wno-long-long -Wno-multichar -Wno-unknown-pragmas
    35 # Even more warnings...
    36 CXXFLAGS += -pedantic -Wpointer-arith -Wcast-qual -Wconversion
    37 CXXFLAGS += -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor
    38 CXXFLAGS += -Wno-reorder -Wwrite-strings -fcheck-new
    39 
    40 LIBS     += -lz -L/usr/lib -lSDL -lpthread -lXsp -losso
    41 LIBS     += `pkg-config --libs gconf-2.0 hildon-libs gtk+-2.0 libosso gdk-2.0`
    42 INCLUDES += -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include
    43 OBJS     +=
    44 DEFINES  += -DUNIX -DNONSTANDARD_PORT -D__MAEMO__
    45 LDFLAGS  +=
    46 
    47 RANLIB  := ranlib
    48 INSTALL := install
    49 AR      := ar cru
    50 MKDIR   := mkdir -p
    51 ECHO    := printf
    52 CAT     := cat
    53 RM      := rm -f
    54 RM_REC  := rm -f -r
    55 CP      := cp
    56 
    57 OBJS := main.o maemo-sdl.o
    58 
    59 MODULE_DIRS += .
    60 
    61 
    62 BACKEND := sdl
    63 MODULES +=  backends/platform/sdl base
    64 MODULE_DIRS += .
     1.PHONY: all
    652
    66 HAVE_GCC3 = 1
     3all:
     4
     5
     6SRCDIR = ../../..
     7
     8config:
     9        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
     10
     11scummvm:
     12        cd $(SRCDIR) ; make
     13        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"
     14#       cp $(SRCDIR)/scummvm .
     15
     16
     17deb: $(SRCDIR)/scummvm
     18        cd $(SRCDIR) ; dpkg-buildpackage -rfakeroot -b -nc
    6719
    68 include $(srcdir)/Makefile.common
    6920