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.

70 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2013-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. PKG_NAME:=dump1090
  9. PKG_VERSION:=2014-10-27
  10. PKG_RELEASE:=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=git://github.com/MalcolmRobb/dump1090.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=65751ed6e9e20dcd6ab4e693cc5c80c698664da8
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  17. PKG_LICENSE:=BSD-3c
  18. PKG_CONFIG_DEPENDS:= \
  19. CONFIG_DUMP1090_DUMP \
  20. CONFIG_DUMP1090_WWW \
  21. CONFIG_DUMP1090_VIEW
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/dump1090
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=Mode S decoder for the Realtek RTL2832U
  27. URL:=https://github.com/MalcolmRobb/dump1090
  28. DEPENDS:=+libpthread +librtlsdr
  29. endef
  30. define Package/dump1090/config
  31. source "$(SOURCE)/Config.in"
  32. endef
  33. define Package/dump1090/description
  34. Dump1090 is a Mode S decoder specifically designed for RTLSDR devices.
  35. Embedded HTTP server that displays the currently detected aircrafts on
  36. Google Maps. Network output in Basestation and AVR formats.
  37. endef
  38. MAKE_FLAGS += \
  39. CFLAGS="$(TARGET_CFLAGS)"
  40. define Package/dump1090/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. ifneq ($(CONFIG_DUMP1090_DUMP),)
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(INSTALL_BIN) files/dump1090.init $(1)/etc/init.d/dump1090
  45. $(INSTALL_DIR) $(1)/etc/config
  46. $(INSTALL_CONF) files/dump1090.config $(1)/etc/config/dump1090
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump1090 $(1)/usr/bin
  48. ifneq ($(CONFIG_DUMP1090_WWW),)
  49. $(INSTALL_DIR) $(1)/usr/share/dump1090
  50. $(CP) $(PKG_BUILD_DIR)/public_html/* $(1)/usr/share/dump1090
  51. endif
  52. endif
  53. ifneq ($(CONFIG_DUMP1090_VIEW),)
  54. $(INSTALL_BIN) $(PKG_BUILD_DIR)/view1090 $(1)/usr/bin
  55. endif
  56. endef
  57. $(eval $(call BuildPackage,dump1090))