lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1412B)


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