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.

108 lines
3.0 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gpgme
  3. PKG_VERSION:=1.15.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  6. PKG_SOURCE_URL:=https://gnupg.org/ftp/gcrypt/$(PKG_NAME)
  7. PKG_HASH:=eebc3c1b27f1c8979896ff361ba9bb4778b508b2496c2fc10e3775a40b1de1ad
  8. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  9. PKG_LICENSE:=GPL-3.0-or-later
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_FIXUP:=autoreconf
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/libgpgme
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=GnuPG Made Easy (GPGME) library
  19. URL:=https://gnupg.org/software/gpgme/index.html
  20. DEPENDS:=+libassuan +libgpg-error
  21. endef
  22. define Package/libgpgmepp
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=GnuPG Made Easy (GPGME) library (C++)
  26. URL:=https://gnupg.org/software/gpgme/index.html
  27. DEPENDS:=+libgpgme +libstdcpp $(CXX_DEPENDS)
  28. endef
  29. define Package/libgpgme/description
  30. GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
  31. easier for applications. It provides a High-Level Crypto API for
  32. encryption, decryption, signing, signature verification and key
  33. management. Currently it uses GnuPG's OpenPGP backend as the default,
  34. but the API isn't restricted to this engine. We have, in fact, already
  35. developed a backend for CMS (S/MIME).
  36. endef
  37. CONFIGURE_ARGS += \
  38. --with-libassuan-prefix="$(STAGING_DIR)/usr/" \
  39. --with-gpg-error-prefix="$(STAGING_DIR)/usr/" \
  40. --disable-gpgconf-test \
  41. --disable-gpg-test \
  42. --disable-gpgsm-test \
  43. --disable-g13-test \
  44. --enable-languages="cpp"
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include/gpgme++
  47. $(INSTALL_DATA) \
  48. $(PKG_INSTALL_DIR)/usr/include/gpgme.h \
  49. $(1)/usr/include/
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/include/gpgme++/*.h \
  52. $(1)/usr/include/gpgme++/
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/lib/libgpgme.{la,so*} \
  56. $(1)/usr/lib/
  57. $(INSTALL_DIR) $(1)/usr/share/aclocal
  58. $(INSTALL_DATA) \
  59. $(PKG_INSTALL_DIR)/usr/share/aclocal/gpgme.m4 \
  60. $(1)/usr/share/aclocal/
  61. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  62. $(INSTALL_DATA) \
  63. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpgme.pc \
  64. $(1)/usr/lib/pkgconfig
  65. $(INSTALL_DATA) \
  66. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpgme-glib.pc \
  67. $(1)/usr/lib/pkgconfig
  68. $(INSTALL_DIR) $(1)/usr/lib/cmake/Gpgmepp
  69. $(INSTALL_DATA) \
  70. $(PKG_INSTALL_DIR)/usr/lib/cmake/Gpgmepp/*.cmake \
  71. $(1)/usr/lib/cmake/Gpgmepp
  72. $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
  73. $(INSTALL_BIN) \
  74. $(PKG_INSTALL_DIR)/usr/bin/gpgme-config \
  75. $(2)/bin/
  76. $(SED) \
  77. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  78. $(2)/bin/gpgme-config
  79. $(LN) -sf $(STAGING_DIR)/host/bin/gpgme-config $(1)/usr/bin/gpgme-config
  80. endef
  81. define Package/libgpgme/install
  82. $(INSTALL_DIR) $(1)/usr/lib
  83. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme.so.* $(1)/usr/lib/
  84. endef
  85. define Package/libgpgmepp/install
  86. $(INSTALL_DIR) $(1)/usr/lib
  87. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgmepp.so.* $(1)/usr/lib/
  88. endef
  89. $(eval $(call BuildPackage,libgpgme))
  90. $(eval $(call BuildPackage,libgpgmepp))