diff options
| author | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
|---|---|---|
| committer | David Kühling <dvdkhlng@gmx.de> | 2010-09-18 20:47:21 +0200 |
| commit | 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 (patch) | |
| tree | 58590463ada82a27eca0889312c32450358249a8 /nlove/Makefile | |
| download | qipackages-fork-4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09.tar.gz | |
Major overhaul and cleanup. Support for .ubi image file installations.grafted
Only compile&install a minimum host Gforth for bootstrapping the target
Gforth, removing strange emacs-dependencies that cropped up earlier.
Image file can now be built on the nanonote using 'gforth-update-image'
command. Also, Gforth is now run through a wrapper that calls
'gforth-update-image' automatically, if necessary.
Also first attempts at supporting libcc C-interface libraries pre-compiled on
the host.
Tested to compile on amd64 and i386.
Diffstat (limited to 'nlove/Makefile')
| -rwxr-xr-x | nlove/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/nlove/Makefile b/nlove/Makefile new file mode 100755 index 0000000..6328b0a --- /dev/null +++ b/nlove/Makefile @@ -0,0 +1,65 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=nlove +PKG_VERSION:=0.0.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://dl.dropbox.com/u/440010/nlove/ +PKG_CAT:=zcat + +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 + URL:=http://bartbes.ath.cx/ +endef + +define Package/nlove/description + The LÖVE 2D lua game engine. +endef + +define Build/Configure + (cd $(PKG_BUILD_DIR);\ + IN_OPENWRT=1 \ + AR="$(TARGET_CROSS)ar" \ + AS="$(TARGET_CC) -c $(TARGET_CFLAGS) $(TARGET_COPTS)" \ + LD="$(TARGET_CROSS)ld" \ + NM="$(TARGET_CROSS)nm" \ + CC="$(TARGET_CC)" \ + GCC="$(TARGET_CC)" \ + CXX="$(TARGET_CROSS)g++" \ + RANLIB="$(TARGET_CROSS)ranlib" \ + STRIP="$(TARGET_CROSS)strip" \ + OBJCOPY="$(TARGET_CROSS)objcopy" \ + OBJDUMP="$(TARGET_CROSS)objdump" \ + TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ + TARGET_CFLAGS="$(TARGET_CFLAGS) $(TARGET_COPTS)" \ + TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \ + STAGING_DIR="$(STAGING_DIR)" \ + CFLAGS="-fhonour-copts -std=gnu99" \ + CXXFLAGS="-fhonour-copts" \ + cmake . -DCMAKE_CXX_FLAGS=-g);$ +endef + +define Build/Compile + (cd $(PKG_BUILD_DIR); \ + CFLAGS="-fhonour-copts --std=gnu99" \ + CXXFLAGS="-fhonour-copts --std=gnu99" \ + make);$ +endef + + +define Package/nlove/install + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/liblove.so $(1)/usr/lib/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/nlove $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,nlove)) |
