Przeglądaj źródła

rtklib: move to github, bump version to 2.4.2 p9

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
Nuno Goncalves 10 lat temu
rodzic
commit
33b8ef5e0c
1 zmienionych plików z 96 dodań i 0 usunięć
  1. 96
    0
      utils/rtklib/Makefile

+ 96
- 0
utils/rtklib/Makefile Wyświetl plik

@@ -0,0 +1,96 @@
1
+# 
2
+# Copyright (C) 2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+
7
+include $(TOPDIR)/rules.mk
8
+
9
+PKG_NAME:=rtklib
10
+PKG_VERSION:=2.4.2_p9
11
+PKG_RELEASE:=$(PKG_SOURCE_VERSION)
12
+
13
+PKG_SOURCE_PROTO:=git
14
+PKG_SOURCE_URL:=git://github.com/tomojitakasu/RTKLIB.git
15
+PKG_SOURCE_VERSION:=5592bb575ceb27f2ce0f0f5a84eda38497006c15
16
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
17
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18
+PKG_LICENSE:=BSD-2-Clause
19
+
20
+PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
21
+
22
+include $(INCLUDE_DIR)/package.mk
23
+
24
+define Package/rtklib/default
25
+  SUBMENU:=RTKLIB Suite
26
+  SECTION:=utils
27
+  CATEGORY:=Utilities
28
+  URL:=http://www.rtklib.com/
29
+  DEPENDS:=+libpthread +librt
30
+endef
31
+
32
+define Package/convbin
33
+$(call Package/rtklib/default)
34
+  TITLE:=RINEX Converter
35
+endef
36
+
37
+define Package/pos2kml
38
+$(call Package/rtklib/default)
39
+  TITLE:=Solution to KML converter
40
+endef
41
+
42
+define Package/rnx2rtkp
43
+$(call Package/rtklib/default)
44
+  TITLE:=Post-Processing Analysis
45
+endef
46
+
47
+define Package/rtkrcv
48
+$(call Package/rtklib/default)
49
+  TITLE:=Real-Time Positioning
50
+endef
51
+
52
+define Package/str2str
53
+$(call Package/rtklib/default)
54
+  TITLE:=Communication Server
55
+endef
56
+
57
+define Build/Compile
58
+	rm -rf $(PKG_INSTALL_DIR)
59
+	mkdir -p $(PKG_INSTALL_DIR)
60
+	$(MAKE) -C $(PKG_BUILD_DIR)/app/convbin/gcc CC="$(TARGET_CC) $(TARGET_CFLAGS)"
61
+	$(MAKE) -C $(PKG_BUILD_DIR)/app/pos2kml/gcc CC="$(TARGET_CC) $(TARGET_CFLAGS)"
62
+	$(MAKE) -C $(PKG_BUILD_DIR)/app/rnx2rtkp/gcc CC="$(TARGET_CC) $(TARGET_CFLAGS)"
63
+	$(MAKE) -C $(PKG_BUILD_DIR)/app/rtkrcv/gcc CC="$(TARGET_CC) $(TARGET_CFLAGS)"
64
+	$(MAKE) -C $(PKG_BUILD_DIR)/app/str2str/gcc CC="$(TARGET_CC) $(TARGET_CFLAGS)"
65
+endef
66
+
67
+define Package/convbin/install
68
+	$(INSTALL_DIR) $(1)/usr/bin
69
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/convbin/gcc/convbin $(1)/usr/bin/
70
+endef
71
+
72
+define Package/pos2kml/install
73
+	$(INSTALL_DIR) $(1)/usr/bin
74
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/pos2kml/gcc/pos2kml $(1)/usr/bin/
75
+endef
76
+
77
+define Package/rnx2rtkp/install
78
+	$(INSTALL_DIR) $(1)/usr/bin
79
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/rnx2rtkp/gcc/rnx2rtkp $(1)/usr/bin/
80
+endef
81
+
82
+define Package/rtkrcv/install
83
+	$(INSTALL_DIR) $(1)/usr/bin
84
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/rtkrcv/gcc/rtkrcv $(1)/usr/bin/
85
+endef
86
+
87
+define Package/str2str/install
88
+	$(INSTALL_DIR) $(1)/usr/bin
89
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/str2str/gcc/str2str $(1)/usr/bin/
90
+endef
91
+
92
+$(eval $(call BuildPackage,convbin))
93
+$(eval $(call BuildPackage,pos2kml))
94
+$(eval $(call BuildPackage,rnx2rtkp))
95
+$(eval $(call BuildPackage,rtkrcv))
96
+$(eval $(call BuildPackage,str2str))