0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 01:22:13 +00:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
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>
2023-04-21 22:46:58 +02:00

70 lines
2.0 KiB
Makefile

#
# Copyright (C) 2020 Rafał Dzięgiel <rafostar.github@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libdvbcsa
PKG_RELEASE:=2
PKG_SOURCE_VERSION:=bc6c0b164a87ce05e9925785cc6fb3f54c02b026
PKG_HASH:=2d761c9e094642f2c9aa7e66534c6147a59d0d0bc709ec0f2fdbb34bf020d8ec
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_URL:=https://code.videolan.org/videolan/libdvbcsa/-/archive/$(PKG_SOURCE_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_MAINTAINER:=Rafał Dzięgiel <rafostar.github@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libdvbcsa
SECTION:=libs
CATEGORY:=Libraries
TITLE:=DVB Common Scrambling Algorithm Library
URL:=https://www.videolan.org/developers/libdvbcsa.html
DEPENDS:=@BUILD_PATENTED
endef
define Package/libdvbcsa/description
Libdvbcsa is a free implementation of the DVB Common Scrambling
Algorithm DVB/CSA - with encryption and decryption capabilities.
endef
define Package/libdvbcsa/config
menu "Configuration"
depends on PACKAGE_libdvbcsa
source "$(SOURCE)/Config.in"
endmenu
endef
CONFIGURE_ARGS += \
--$(if $(CONFIG_LIBDVBCSA_DEBUG),en,dis)able-debug \
--$(if $(CONFIG_LIBDVBCSA_MMX),en,dis)able-mmx \
--$(if $(CONFIG_LIBDVBCSA_SSE2),en,dis)able-sse2 \
--$(if $(CONFIG_LIBDVBCSA_ALTIVEC),en,dis)able-altivec \
--$(if $(CONFIG_LIBDVBCSA_NEON),en,dis)able-neon
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/dvbcsa
$(CP) $(PKG_INSTALL_DIR)/usr/include/dvbcsa/*.h $(1)/usr/include/dvbcsa/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
endef
define Package/libdvbcsa/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdvbcsa.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libdvbcsa))