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.

61 lines
1.6 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-08-22
  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:=a82df07c0c0a750d58610bf3c3ece77482f3a58c
  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. include $(INCLUDE_DIR)/package.mk
  19. define Package/dump1090
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Mode S decoder for the Realtek RTL2832U
  23. URL:=https://github.com/MalcolmRobb/dump1090
  24. DEPENDS:=+libpthread +librtlsdr
  25. endef
  26. define Package/dump1090/config
  27. source "$(SOURCE)/Config.in"
  28. endef
  29. define Package/dump1090/description
  30. Dump1090 is a Mode S decoder specifically designed for RTLSDR devices.
  31. Embedded HTTP server that displays the currently detected aircrafts on
  32. Google Maps. Network output in Basestation and AVR formats.
  33. endef
  34. MAKE_FLAGS += \
  35. CFLAGS="$(TARGET_CFLAGS)"
  36. define Package/dump1090/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. ifneq ($(CONFIG_DUMP1090_DUMP),)
  39. $(CP) $(PKG_BUILD_DIR)/dump1090 $(1)/usr/bin
  40. ifneq ($(CONFIG_DUMP1090_WWW),)
  41. $(INSTALL_DIR) $(1)/usr/share/dump1090
  42. $(CP) $(PKG_BUILD_DIR)/public_html/* $(1)/usr/share/dump1090
  43. endif
  44. endif
  45. ifneq ($(CONFIG_DUMP1090_VIEW),)
  46. $(CP) $(PKG_BUILD_DIR)/view1090 $(1)/usr/bin
  47. endif
  48. endef
  49. $(eval $(call BuildPackage,dump1090))