Root/NanoMap/Makefile

1#
2# Copyright (C) 2010 Sharism.cc
3# Author: Xiangfu Liu <xiangfu@sharism.cc>
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=NanoMap
11PKG_VERSION:=0.3.1
12PKG_REV:=88239a2debeb5b068a6922c8251fcf08a2f755c8
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=git://projects.qi-hardware.com/nanomap.git
17PKG_SOURCE_PROTO:=git
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19PKG_SOURCE_VERSION:=$(PKG_REV)
20
21include $(INCLUDE_DIR)/package.mk
22$(call include_mk,qmake.mk)
23
24define Package/NanoMap/Default
25    SECTION:=utils
26    CATEGORY:=Utilities
27    TITLE:=Qt4-based map viewer
28    URL:=http://projects.qi-hardware.com/index.php/p/nanomap/
29endef
30
31define Package/NanoMap
32    $(call Package/NanoMap/Default)
33    DEPENDS:=+qt4 +qt4-gui +qt4-network +dejavu-fonts-ttf
34endef
35
36define Package/NanoMap-maps
37    $(call Package/NanoMap/Default)
38    TITLE+=(Sample Maps)
39    DEPENDS:=+NanoMap
40endef
41
42TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
43
44define Build/Configure
45    $(call Build/Configure/Qmake,nanomap)
46endef
47
48define Package/NanoMap/install
49    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/monav
50    $(INSTALL_BIN) $(PKG_BUILD_DIR)/NanoMap $(1)/usr/bin/
51    $(INSTALL_BIN) $(PKG_BUILD_DIR)/monav/*.so $(1)/usr/lib/monav
52endef
53
54define Package/NanoMap-maps/install
55    $(INSTALL_DIR) $(1)/root
56    $(CP) ./files/Maps/ $(1)/root/
57endef
58
59$(eval $(call BuildPackage,NanoMap))
60$(eval $(call BuildPackage,NanoMap-maps))
61

Archive Download this file



interactive