Root/nlove/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=nlove
4PKG_REV:=494
5PKG_VERSION:=r$(PKG_REV)
6PKG_RELEASE:=2
7
8PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9PKG_SOURCE_URL:=https://bitbucket.org/bartbes/nlove
10PKG_SOURCE_PROTO:=hg
11PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
12PKG_SOURCE_VERSION:=$(PKG_REV)
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16include $(INCLUDE_DIR)/package.mk
17
18define 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/
24endef
25
26define Package/nlove/description
27    The LÖVE 2D lua game engine.
28endef
29
30define Build/Configure
31endef
32
33define 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);$
39endef
40
41define 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/
45endef
46
47$(eval $(call BuildPackage,nlove))
48

Archive Download this file



interactive