summaryrefslogtreecommitdiff
path: root/libextra
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2004-10-24 14:12:08 +0000
committerSimon Josefsson <simon@josefsson.org>2004-10-24 14:12:08 +0000
commit4b818ab48744f808bc4a1b121fc95d7bbd89a8c9 (patch)
treef165dfd1842c97e2bd460d99dc6a7abe29dd71a5 /libextra
parentd7216ba5bcb55162bf72f263e9335a7fa2c87093 (diff)
downloadgnutls-4b818ab48744f808bc4a1b121fc95d7bbd89a8c9.tar.gz
Add pkg-config meta files, suggested by Stéphane LOEUILLET
<stephane.loeuillet@tiscali.fr>.
Diffstat (limited to 'libextra')
-rw-r--r--libextra/Makefile.am5
-rw-r--r--libextra/gnutls-extra.pc.in22
2 files changed, 27 insertions, 0 deletions
diff --git a/libextra/Makefile.am b/libextra/Makefile.am
index 9f1698328e..2545f3bbd2 100644
--- a/libextra/Makefile.am
+++ b/libextra/Makefile.am
@@ -5,6 +5,11 @@ DIST_SUBDIRS = openpgp opencdk
m4datadir = $(datadir)/aclocal
m4data_DATA = libgnutls-extra.m4
+# Pkg-config script.
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gnutls-extra.pc
+DISTCLEANFILES = $(pkgconfig_DATA)
+
if HAVE_LD_VERSION_SCRIPT
libgnutls_extra_version_script_cmd = -Wl,--version-script=$(srcdir)/libgnutls-extra.vers
else
diff --git a/libextra/gnutls-extra.pc.in b/libextra/gnutls-extra.pc.in
new file mode 100644
index 0000000000..8e698796bd
--- /dev/null
+++ b/libextra/gnutls-extra.pc.in
@@ -0,0 +1,22 @@
+# Process this file with autoconf to produce a pkg-config metadata file.
+# Copyright 2002, 2004 Simon Josefsson
+#
+# This file is free software; as a special exception the author gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+#
+# This file is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: GnuTLS-extra
+Description: Additional add-ons for GnuTLS licensed under GPL
+Requires: gnutls
+Version: @VERSION@
+Libs: -L${libdir} -lgnutls-extra
+Cflags: -I${includedir}