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.

83 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.32
  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:=c345c5e73cc2332f8d50db84a2280abfb1d8f6d4f1858b9daa30404db44540ca
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libgpg-error
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=GnuPG error handling helper library
  24. URL:=http://www.gnupg.org/related_software/libgpg-error/
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  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))