You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.6 KiB

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