2 # Copyright (C) 2005-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=libgpg-error
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=https
://mirrors.dotsrc.org
/gcrypt
/libgpg-error \
16 http
://ring.ksc.gr.jp
/archives
/net
/gnupg
/libgpg-error \
17 https
://www.gnupg.org
/ftp
/gcrypt
/libgpg-error
18 PKG_HASH
:=b7e11a64246bbe5ef37748de43b245abd72cfcd53c9ae5e7fc5ca59f1c81268d
20 PKG_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
21 PKG_LICENSE
:=LGPL-2.1
-or-later
22 PKG_LICENSE_FILES
:=COPYING
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libgpg-error
33 TITLE
:=GnuPG error handling helper library
34 URL
:=https
://www.gnupg.org
/related_software
/libgpg-error
/
37 define Package
/libgpg-error
/description
38 An helper library for common error codes and descriptions.
39 This is a library that defines common error values for
all GnuPG
40 components. Among these are GPG
, GPGSM
, GPGME
, GPG-Agent
, libgcrypt
,
41 Libksba
, DirMngr
, Pinentry
, SmartCard Daemon and possibly more in the
48 --enable-install-gpg-error-config \
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
57 $(PKG_INSTALL_DIR
)/usr
/bin
/gpg-error-config \
60 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
61 $(2)/bin
/gpg-error-config
62 $(LN
) $(STAGING_DIR
)/host
/bin
/gpg-error-config
$(1)/usr
/bin
/gpg-error-config
65 $(PKG_INSTALL_DIR
)/usr
/bin
/gpgrt-config \
68 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
70 $(LN
) $(STAGING_DIR
)/host
/bin
/gpgrt-config
$(1)/usr
/bin
/gpgrt-config
72 $(INSTALL_DIR
) $(1)/usr
/include
74 $(PKG_INSTALL_DIR
)/usr
/include/gpg-error.h \
78 $(PKG_INSTALL_DIR
)/usr
/include/gpgrt.h \
81 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.
{la
,a
,so
*} \
86 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
88 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpg-error.m4 \
89 $(1)/usr
/share
/aclocal
/
92 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpgrt.m4 \
93 $(1)/usr
/share
/aclocal
/
95 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
97 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/gpg-error.
pc \
98 $(1)/usr
/lib
/pkgconfig
101 define Package
/libgpg-error
/install
102 $(INSTALL_DIR
) $(1)/usr
/lib
104 $(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.so.
* \
108 $(eval
$(call BuildPackage
,libgpg-error
))