You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2005-2011 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libgpg-error
  9. PKG_VERSION:=1.34
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://ftp.bit.nl/mirror/gnupg/ \
  13. https://ftp.nluug.nl/security/gnupg/ \
  14. http://ring.ksc.gr.jp/archives/net/gnupg/libgpg-error/ \
  15. https://www.gnupg.org/ftp/gcrypt/libgpg-error/
  16. PKG_HASH:=0680799dee71b86b2f435efb825391eb040ce2704b057f6bd3dcc47fbc398c81
  17. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  18. PKG_LICENSE:=LGPL-2.1+
  19. PKG_LICENSE_FILES:=COPYING
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_INSTALL:=1
  22. PKG_FIXUP:=autoreconf
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/libgpg-error
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=GnuPG error handling helper library
  28. URL:=https://www.gnupg.org/related_software/libgpg-error/
  29. endef
  30. define Package/libgpg-error/description
  31. An helper library for common error codes and descriptions.
  32. This is a library that defines common error values for all GnuPG
  33. components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
  34. Libksba, DirMngr, Pinentry, SmartCard Daemon and possibly more in the
  35. future.
  36. endef
  37. CONFIGURE_ARGS += \
  38. --enable-shared \
  39. --enable-static \
  40. --disable-doc \
  41. --disable-languages \
  42. --disable-rpath \
  43. --disable-tests
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  46. $(INSTALL_BIN) \
  47. $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
  48. $(2)/bin/
  49. $(SED) \
  50. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  51. $(2)/bin/gpg-error-config
  52. ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
  53. $(INSTALL_DIR) $(1)/usr/include
  54. $(INSTALL_DATA) \
  55. $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
  56. $(1)/usr/include/
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
  60. $(1)/usr/lib/
  61. $(INSTALL_DIR) $(1)/usr/share/aclocal
  62. $(INSTALL_DATA) \
  63. $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
  64. $(1)/usr/share/aclocal/
  65. endef
  66. define Package/libgpg-error/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
  70. $(1)/usr/lib/
  71. endef
  72. $(eval $(call BuildPackage,libgpg-error))