暂无描述

Makefile 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2013-2015 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:=2015-09-28
  10. PKG_RELEASE:=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=git://github.com/mutability/dump1090.git
  13. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_VERSION:=3b4c872ea67118de1399ba9979e71b504a36aca8
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILES:=COPYING,LICENSE
  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/mutability/dump1090
  25. DEPENDS:=+libpthread +librtlsdr
  26. endef
  27. define Package/dump1090
  28. $(call Package/dump1090/Default)
  29. TITLE+= (dump1090)
  30. endef
  31. define Package/view1090
  32. $(call Package/dump1090/Default)
  33. TITLE+= (view1090)
  34. endef
  35. define Package/dump1090/description
  36. Dump1090 is a Mode S decoder specifically designed for RTLSDR devices.
  37. endef
  38. define Package/view1090/description
  39. View1090 is a Mode S messages viewer for dump1090 devices.
  40. endef
  41. MAKE_FLAGS += \
  42. CFLAGS="$(TARGET_CFLAGS)"
  43. define Package/dump1090/install
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) files/dump1090.init $(1)/etc/init.d/dump1090
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_CONF) files/dump1090.config $(1)/etc/config/dump1090
  48. $(INSTALL_DIR) $(1)/usr/share/dump1090
  49. $(CP) $(PKG_BUILD_DIR)/public_html/* $(1)/usr/share/dump1090
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump1090 $(1)/usr/bin
  52. endef
  53. define Package/view1090/install
  54. $(INSTALL_DIR) $(1)/usr/bin
  55. $(INSTALL_BIN) $(PKG_BUILD_DIR)/view1090 $(1)/usr/bin
  56. endef
  57. $(eval $(call BuildPackage,dump1090))
  58. $(eval $(call BuildPackage,view1090))