2014-07-17 04:15:30 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2005-2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libgpg-error
|
2022-11-05 04:47:45 +01:00
|
|
|
PKG_VERSION:=1.46
|
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 18:32:27 +02:00
|
|
|
PKG_RELEASE:=3
|
2014-07-17 04:15:30 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2019-05-17 23:44:30 +02:00
|
|
|
PKG_SOURCE_URL:=https://mirrors.dotsrc.org/gcrypt/libgpg-error \
|
|
|
|
http://ring.ksc.gr.jp/archives/net/gnupg/libgpg-error \
|
|
|
|
https://www.gnupg.org/ftp/gcrypt/libgpg-error
|
2022-11-05 04:47:45 +01:00
|
|
|
PKG_HASH:=b7e11a64246bbe5ef37748de43b245abd72cfcd53c9ae5e7fc5ca59f1c81268d
|
2018-12-11 01:23:05 +01:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
2019-07-02 19:17:58 +02:00
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
2017-01-13 15:28:15 +01:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-07-17 04:15:30 +02:00
|
|
|
|
2018-07-15 00:07:03 +02:00
|
|
|
PKG_FIXUP:=autoreconf
|
2020-02-12 01:29:53 +01:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2018-07-15 00:07:03 +02:00
|
|
|
|
2014-07-17 04:15:30 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libgpg-error
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=GnuPG error handling helper library
|
2019-01-21 00:26:14 +01:00
|
|
|
URL:=https://www.gnupg.org/related_software/libgpg-error/
|
2014-07-17 04:15:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgpg-error/description
|
|
|
|
An helper library for common error codes and descriptions.
|
|
|
|
This is a library that defines common error values for all GnuPG
|
|
|
|
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
|
|
|
|
Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the
|
|
|
|
future.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
2022-11-05 22:52:08 +01:00
|
|
|
--enable-install-gpg-error-config \
|
2019-01-21 00:26:14 +01:00
|
|
|
--disable-doc \
|
|
|
|
--disable-languages \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-tests
|
2014-07-17 04:15:30 +02:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(2)/bin $(1)/usr/bin
|
2022-11-05 22:52:08 +01:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
|
|
|
|
$(2)/bin/
|
|
|
|
$(SED) \
|
|
|
|
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
|
|
|
$(2)/bin/gpg-error-config
|
|
|
|
$(LN) $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
|
|
|
|
|
2020-10-20 20:31:07 +02:00
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/bin/gpgrt-config \
|
|
|
|
$(2)/bin/
|
|
|
|
$(SED) \
|
|
|
|
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
|
|
|
|
$(2)/bin/gpgrt-config
|
2022-11-05 22:52:08 +01:00
|
|
|
$(LN) $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config
|
2020-10-20 20:31:07 +02:00
|
|
|
|
2014-07-17 04:15:30 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
2020-10-20 20:31:07 +02:00
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/gpgrt.h \
|
|
|
|
$(1)/usr/include/
|
|
|
|
|
2014-07-17 04:15:30 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
|
|
|
|
$(1)/usr/share/aclocal/
|
2020-10-20 20:31:07 +02:00
|
|
|
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/aclocal/gpgrt.m4 \
|
|
|
|
$(1)/usr/share/aclocal/
|
2022-11-18 03:40:35 +01:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpg-error.pc \
|
|
|
|
$(1)/usr/lib/pkgconfig
|
2014-07-17 04:15:30 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgpg-error/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libgpg-error))
|