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.

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