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.

51 lines
1.3 KiB

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