OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit 193f1d3443793bb80843a1767f4ddbafe9fb7300 created 13 years 1 month 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 | |
8 | include $(TOPDIR)/rules.mk |
9 | |
10 | PKG_NAME:=NanoMap |
11 | PKG_VERSION:=0.3.1 |
12 | PKG_REV:=88239a2debeb5b068a6922c8251fcf08a2f755c8 |
13 | PKG_RELEASE:=1 |
14 | |
15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
16 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/nanomap.git |
17 | PKG_SOURCE_PROTO:=git |
18 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
19 | PKG_SOURCE_VERSION:=$(PKG_REV) |
20 | |
21 | include $(INCLUDE_DIR)/package.mk |
22 | $(call include_mk,qmake.mk) |
23 | |
24 | define 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/ |
29 | endef |
30 | |
31 | define Package/NanoMap |
32 | $(call Package/NanoMap/Default) |
33 | DEPENDS:=+qt4 +qt4-gui +qt4-network +dejavu-fonts-ttf |
34 | endef |
35 | |
36 | define Package/NanoMap-maps |
37 | $(call Package/NanoMap/Default) |
38 | TITLE+=(Sample Maps) |
39 | DEPENDS:=+NanoMap |
40 | endef |
41 | |
42 | TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib |
43 | |
44 | define Build/Prepare |
45 | $(call Build/Prepare/Default) |
46 | (\ |
47 | cd $(PKG_BUILD_DIR); \ |
48 | echo "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 ; \ |
49 | echo "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 ; \ |
50 | echo "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 ; \ |
51 | echo "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 ; \ |
52 | echo "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 ; \ |
53 | echo "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 ; \ |
54 | echo "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 ; \ |
55 | echo "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 ; \ |
56 | echo "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 ; \ |
57 | echo "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 ; \ |
58 | echo "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 ; \ |
59 | echo "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 ; \ |
60 | echo "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 ; \ |
61 | echo "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 ; \ |
62 | echo "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 | ) |
64 | endef |
65 | |
66 | define Build/Configure |
67 | $(call Build/Configure/Qmake,nanomap) |
68 | endef |
69 | |
70 | define 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 |
74 | endef |
75 | |
76 | define Package/NanoMap-maps/install |
77 | $(INSTALL_DIR) $(1)/root |
78 | $(CP) ./files/Maps/ $(1)/root/ |
79 | endef |
80 | |
81 | $(eval $(call BuildPackage,NanoMap)) |
82 | $(eval $(call BuildPackage,NanoMap-maps)) |
83 |