From 76b38f54a551bd139e83a38ee64ea31ecaad5f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 27 May 2024 18:03:48 +0200 Subject: cpp: Add pkgconfig file for gpgmepp * configure.ac: Add substitutions GPGMEPP_PKGCONFIG_LIBS, GPGMEPP_PKGCONFIG_CFLAGS, GPGMEPP_PKGCONFIG_HOST. Apply them. Configure gpgmepp.pc file. * lang/cpp/src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New. (EXTRA_DIST): Add gpgmepp.pc.in. * lang/cpp/src/gpgmepp.pc.in: New. -- This pkgconfig file will be used by qgpgme to find gpgmepp. GnuPG-bug-id: 7110 --- lang/cpp/src/Makefile.am | 6 +++++- lang/cpp/src/gpgmepp.pc.in | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 lang/cpp/src/gpgmepp.pc.in (limited to 'lang/cpp/src') diff --git a/lang/cpp/src/Makefile.am b/lang/cpp/src/Makefile.am index a2edb49e..e6d23889 100644 --- a/lang/cpp/src/Makefile.am +++ b/lang/cpp/src/Makefile.am @@ -19,8 +19,12 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = gpgmepp.pc + EXTRA_DIST = GpgmeppConfig.cmake.in.in GpgmeppConfigVersion.cmake.in \ - gpgmepp_version.h.in GpgmeppConfig-w32.cmake.in.in + gpgmepp_version.h.in GpgmeppConfig-w32.cmake.in.in \ + gpgmepp.pc.in lib_LTLIBRARIES = libgpgmepp.la diff --git a/lang/cpp/src/gpgmepp.pc.in b/lang/cpp/src/gpgmepp.pc.in new file mode 100644 index 00000000..37c15357 --- /dev/null +++ b/lang/cpp/src/gpgmepp.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +includedir=@includedir@ +libdir=@libdir@ +host=@GPGMEPP_PKGCONFIG_HOST@ + +Name: gpgmepp +Description: GnuPG Made Easy (C++ binding) +Requires.private: gpg-error, gpgme +Version: @PACKAGE_VERSION@ +Cflags: @GPGMEPP_PKGCONFIG_CFLAGS@ +Libs: @GPGMEPP_PKGCONFIG_LIBS@ +URL: https://www.gnupg.org/software/gpgme/index.html -- cgit v1.2.3