2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
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
17 PKG_MAINTAINER
:=Nuno Goncalves
<nunojpg@gmail.com
>
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/rtl-ais
26 TITLE
:=rtl-sdr AIS dual channel tuner
27 DEPENDS
:=+libpthread
+librtlsdr
28 URL
:=https
://github.com
/dgiardini
/rtl-ais
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
36 define Package
/rtl-ais
/conffiles
40 TARGET_CFLAGS
+= -std
=gnu89
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
51 $(eval
$(call BuildPackage
,rtl-ais
))