1
0

Makefile 2.6 KB

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