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.

80 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2013-2016 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. PKG_NAME:=dump1090
  9. PKG_VERSION:=2017-06-01
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/mutability/dump1090.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=b155fdb458c3241ab375d1f2b12fbb6a9f8a8a3a
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  16. PKG_MIRROR_HASH:=ff1bc142107d367c6c58ccc5dbcec822c251a683e43e3b771ab4a33a9012f602
  17. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  18. PKG_LICENSE:=GPL-2.0
  19. PKG_LICENSE_FILES:=COPYING LICENSE
  20. PKG_BUILD_DEPENDS:=libusb
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/dump1090/Default
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Mode S decoder for the Realtek RTL2832U
  26. URL:=https://github.com/mutability/dump1090
  27. DEPENDS:=+libpthread
  28. endef
  29. define Package/dump1090
  30. $(call Package/dump1090/Default)
  31. TITLE+= (dump1090)
  32. DEPENDS+= +librtlsdr +uhttpd
  33. endef
  34. define Package/view1090
  35. $(call Package/dump1090/Default)
  36. TITLE+= (view1090)
  37. endef
  38. define Package/dump1090/description
  39. Dump1090 is a Mode S decoder specifically designed for RTLSDR devices.
  40. endef
  41. define Package/view1090/description
  42. View1090 is a Mode S messages viewer for dump1090 devices.
  43. endef
  44. MAKE_FLAGS += \
  45. CFLAGS="$(TARGET_CFLAGS)" \
  46. UNAME="Linux"
  47. define Package/dump1090/install
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) files/dump1090.init $(1)/etc/init.d/dump1090
  50. $(INSTALL_DIR) $(1)/etc/config
  51. $(INSTALL_CONF) files/dump1090.config $(1)/etc/config/dump1090
  52. $(INSTALL_DIR) $(1)/etc/uci-defaults
  53. $(INSTALL_DATA) files/dump1090.default $(1)/etc/uci-defaults/00_uhttpd_dump1090
  54. $(INSTALL_DIR) $(1)/usr/share/dump1090
  55. $(CP) $(PKG_BUILD_DIR)/public_html/* $(1)/usr/share/dump1090
  56. $(LN) /var/run/dump1090 $(1)/usr/share/dump1090/data
  57. $(INSTALL_DIR) $(1)/usr/bin
  58. $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump1090 $(1)/usr/bin
  59. endef
  60. define Package/view1090/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_BUILD_DIR)/view1090 $(1)/usr/bin
  63. endef
  64. $(eval $(call BuildPackage,dump1090))
  65. $(eval $(call BuildPackage,view1090))