Ticket #9057: scummvm-linuxmoto.patch

File scummvm-linuxmoto.patch, 7.2 KB (added by SF/lubomyr_ua, 15 years ago)
  • trunk/configure

     
    553553
    554554Configuration:
    555555  -h, --help             display this help and exit
    556   --backend=BACKEND      backend to build (sdl, dc, gp2x, gp2xwiz, iphone, morphos, nds, psp, wii, wince, null) [sdl]
     556  --backend=BACKEND      backend to build (sdl, dc, gp2x, gp2xwiz, iphone, morphos, nds, psp, wii, wince, linuxmoto, null) [sdl]
    557557
    558558Installation directories:
    559559  --prefix=DIR           use this prefix for installing ScummVM [/usr/local]
     
    794794        _host_os=linux
    795795        _host_cpu=arm
    796796        ;;
     797motoezx)
     798        _host_os=linux
     799        _host_cpu=arm
     800        _host_alias=arm-linux-gnu
     801        ;;
     802motomagx)
     803        _host_os=linux
     804        _host_cpu=arm
     805        _host_alias=arm-linux-gnueabi
     806        ;;
    797807arm-riscos)
    798808        _host_os=riscos
    799809        _host_cpu=arm
     
    12161226                        add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
    12171227                        add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
    12181228                        ;;
     1229                motoezx)
     1230                        echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
     1231                        DEFINES="$DEFINES -DUNIX -DMOTOEZX -DUSE_ARM_SMUSH_ASM"
     1232                        #not true for all ARM systems, but the interesting ones are all LE. Most (if not all) BE arm devices don't have a screen
     1233                        _endian=little
     1234                        _need_memalign=yes
     1235                        type_1_byte='char'
     1236                        type_2_byte='short'
     1237                        type_4_byte='int'
     1238                        add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
     1239                        add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
     1240                        _ar="$_host_alias-ar cru"
     1241                        _as="$_host_alias-as -mfpu=vfp"
     1242                        _ranlib=$_host_alias-ranlib
     1243                        _strip=$_host_alias-strip
     1244                        _backend="linuxmoto"
     1245                        ;;
     1246                motomagx)
     1247                        echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
     1248                        DEFINES="$DEFINES -DUNIX -DMOTOMAGX -DUSE_ARM_SMUSH_ASM"
     1249                        #not true for all ARM systems, but the interesting ones are all LE. Most (if not all) BE arm devices don't have a screen
     1250                        _endian=little
     1251                        _need_memalign=yes
     1252                        type_1_byte='char'
     1253                        type_2_byte='short'
     1254                        type_4_byte='int'
     1255                        add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
     1256                        add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
     1257                        _ar="$_host_alias-ar cru"
     1258                        _as="$_host_alias-as -mfpu=vfp"
     1259                        _ranlib=$_host_alias-ranlib
     1260                        _strip=$_host_alias-strip
     1261                        _backend="linuxmoto"
     1262                        ;;
    12191263                bfin*)
    12201264                        _need_memalign=yes
    12211265                        ;;
     
    20312075                LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
    20322076                DEFINES="$DEFINES -DSDL_BACKEND"
    20332077                ;;
     2078        linuxmoto)
     2079                find_sdlconfig
     2080                INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
     2081                LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
     2082                DEFINES="$DEFINES -DSDL_BACKEND -DLINUXMOTO"
     2083                ;;
    20342084        gp2x)
    20352085                find_sdlconfig
    20362086                INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
     
    22482298RANLIB := $_ranlib
    22492299STRIP := $_strip
    22502300AR := $_ar
     2301AS := $_as
    22512302WINDRES := $_windres
    22522303WIN32PATH=$_win32path
    22532304AOS4PATH=$_aos4path
  • trunk/gui/credits.h

     
    298298"C1""Fedora / RedHat",
    299299"C0""Willem Jan Palenstijn",
    300300"",
     301"C1""LinuxMoto",
     302"C0""Lubomyr Lisen",
     303"",
    301304"C1""Mac OS X",
    302305"C0""Max Horn",
    303306"C0""Oystein Eftevaag",
  • trunk/AUTHORS

     
    261261    Fedora / RedHat:
    262262       Willem Jan Palenstijn
    263263
     264    LinuxMoto (motoezx/motomagx)
     265       Lubomyr Lisen
     266
    264267    Mac OS X:
    265268       Max Horn             
    266269       Oystein Eftevaag     
  • trunk/backends/platform/sdl/sdl.cpp

     
    691691
    692692void OSystem_SDL::setupMixer() {
    693693        SDL_AudioSpec desired;
    694         SDL_AudioSpec obtained;
     694//      SDL_AudioSpec obtained;
    695695
    696696        // Determine the desired output sampling frequency.
    697697        _samplesPerSec = 0;
     
    721721        _mixer = new Audio::MixerImpl(this);
    722722        assert(_mixer);
    723723
    724         if (SDL_OpenAudio(&desired, &obtained) != 0) {
     724        if (SDL_OpenAudio(&desired, &_obtained) != 0) {
    725725                warning("Could not open audio device: %s", SDL_GetError());
    726726                _samplesPerSec = 0;
    727727                _mixer->setReady(false);
     
    729729                // Note: This should be the obtained output rate, but it seems that at
    730730                // least on some platforms SDL will lie and claim it did get the rate
    731731                // even if it didn't. Probably only happens for "weird" rates, though.
    732                 _samplesPerSec = obtained.freq;
     732                _samplesPerSec = _obtained.freq;
    733733                debug(1, "Output sample rate: %d Hz", _samplesPerSec);
    734734
    735735                // Tell the mixer that we are ready and start the sound processing
  • trunk/backends/platform/sdl/events.cpp

     
    186186        }
    187187
    188188        while (SDL_PollEvent(&ev)) {
     189                preprocessEvents(&ev);
    189190                switch (ev.type) {
    190191                case SDL_KEYDOWN:{
    191192                        b = event.kbd.flags = SDLModToOSystemKeyFlags(SDL_GetModState());
  • trunk/backends/platform/sdl/main.cpp

     
    3737#include "SymbianOs.h"
    3838#endif
    3939
    40 #if !defined(__MAEMO__) && !defined(_WIN32_WCE) && !defined(GP2XWIZ)
     40#if !defined(__MAEMO__) && !defined(_WIN32_WCE) && !defined(GP2XWIZ)&& !defined(LINUXMOTO)
    4141
    4242#if defined (WIN32)
    4343int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/,  LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
  • trunk/backends/platform/sdl/sdl.h

     
    207207        virtual bool hasFeature(Feature f);
    208208        virtual void setFeatureState(Feature f, bool enable);
    209209        virtual bool getFeatureState(Feature f);
     210        virtual bool preprocessEvents(SDL_Event *event) {};
    210211
    211212#ifdef USE_OSD
    212213        void displayMessageOnOSD(const char *msg);
     
    221222
    222223protected:
    223224        bool _inited;
     225        SDL_AudioSpec _obtained;
    224226
    225227#ifdef USE_OSD
    226228        SDL_Surface *_osdSurface;
  • trunk/ports.mk

     
    204204endif
    205205        $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip wiidist/scummvm/
    206206
    207 .PHONY: deb bundle osxsnap win32dist wiidist install uninstall
     207#
     208# Linuxmoto/motoezx specific
     209#
    208210
     211# Special target to create a motoezx snapshot
     212motoezx: $(EXECUTABLE)
     213        $(MKDIR) motoezx/scummvm
     214        $(CP) $(EXECUTABLE) motoezx/scummvm/
     215        $(STRIP) motoezx/scummvm/$(EXECUTABLE)
     216        $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) motoezx/scummvm/
     217        $(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip motoezx/scummvm/
     218        $(CP) $(srcdir)/backends/platform/linuxmoto/motoezx/* motoezx/scummvm/
     219        tar -C motoezx -cvzf motoezx/ScummVM.pkg scummvm
     220
     221.PHONY: deb bundle osxsnap win32dist wiidist motoezx install uninstall
     222
    209223#
    210224# ARM specific
    211225#