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:=ftp://ftp.gnupg.org/gcrypt/libgpg-error
16 PKG_MD5SUM:=521b98aa9395e7eaf0ef2236233a0796
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libgpg-error
27 TITLE:=GnuPG error handling helper library
28 URL:=http://www.gnupg.org/related_software/libgpg-error/
31 define Package/libgpg-error/description
32 An helper library for common error codes and descriptions.
33 This is a library that defines common error values for all GnuPG
34 components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
35 Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the
39 TARGET_CFLAGS += $(FPIC)
46 define Build/InstallDev
47 $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
49 $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
52 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
53 $(2)/bin/gpg-error-config
54 ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
56 $(INSTALL_DIR) $(1)/usr/include
58 $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
61 $(INSTALL_DIR) $(1)/usr/lib
63 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
66 $(INSTALL_DIR) $(1)/usr/share/aclocal
68 $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
69 $(1)/usr/share/aclocal/
72 define Package/libgpg-error/install
73 $(INSTALL_DIR) $(1)/usr/lib
75 $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
79 $(eval $(call BuildPackage,libgpg-error))