OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=nlove |
| 4 | PKG_REV:=494 |
| 5 | PKG_VERSION:=r$(PKG_REV) |
| 6 | PKG_RELEASE:=2 |
| 7 | |
| 8 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 9 | PKG_SOURCE_URL:=https://bitbucket.org/bartbes/nlove |
| 10 | PKG_SOURCE_PROTO:=hg |
| 11 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
| 12 | PKG_SOURCE_VERSION:=$(PKG_REV) |
| 13 | |
| 14 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 15 | |
| 16 | include $(INCLUDE_DIR)/package.mk |
| 17 | |
| 18 | define Package/nlove |
| 19 | SECTION:=games |
| 20 | CATEGORY:=Games |
| 21 | TITLE:=LÖVE |
| 22 | DEPENDS:=+libphysfs +libsdl +libsdl-image +libsdl-gfx +libsdl-mixer +lua +libvorbisidec +libvorbis |
| 23 | URL:=http://bartbes.ath.cx/ |
| 24 | endef |
| 25 | |
| 26 | define Package/nlove/description |
| 27 | The LÖVE 2D lua game engine. |
| 28 | endef |
| 29 | |
| 30 | define Build/Configure |
| 31 | endef |
| 32 | |
| 33 | define Build/Compile |
| 34 | (cd $(PKG_BUILD_DIR);\ |
| 35 | STAGING_DIR="$(STAGING_DIR)" \ |
| 36 | CFLAGS="-fhonour-copts -std=gnu99" \ |
| 37 | PLATFORM="NanoNote" \ |
| 38 | platform/nlove/build.sh);$ |
| 39 | endef |
| 40 | |
| 41 | define Package/nlove/install |
| 42 | $(INSTALL_DIR) $(1)/usr/bin |
| 43 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/nlove $(1)/usr/bin/ |
| 44 | $(INSTALL_BIN) $(FILES_DIR)/nlove-run $(1)/usr/bin/ |
| 45 | endef |
| 46 | |
| 47 | $(eval $(call BuildPackage,nlove)) |
| 48 |
