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
This commit is contained in:
parent
5b0903c9af
commit
76b38f54a5
27
configure.ac
27
configure.ac
@ -1001,12 +1001,16 @@ AH_BOTTOM([
|
|||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
# Substitution used for gpgme-config and gpgme.pc
|
# Substitution used for gpgme-config and gpgme.pc and gpgmepp.pc
|
||||||
GPGME_CONFIG_LIBS="-lgpgme"
|
GPGME_CONFIG_LIBS="-lgpgme"
|
||||||
GPGME_CONFIG_CFLAGS=""
|
GPGME_CONFIG_CFLAGS=""
|
||||||
GPGME_CONFIG_HOST="$host"
|
GPGME_CONFIG_HOST="$host"
|
||||||
GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
|
GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
|
||||||
|
|
||||||
|
GPGMEPP_PKGCONFIG_LIBS="-lgpgmepp"
|
||||||
|
GPGMEPP_PKGCONFIG_CFLAGS=""
|
||||||
|
GPGMEPP_PKGCONFIG_HOST="$host"
|
||||||
|
|
||||||
case "$includedir" in
|
case "$includedir" in
|
||||||
/usr/include|/include) ;;
|
/usr/include|/include) ;;
|
||||||
'${prefix}/include')
|
'${prefix}/include')
|
||||||
@ -1016,6 +1020,11 @@ case "$includedir" in
|
|||||||
else
|
else
|
||||||
GPGME_CONFIG_CFLAGS="-I\${includedir} $GPGME_CONFIG_CFLAGS"
|
GPGME_CONFIG_CFLAGS="-I\${includedir} $GPGME_CONFIG_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
if test -z "$GPGMEPP_PKGCONFIG_CFLAGS"; then
|
||||||
|
GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir}"
|
||||||
|
else
|
||||||
|
GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir} $GPGMEPP_PKGCONFIG_CFLAGS"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -1024,6 +1033,11 @@ case "$includedir" in
|
|||||||
else
|
else
|
||||||
GPGME_CONFIG_CFLAGS="-I\${includedir} $GPGME_CONFIG_CFLAGS"
|
GPGME_CONFIG_CFLAGS="-I\${includedir} $GPGME_CONFIG_CFLAGS"
|
||||||
fi
|
fi
|
||||||
|
if test -z "$GPGMEPP_PKGCONFIG_CFLAGS"; then
|
||||||
|
GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir}"
|
||||||
|
else
|
||||||
|
GPGMEPP_PKGCONFIG_CFLAGS="-I\${includedir} $GPGMEPP_PKGCONFIG_CFLAGS"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case "$libdir" in
|
case "$libdir" in
|
||||||
@ -1032,12 +1046,17 @@ case "$libdir" in
|
|||||||
if test "$exec_prefix" = "NONE"; then
|
if test "$exec_prefix" = "NONE"; then
|
||||||
if test "$prefix" != / -a "$prefix" != /usr; then
|
if test "$prefix" != / -a "$prefix" != /usr; then
|
||||||
GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS"
|
GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS"
|
||||||
|
GPGMEPP_PKGCONFIG_LIBS="-L\${libdir} $GPGMEPP_PKGCONFIG_LIBS"
|
||||||
fi
|
fi
|
||||||
elif test "$exec_prefix" != / -a "$exec_prefix" != /usr; then
|
elif test "$exec_prefix" != / -a "$exec_prefix" != /usr; then
|
||||||
GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS"
|
GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS"
|
||||||
|
GPGMEPP_PKGCONFIG_LIBS="-L\${libdir} $GPGMEPP_PKGCONFIG_LIBS"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*) GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS" ;;
|
*)
|
||||||
|
GPGME_CONFIG_LIBS="-L\${libdir} $GPGME_CONFIG_LIBS"
|
||||||
|
GPGMEPP_PKGCONFIG_LIBS="-L\${libdir} $GPGMEPP_PKGCONFIG_LIBS"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(GPGME_CONFIG_API_VERSION)
|
AC_SUBST(GPGME_CONFIG_API_VERSION)
|
||||||
@ -1045,6 +1064,9 @@ AC_SUBST(GPGME_CONFIG_LIBS)
|
|||||||
AC_SUBST(GPGME_CONFIG_CFLAGS)
|
AC_SUBST(GPGME_CONFIG_CFLAGS)
|
||||||
AC_SUBST(GPGME_CONFIG_HOST)
|
AC_SUBST(GPGME_CONFIG_HOST)
|
||||||
AC_SUBST(GPGME_CONFIG_AVAIL_LANG)
|
AC_SUBST(GPGME_CONFIG_AVAIL_LANG)
|
||||||
|
AC_SUBST(GPGMEPP_PKGCONFIG_LIBS)
|
||||||
|
AC_SUBST(GPGMEPP_PKGCONFIG_CFLAGS)
|
||||||
|
AC_SUBST(GPGMEPP_PKGCONFIG_HOST)
|
||||||
|
|
||||||
# Frob'da Variables
|
# Frob'da Variables
|
||||||
LTLIBOBJS=`echo "$LIB@&t@OBJS" |
|
LTLIBOBJS=`echo "$LIB@&t@OBJS" |
|
||||||
@ -1113,6 +1135,7 @@ AC_CONFIG_FILES(Makefile src/Makefile
|
|||||||
AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
|
AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)
|
||||||
AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile)
|
AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile)
|
||||||
AC_CONFIG_FILES(lang/cpp/tests/Makefile)
|
AC_CONFIG_FILES(lang/cpp/tests/Makefile)
|
||||||
|
AC_CONFIG_FILES(lang/cpp/src/gpgmepp.pc)
|
||||||
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig-w32.cmake.in)
|
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig-w32.cmake.in)
|
||||||
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig.cmake.in)
|
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig.cmake.in)
|
||||||
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfigVersion.cmake)
|
AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfigVersion.cmake)
|
||||||
|
@ -19,8 +19,12 @@
|
|||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||||
# 02111-1307, USA
|
# 02111-1307, USA
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = gpgmepp.pc
|
||||||
|
|
||||||
EXTRA_DIST = GpgmeppConfig.cmake.in.in GpgmeppConfigVersion.cmake.in \
|
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
|
lib_LTLIBRARIES = libgpgmepp.la
|
||||||
|
|
||||||
|
13
lang/cpp/src/gpgmepp.pc.in
Normal file
13
lang/cpp/src/gpgmepp.pc.in
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user