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.

125 lines
3.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gpgme
  3. PKG_VERSION:=1.14.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:=cef1f710a6b0d28f5b44242713ad373702d1466dcbe512eb4e754d7f35cd4307
  8. # PKG_BUILD_DEPENDS:=python3/host swig/host
  9. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  10. PKG_LICENSE:=GPL-3.0-or-later
  11. PKG_LICENSE_FILES:=COPYING
  12. PKG_FIXUP:=autoreconf
  13. PKG_INSTALL:=1
  14. PKG_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. # include ../../lang/python/python3-package.mk
  17. # PYTHON3_PKG_BUILD:=0
  18. # PYTHON3_PKG_SETUP_DIR:=lang/python
  19. # PYTHON3_PKG_SETUP_ARGS:=
  20. define Package/libgpgme
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=GnuPG Made Easy (GPGME) library
  24. URL:=https://gnupg.org/software/gpgme/index.html
  25. DEPENDS:=+libassuan +libgpg-error
  26. endef
  27. define Package/libgpgmepp
  28. SECTION:=libs
  29. CATEGORY:=Libraries
  30. TITLE:=GnuPG Made Easy (GPGME) library (C++)
  31. URL:=https://gnupg.org/software/gpgme/index.html
  32. DEPENDS:=+libgpgme +libstdcpp $(CXX_DEPENDS)
  33. endef
  34. # define Package/python3-gpgme
  35. # TITLE:=Python bindings for the runtime SELinux library
  36. # SUBMENU:=Python
  37. # SECTION:=lang
  38. # CATEGORY:=Languages
  39. # TITLE:=GnuPG Made Easy (GPGME) Python bindings
  40. # URL:=https://gnupg.org/software/gpgme/index.html
  41. # DEPENDS:=+python3-light +libgpgme
  42. # endef
  43. define Package/libgpgme/description
  44. GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
  45. easier for applications. It provides a High-Level Crypto API for
  46. encryption, decryption, signing, signature verification and key
  47. management. Currently it uses GnuPG's OpenPGP backend as the default,
  48. but the API isn't restricted to this engine. We have, in fact, already
  49. developed a backend for CMS (S/MIME).
  50. endef
  51. # Package/python3-gpgme/description = Package/libgpgme/description
  52. CONFIGURE_ARGS += \
  53. --with-libassuan-prefix="$(STAGING_DIR)/usr/" \
  54. --with-gpg-error-prefix="$(STAGING_DIR)/usr/" \
  55. --disable-gpgconf-test \
  56. --disable-gpg-test \
  57. --disable-gpgsm-test \
  58. --disable-g13-test \
  59. --enable-languages="cpp"
  60. define Build/Compile
  61. $(call Build/Compile/Default)
  62. $(call Py3Build/Compile)
  63. endef
  64. define Build/InstallDev
  65. $(INSTALL_DIR) $(1)/usr/include/gpgme++
  66. $(INSTALL_DATA) \
  67. $(PKG_INSTALL_DIR)/usr/include/gpgme.h \
  68. $(1)/usr/include/
  69. $(INSTALL_DATA) \
  70. $(PKG_INSTALL_DIR)/usr/include/gpgme++/*.h \
  71. $(1)/usr/include/gpgme++/
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) \
  74. $(PKG_INSTALL_DIR)/usr/lib/libgpgme.{la,so*} \
  75. $(1)/usr/lib/
  76. $(INSTALL_DIR) $(1)/usr/share/aclocal
  77. $(INSTALL_DATA) \
  78. $(PKG_INSTALL_DIR)/usr/share/aclocal/gpgme.m4 \
  79. $(1)/usr/share/aclocal/
  80. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  81. $(INSTALL_DATA) \
  82. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpgme.pc \
  83. $(1)/usr/lib/pkgconfig
  84. $(INSTALL_DATA) \
  85. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gpgme-glib.pc \
  86. $(1)/usr/lib/pkgconfig
  87. $(INSTALL_DIR) $(1)/usr/lib/cmake/Gpgmepp
  88. $(INSTALL_DATA) \
  89. $(PKG_INSTALL_DIR)/usr/lib/cmake/Gpgmepp/*.cmake \
  90. $(1)/usr/lib/cmake/Gpgmepp
  91. endef
  92. define Package/libgpgme/install
  93. $(INSTALL_DIR) $(1)/usr/lib
  94. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgme.so.* $(1)/usr/lib/
  95. endef
  96. define Package/libgpgmepp/install
  97. $(INSTALL_DIR) $(1)/usr/lib
  98. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpgmepp.so.* $(1)/usr/lib/
  99. endef
  100. $(eval $(call BuildPackage,libgpgme))
  101. $(eval $(call BuildPackage,libgpgmepp))
  102. # $(eval $(call Py3Package,python3-gpgme))
  103. # $(eval $(call BuildPackage,python3-gpgme))
  104. # $(eval $(call BuildPackage,python3-gpgme-src))