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.

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