summaryrefslogtreecommitdiff
path: root/nlove
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
committerDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
commit9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch)
tree370db60ffdc2ef840b7d1124d5a392f93bba3c9d /nlove
downloadqipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days.
Diffstat (limited to 'nlove')
-rwxr-xr-xnlove/Makefile47
-rw-r--r--nlove/patches/001-c99.patch10
2 files changed, 57 insertions, 0 deletions
diff --git a/nlove/Makefile b/nlove/Makefile
new file mode 100755
index 0000000..fb5deb7
--- /dev/null
+++ b/nlove/Makefile
@@ -0,0 +1,47 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=nlove
+PKG_REV:=464
+PKG_VERSION:=r$(PKG_REV)
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://bitbucket.org/bartbes/nlove
+PKG_SOURCE_PROTO:=hg
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/nlove
+ SECTION:=games
+ CATEGORY:=Games
+ TITLE:=LÖVE
+ DEPENDS:=+libphysfs +libsdl +libsdl-image +libsdl-gfx +libsdl-mixer +lua +libvorbisidec
+ URL:=http://bartbes.ath.cx/
+endef
+
+define Package/nlove/description
+ The LÖVE 2D lua game engine.
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+ (cd $(PKG_BUILD_DIR);\
+ STAGING_DIR="$(STAGING_DIR)" \
+ CFLAGS="-fhonour-copts -std=gnu99" \
+ PLATFORM="NanoNote" \
+ platform/nlove/build.sh);$
+endef
+
+
+define Package/nlove/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/nlove $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,nlove))
diff --git a/nlove/patches/001-c99.patch b/nlove/patches/001-c99.patch
new file mode 100644
index 0000000..9103164
--- /dev/null
+++ b/nlove/patches/001-c99.patch
@@ -0,0 +1,10 @@
+--- nlove/src/common/runtime.h 2010-08-10 13:31:20.000000000 +0200
++++ nlovem/src/common/runtime.h 2010-08-10 13:42:15.000000000 +0200
+@@ -25,6 +25,7 @@
+ #include "types.h"
+
+ // Lua
++#define __STDC_VERSION__ 199901L
+ extern "C" {
+ #include <lua.h>
+ #include <lualib.h>