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>
101 lines
2.3 KiB
Makefile
101 lines
2.3 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=unrar
|
|
PKG_VERSION:=6.1.3
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=unrarsrc-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://www.rarlab.com/rar
|
|
PKG_HASH:=d05022442009202a792e588bec58921c123ff046fc755f7f2272871a5bd79636
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/unrar
|
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>, \
|
|
Ted Hess <thess@kitschensync.net>
|
|
PKG_LICENSE:=UnRAR
|
|
PKG_LICENSE_FILES:=license.txt
|
|
PKG_CPE_ID:=cpe:/a:rarlab:unrar
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
TARGET_CXXFLAGS +=-fno-rtti
|
|
TARGET_LDFLAGS +=$(FPIC) -Wl,--gc-sections $(if $(CONFIG_USE_GLIBC),-lpthread)
|
|
|
|
define Package/unrar/Default
|
|
TITLE:=UnRAR
|
|
SUBMENU:=Compression
|
|
URL:=https://www.rarlab.com/
|
|
DEPENDS:=+libstdcpp +libpthread
|
|
endef
|
|
|
|
define Package/unrar
|
|
$(call Package/unrar/Default)
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE+= (application)
|
|
VARIANT:=bin
|
|
endef
|
|
|
|
define Package/libunrar
|
|
$(call Package/unrar/Default)
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE+= (library)
|
|
VARIANT:=lib
|
|
endef
|
|
|
|
define Package/unrar/description
|
|
UnRAR is an application that can decompress files and archives created using
|
|
the RAR compression scheme
|
|
endef
|
|
|
|
define Package/libunrar/description
|
|
UnRAR library is a shared library that provides file extraction from RAR
|
|
archives
|
|
endef
|
|
|
|
ifeq ($(BUILD_VARIANT),lib)
|
|
define Build/Compile
|
|
$(call Build/Compile/Default,lib)
|
|
endef
|
|
|
|
define Build/Install
|
|
$(call Build/Install/Default,install-lib)
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/unrar
|
|
$(CP) $(PKG_BUILD_DIR)/*.hpp $(1)/usr/include/unrar/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/libunrar.so $(1)/usr/lib/
|
|
endef
|
|
else
|
|
define Build/Compile
|
|
$(call Build/Compile/Default,unrar)
|
|
endef
|
|
|
|
define Build/Install
|
|
$(call Build/Install/Default,install-unrar)
|
|
endef
|
|
endif
|
|
|
|
define Package/unrar/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/unrar $(1)/usr/bin/
|
|
endef
|
|
|
|
define Package/libunrar/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/libunrar.so $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,unrar))
|
|
$(eval $(call BuildPackage,libunrar))
|