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.

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