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.

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