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.

99 lines
2.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gpgme
  3. PKG_VERSION:=1.15.0
  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:=0b472bc12c7d455906c8a539ec56da0a6480ef1c3a87aa5b74d7125df68d0e5b
  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. endef
  73. define Package/libgpgme/install
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme.so.* $(1)/usr/lib/
  76. endef
  77. define Package/libgpgmepp/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgmepp.so.* $(1)/usr/lib/
  80. endef
  81. $(eval $(call BuildPackage,libgpgme))
  82. $(eval $(call BuildPackage,libgpgmepp))