Date:2010-10-30 12:35:36 (9 years 8 months ago)
Author:bartbes
Commit:c6552a1d2cb4a4f057b9050992858b2386d2fabf
Message:Updated to new version of nlove (and now uses hg repo)

Files: nlove/Makefile (2 diffs)
nlove/patches/001-c99.patch (1 diff)
nlove/patches/001-cmake.patch (1 diff)
nlove/patches/002-deviceconfig.patch (1 diff)
nlove/patches/003-c99.patch (1 diff)

Change Details

nlove/Makefile
11include $(TOPDIR)/rules.mk
22
33PKG_NAME:=nlove
4PKG_VERSION:=0.0.2
4PKG_REV:=445
5PKG_VERSION:=r$(PKG_REV)
56PKG_RELEASE:=1
67
78PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8PKG_SOURCE_URL:=http://dl.dropbox.com/u/440010/nlove/
9PKG_CAT:=zcat
9PKG_SOURCE_URL:=https://bitbucket.org/bartbes/nlove
10PKG_SOURCE_PROTO:=hg
11PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
12PKG_SOURCE_VERSION:=$(PKG_REV)
1013
1114PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
1215
...... 
2528endef
2629
2730define Build/Configure
28    (cd $(PKG_BUILD_DIR);\
29     IN_OPENWRT=1 \
30     AR="$(TARGET_CROSS)ar" \
31     AS="$(TARGET_CC) -c $(TARGET_CFLAGS) $(TARGET_COPTS)" \
32     LD="$(TARGET_CROSS)ld" \
33     NM="$(TARGET_CROSS)nm" \
34     CC="$(TARGET_CC)" \
35     GCC="$(TARGET_CC)" \
36     CXX="$(TARGET_CROSS)g++" \
37     RANLIB="$(TARGET_CROSS)ranlib" \
38     STRIP="$(TARGET_CROSS)strip" \
39     OBJCOPY="$(TARGET_CROSS)objcopy" \
40     OBJDUMP="$(TARGET_CROSS)objdump" \
41     TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \
42     TARGET_CFLAGS="$(TARGET_CFLAGS) $(TARGET_COPTS)" \
43     TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
44     STAGING_DIR="$(STAGING_DIR)" \
45     CFLAGS="-fhonour-copts -std=gnu99" \
46     CXXFLAGS="-fhonour-copts" \
47    cmake . -DCMAKE_CXX_FLAGS=-g);$
4831endef
4932
5033define Build/Compile
51    (cd $(PKG_BUILD_DIR); \
52    CFLAGS="-fhonour-copts --std=gnu99" \
53    CXXFLAGS="-fhonour-copts --std=gnu99" \
54    make);$
34    (cd $(PKG_BUILD_DIR);\
35     STAGING_DIR="$(STAGING_DIR)" \
36     CFLAGS="-fhonour-copts -std=gnu99" \
37     PLATFORM="NanoNote" \
38    platform/nlove/build.sh);$
5539endef
5640
5741
nlove/patches/001-c99.patch
1--- nlove/src/common/runtime.h 2010-08-10 13:31:20.000000000 +0200
2@@ -25,6 +25,7 @@
3 #include "types.h"
4
5 // Lua
6+#define __STDC_VERSION__ 199901L
7 extern "C" {
8     #include <lua.h>
9     #include <lualib.h>
nlove/patches/001-cmake.patch
1+++ sdltest-2.2.0m/CMakeLists.txt 2010-08-04 12:23:43.000000000 +0200
2@@ -1,13 +1,13 @@
3 cmake_minimum_required (VERSION 2.8)
4
5-set(PHYSFS_INCLUDE /usr/include/)
6-set(PHYSFS_LIBRARY physfs)
7-set(LUA_INCLUDE /usr/include/lua5.1)
8-set(LUA_LIBRARY lua5.1)
9-set(SDL_INCLUDE /usr/include/SDL)
10-set(SDL_LIBRARY SDL SDL_image SDL_gfx SDL_mixer)
11-set(FREETYPE_INCLUDE /usr/include/freetype2)
12-set(FREETYPE_LIBRARY freetype)
13+set(PHYSFS_INCLUDE $ENV{STAGING_DIR}/usr/include/)
14+set(PHYSFS_LIBRARY $ENV{STAGING_DIR}/usr/lib/libphysfs.so)
15+set(LUA_INCLUDE $ENV{STAGING_DIR}/usr/include/lua)
16+set(LUA_LIBRARY $ENV{STAGING_DIR}/usr/lib/liblua.so crypt)
17+set(SDL_INCLUDE $ENV{STAGING_DIR}/usr/include/SDL)
18+set(SDL_LIBRARY $ENV{STAGING_DIR}/usr/lib/libSDL.so $ENV{STAGING_DIR}/usr/lib/libSDL_image.so $ENV{STAGING_DIR}/usr/lib/libSDL_gfx.so $ENV{STAGING_DIR}/usr/lib/libSDL_mixer.so)
19+set(FREETYPE_INCLUDE $ENV{STAGING_DIR}/usr/include/freetype2)
20+set(FREETYPE_LIBRARY $ENV{STAGING_DIR}/usr/lib/libfreetype.so)
21
22 include_directories(${PHYSFS_INCLUDE} ${LUA_INCLUDE} ${SDL_INCLUDE} $(FREETYPE_INCLUDE})
23 include_directories(".")
nlove/patches/002-deviceconfig.patch
1+++ sdltest-2.1.0m/common/config.h 2010-08-10 15:09:02.000000000 +0200
2@@ -35,6 +35,8 @@
3 # define LOVE_MACOS 1
4 #endif
5
6+#define LOVE_LINUX 1
7+
8 // Endianness.
9 #if defined(__i386__) || defined(__i386)
10 # define LOVE_LITTLE_ENDIAN 1
11@@ -43,6 +45,8 @@
12 # define LOVE_BIG_ENDIAN 1
13 #endif
14
15+#define LOVE_LITTLE_ENDIAN 1
16+
17 // Warnings.
18 #ifndef _CRT_SECURE_NO_WARNINGS
19 # define _CRT_SECURE_NO_WARNINGS
nlove/patches/003-c99.patch
1+++ sdltest-2.1.0m/common/runtime.h 2010-08-10 13:42:15.000000000 +0200
2@@ -25,6 +25,7 @@
3 #include "types.h"
4
5 // Lua
6+#define __STDC_VERSION__ 199901L
7 extern "C" {
8     #include <lua.h>
9     #include <lualib.h>

Archive Download the corresponding diff file



interactive