nlove 0.70 beta for GP2X -- by Farox http://farox.rbnet.it

About nlove : A port of love to SDL systems.

I have recompiled the nlove runtime for GP2X .

Thanks to SIENCE and BARTBES for this wonderfull LOVE fork.

Like on the Caanoo release this come with Picklelauncher, so you
are able to use this great gui/launcher to test the love examples.

What is changed/needed in order to compile this version :

Compiled PHYSFS lib enabling all type of packers.
Compiled LUA lib with INUM patch as suggested by SIENCE .
Compiled MODPLUG lib to enable use of many types of music format.

06/feb/2011 -- updated the sources with the latest changes/improvement by BARTBES.

Created a codeblock project.

changed some defines in <common/config.h>:
#define LOVE_SCREEN_DEPTH 16

#define LOVE_HAS_FINITE

#define LOVE_PLATFORM "GP2X"

-------------------------------------------------------------------

changed <scripts/boot.lua> with GP2X info:
function love.init()

	local resTable = {
		Generic = { 800, 600 },
		Caanoo = { 320, 240 },
		Dingoo = { 320, 240 },
		GP2X = { 320, 240 },
		NanoNote = { 320, 240 }
	}
and added
if love._platform == "GP2X" then
		function love.joystickreleased()
			love.event.push("q")
		end
	end

updated and rebuilded the <scripts/boot.lua.h> with the new platform "GP2X"

--------------------------------------------------------------------

added new defines in project:
OLD_SDL
SDL_BUTTON_X1=26
SDL_BUTTON_X2=27

--------------------------------------------------------------------

OLD_SDL is used to avoid this linker error:
obj\modules\keyboard\sdl\Keyboard.o: In function `love::keyboard::sdl::Keyboard::getKeyRepeatDelay() const':
Keyboard.cpp:(.text+0x98): undefined reference to `SDL_GetKeyRepeat'
i don't know how to solve so i changed this file <modules/keyboard/sdl/keyboard.cpp>
with this
int Keyboard::getKeyRepeatDelay() const
	{
		int delay, interval = 0;
		#ifndef OLD_SDL
		SDL_GetKeyRepeat(&delay, &interval);
		#endif
		return delay;
	}

	int Keyboard::getKeyRepeatInterval() const
	{
		int delay, interval = 0;
		#ifndef OLD_SDL
		SDL_GetKeyRepeat(&delay, &interval);
		#endif
		return interval;
	}
	
--------------------------------------------------------------------

SDL_BUTTON_X1 and SDL_BUTTON_X2 is not declared on the current GP2X version of SDL lib, so after checking 
at love repo i found this solution:

AC_INIT([love], [20091130-aab90c59bf10])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([platform/unix])
AC_CONFIG_MACRO_DIR([platform/unix/m4])
AC_CONFIG_SRCDIR([src/love.cpp])
AM_INIT_AUTOMAKE([foreign -Wall foreign tar-ustar])
AC_PREFIX_DEFAULT([/usr])
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CXX
AC_ARG_ENABLE([old-sdl], [  --enable-old-sdl   Enabled compatibility for older version of SDL, missing some defines],
	AC_DEFINE([SDL_BUTTON_X1], 6, [Needed for old SDL versions])
	AC_DEFINE([SDL_BUTTON_X2], 7, [Needed for old SDL versions])
	AC_DEFINE([SDL_BUTTON_X1MASK], [SDL_BUTTON(SDL_BUTTON_X1)], [Needed for old SDL versions])
	AC_DEFINE([SDL_BUTTON_X2MASK], [SDL_BUTTON(SDL_BUTTON_X2)], [Needed for old SDL versions])
)
my used number are totally random and maybe incorrect, but is enough for gp2x, as they are not used i think.

-----------------------------------------------------------------------
