1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #
  2. # Copyright (C) 2015 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:=rtl-ais
  8. PKG_VERSION:=20151213
  9. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/dgiardini/rtl-ais.git
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_VERSION:=b805be0164475e58a73b57763a8cbbf8a2bd0ded
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/rtl-ais
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=rtl-sdr AIS dual channel tuner
  23. DEPENDS:=+libpthread +librtlsdr
  24. URL:=https://github.com/dgiardini/rtl-ais
  25. endef
  26. define Package/rtl-ais/description
  27. rtl_ais uses a rtl2832u dvb-t dongle to tune AIS (Automatic Identification
  28. System) used on ships and by vessel traffic services
  29. endef
  30. define Package/rtl-ais/conffiles
  31. /etc/config/rtl_ais
  32. endef
  33. define Package/rtl-ais/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rtl_ais $(1)/usr/bin/
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_BIN) ./files/rtl_ais.init $(1)/etc/init.d/rtl_ais
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_DATA) ./files/uci_rtl_ais $(1)/etc/config/rtl_ais
  40. endef
  41. $(eval $(call BuildPackage,rtl-ais))