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.

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