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
:=9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb
20 PKG_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
21 PKG_LICENSE
:=LGPL-2.1
-or-later
22 PKG_LICENSE_FILES
:=COPYING
23 PKG_CPE_ID
:=cpe
:/a
:gnupg
:libgpg-error
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/libgpg-error
34 TITLE
:=GnuPG error handling helper library
35 URL
:=https
://www.gnupg.org
/related_software
/libgpg-error
/
38 define Package
/libgpg-error
/description
39 An helper library for common error codes and descriptions.
40 This is a library that defines common error values for
all GnuPG
41 components. Among these are GPG
, GPGSM
, GPGME
, GPG-Agent
, libgcrypt
,
42 Libksba
, DirMngr
, Pinentry
, SmartCard Daemon and possibly more in the
49 --enable-install-gpg-error-config \
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
58 $(PKG_INSTALL_DIR
)/usr
/bin
/gpg-error-config \
61 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
62 $(2)/bin
/gpg-error-config
63 $(LN
) $(STAGING_DIR
)/host
/bin
/gpg-error-config
$(1)/usr
/bin
/gpg-error-config
66 $(PKG_INSTALL_DIR
)/usr
/bin
/gpgrt-config \
69 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
71 $(LN
) $(STAGING_DIR
)/host
/bin
/gpgrt-config
$(1)/usr
/bin
/gpgrt-config
73 $(INSTALL_DIR
) $(1)/usr
/include
75 $(PKG_INSTALL_DIR
)/usr
/include/gpg-error.h \
79 $(PKG_INSTALL_DIR
)/usr
/include/gpgrt.h \
82 $(INSTALL_DIR
) $(1)/usr
/lib
84 $(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.
{la
,a
,so
*} \
87 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
89 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpg-error.m4 \
90 $(1)/usr
/share
/aclocal
/
93 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpgrt.m4 \
94 $(1)/usr
/share
/aclocal
/
96 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
98 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/gpg-error.
pc \
99 $(1)/usr
/lib
/pkgconfig
102 define Package
/libgpg-error
/install
103 $(INSTALL_DIR
) $(1)/usr
/lib
105 $(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.so.
* \
109 $(eval
$(call BuildPackage
,libgpg-error
))