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.

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