Makefile 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.47
  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:=9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb
  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. --enable-install-gpg-error-config \
  40. --disable-doc \
  41. --disable-languages \
  42. --disable-rpath \
  43. --disable-tests
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  46. $(INSTALL_BIN) \
  47. $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
  48. $(2)/bin/
  49. $(SED) \
  50. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  51. $(2)/bin/gpg-error-config
  52. $(LN) $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
  53. $(INSTALL_BIN) \
  54. $(PKG_INSTALL_DIR)/usr/bin/gpgrt-config \
  55. $(2)/bin/
  56. $(SED) \
  57. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  58. $(2)/bin/gpgrt-config
  59. $(LN) $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config
  60. $(INSTALL_DIR) $(1)/usr/include
  61. $(INSTALL_DATA) \
  62. $(PKG_INSTALL_DIR)/usr/include/gpg-error.h \
  63. $(1)/usr/include/
  64. $(INSTALL_DATA) \
  65. $(PKG_INSTALL_DIR)/usr/include/gpgrt.h \
  66. $(1)/usr/include/
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) \
  69. $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.{la,a,so*} \
  70. $(1)/usr/lib/
  71. $(INSTALL_DIR) $(1)/usr/share/aclocal
  72. $(INSTALL_DATA) \
  73. $(PKG_INSTALL_DIR)/usr/share/aclocal/gpg-error.m4 \
  74. $(1)/usr/share/aclocal/
  75. $(INSTALL_DATA) \
  76. $(PKG_INSTALL_DIR)/usr/share/aclocal/gpgrt.m4 \
  77. $(1)/usr/share/aclocal/
  78. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  79. $(CP) \
  80. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpg-error.pc \
  81. $(1)/usr/lib/pkgconfig
  82. endef
  83. define Package/libgpg-error/install
  84. $(INSTALL_DIR) $(1)/usr/lib
  85. $(CP) \
  86. $(PKG_INSTALL_DIR)/usr/lib/libgpg-error.so.* \
  87. $(1)/usr/lib/
  88. endef
  89. $(eval $(call BuildPackage,libgpg-error))