1 # Copyright (C) 2020 Stijn Tintel <stijn@linux-ipv6.be>
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://codeload.github.com
/Mictronics
/readsb
/tar.gz
/v
$(PKG_VERSION
)?
14 PKG_HASH
:=234e2f5f45d69d8be376272e9a08be54bdc48ed5ad7ebad2c4374bbd754d9426
16 PKG_LICENSE
:=GPL-3.0
-or-later
17 PKG_LICENSE_FILES
:=COPYING LICENSE
19 PKG_MAINTAINER
:=Stijn Tintel
<stijn@linux-ipv6.be
>
21 PKG_BUILD_DEPENDS
:=!USE_GLIBC
:argp-standalone
23 PKG_BUILD_FLAGS
:=gc-sections lto
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/readsb
/default
31 TITLE
:=Mode-S
/ADSB
/TIS decoder for various devices
32 URL
:=https
://github.com
/Mictronic
/readsb
36 $(call Package
/readsb
/default
)
41 define Package
/viewadsb
42 $(call Package
/readsb
/default
)
48 CFLAGS
="$(TARGET_CFLAGS)" \
53 $(if
$(CONFIG_USE_GLIBC
),,-largp
) \
56 define Package
/readsb
/conffiles
60 define Package
/readsb
/install
61 $(INSTALL_DIR
) $(1)/etc
/{config
,init.d
} $(1)/usr
/bin
62 $(INSTALL_CONF
) .
/files
/readsb.config
$(1)/etc
/config
/readsb
63 $(INSTALL_BIN
) .
/files
/readsb.init
$(1)/etc
/init.d
/readsb
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/readsb
$(1)/usr
/bin
67 define Package
/viewadsb
/install
68 $(INSTALL_DIR
) $(1)/usr
/bin
69 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/viewadsb
$(1)/usr
/bin
72 $(eval
$(call BuildPackage
,readsb
))
73 $(eval
$(call BuildPackage
,viewadsb
))