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