Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
73 lines
1.7 KiB
Makefile
73 lines
1.7 KiB
Makefile
# Copyright (C) 2020 Stijn Tintel <stijn@linux-ipv6.be>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=readsb
|
|
PKG_VERSION:=3.9.0
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/Mictronics/readsb/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=234e2f5f45d69d8be376272e9a08be54bdc48ed5ad7ebad2c4374bbd754d9426
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING LICENSE
|
|
|
|
PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be>
|
|
|
|
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_FLAGS:=gc-sections lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/readsb/default
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=+libncurses
|
|
TITLE:=Mode-S/ADSB/TIS decoder for various devices
|
|
URL:=https://github.com/Mictronic/readsb
|
|
endef
|
|
|
|
define Package/readsb
|
|
$(call Package/readsb/default)
|
|
TITLE+= (readsb)
|
|
DEPENDS+=+librtlsdr
|
|
endef
|
|
|
|
define Package/viewadsb
|
|
$(call Package/readsb/default)
|
|
TITLE+= (viewadsb)
|
|
endef
|
|
|
|
MAKE_FLAGS += \
|
|
BLADERF=no \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
RTLSDR=yes \
|
|
UNAME="Linux"
|
|
|
|
TARGET_LDFLAGS += \
|
|
$(if $(CONFIG_USE_GLIBC),,-largp) \
|
|
-Wl,--as-needed
|
|
|
|
define Package/readsb/conffiles
|
|
/etc/config/readsb
|
|
endef
|
|
|
|
define Package/readsb/install
|
|
$(INSTALL_DIR) $(1)/etc/{config,init.d} $(1)/usr/bin
|
|
$(INSTALL_CONF) ./files/readsb.config $(1)/etc/config/readsb
|
|
$(INSTALL_BIN) ./files/readsb.init $(1)/etc/init.d/readsb
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/readsb $(1)/usr/bin
|
|
endef
|
|
|
|
define Package/viewadsb/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/viewadsb $(1)/usr/bin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,readsb))
|
|
$(eval $(call BuildPackage,viewadsb))
|