Root/NanoMap/Makefile

Source at commit 193f1d3443793bb80843a1767f4ddbafe9fb7300 created 9 years 5 months ago.
By kyak, NanoMap: install monav libs
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/Prepare
45    $(call Build/Prepare/Default)
46    (\
47cd $(PKG_BUILD_DIR); \
48echo "QMAKE_UIC=$(STAGING_DIR_HOST)/bin/uic" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
49echo "QMAKE_MOC=$(STAGING_DIR_HOST)/bin/moc" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
50echo "QMAKE_RCC=$(STAGING_DIR_HOST)/bin/rcc" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
51echo "QMAKE_CC=$(TARGET_CC)" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
52echo "QMAKE_CXX=$(TARGET_CXX)" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
53echo "QMAKE_LINK=$(TARGET_CXX)" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
54echo "QMAKE_LIBS+=$(INTL_LDFLAGS)" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
55echo "QMAKE_LIBS+=$(ICONV_LDFLAGS)" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
56echo "QMAKE_LIBS+=-L$(STAGING_DIR)/usr/lib" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
57echo "QMAKE_LIBS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
58echo "INCLUDEPATH += $(STAGING_DIR)/usr/include" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
59echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/Qt" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
60echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtGui" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
61echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtCore" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
62echo "INCLUDEPATH += $(STAGING_DIR)/usr/include/QtNetwork" | tee -a nanomap.pro app.pro monav/monav.pro monav/contractionhierarchies/contractionhierarchiesclient.pro monav/gpsgrid/gpsgridclient.pro monav/unicodetournamenttrie/unicodetournamenttrieclient.pro ; \
63)
64endef
65
66define Build/Configure
67    $(call Build/Configure/Qmake,nanomap)
68endef
69
70define Package/NanoMap/install
71    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/monav
72    $(INSTALL_BIN) $(PKG_BUILD_DIR)/NanoMap $(1)/usr/bin/
73    $(INSTALL_BIN) $(PKG_BUILD_DIR)/monav/*.so $(1)/usr/lib/monav
74endef
75
76define Package/NanoMap-maps/install
77    $(INSTALL_DIR) $(1)/root
78    $(CP) ./files/Maps/ $(1)/root/
79endef
80
81$(eval $(call BuildPackage,NanoMap))
82$(eval $(call BuildPackage,NanoMap-maps))
83

Archive Download this file



interactive