Root/gottet/Makefile

1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=gottet
9PKG_VERSION:=1.0.4
10PKG_RELEASE:=1
11PKG_REV:=41f066f7801fbf9a10b90ba779076a03eb5353c3
12
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=https://github.com/gottcode/gottet.git
15PKG_SOURCE_PROTO:=git
16PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17PKG_SOURCE_VERSION:=$(PKG_REV)
18
19
20include $(INCLUDE_DIR)/package.mk
21
22$(call include_mk,qmake.mk)
23
24define Package/gottet
25    SECTION:=games
26    CATEGORY:=Games
27    TITLE:=Tetris clone, written in Qt
28    DEPENDS:=+qt4 +qt4-gui +dejavu-fonts-ttf
29endef
30
31define Build/Prepare
32    $(call Build/Prepare/Default)
33    (\
34cd $(PKG_BUILD_DIR); \
35echo "QMAKE_LIBS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" >> gottet.pro; \
36echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtGui" >> gottet.pro; \
37echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtCore" >> gottet.pro; \
38)
39endef
40
41define Build/Configure
42    $(call Build/Configure/Qmake,gottet)
43endef
44
45define Package/gottet/install
46    $(INSTALL_DIR) $(1)/usr/bin
47    $(INSTALL_BIN) $(PKG_BUILD_DIR)/gottet $(1)/usr/bin/
48endef
49
50$(eval $(call BuildPackage,gottet))
51

Archive Download this file



interactive