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
12 PKG_RELEASE
:=$(AUTORELEASE
)
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
:=a9ab83ca7acc442a5bd846a75b920285ff79bdb4e3d34aa382be88ed2c3aebaf
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
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(2)/bin
$(1)/usr
/bin
56 $(PKG_INSTALL_DIR
)/usr
/bin
/gpg-error-config \
59 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
60 $(2)/bin
/gpg-error-config
61 ln
-sf
$(STAGING_DIR
)/host
/bin
/gpg-error-config
$(1)/usr
/bin
/gpg-error-config
64 $(PKG_INSTALL_DIR
)/usr
/bin
/gpgrt-config \
67 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
69 ln
-sf
$(STAGING_DIR
)/host
/bin
/gpgrt-config
$(1)/usr
/bin
/gpgrt-config
71 $(INSTALL_DIR
) $(1)/usr
/include
73 $(PKG_INSTALL_DIR
)/usr
/include/gpg-error.h \
77 $(PKG_INSTALL_DIR
)/usr
/include/gpgrt.h \
80 $(INSTALL_DIR
) $(1)/usr
/lib
82 $(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.
{la
,a
,so
*} \
85 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
87 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpg-error.m4 \
88 $(1)/usr
/share
/aclocal
/
91 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/gpgrt.m4 \
92 $(1)/usr
/share
/aclocal
/
95 define Package
/libgpg-error
/install
96 $(INSTALL_DIR
) $(1)/usr
/lib
98 $(PKG_INSTALL_DIR
)/usr
/lib
/libgpg-error.so.
* \
102 $(eval
$(call BuildPackage
,libgpg-error
))