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.

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