summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-06-03 10:05:20 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-06-03 10:05:20 +0000
commit72c595e96c615d138d37d204152d3f71a60f02d1 (patch)
tree497897646b1376959ec753bc134a52dba44e7511
parent60def948f68b9c02a9bb508e662d172ccab7ab65 (diff)
Add PKGConfig support
-rw-r--r--Makefile.am5
-rw-r--r--bluez.pc.in11
-rw-r--r--configure.in2
3 files changed, 16 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2f4de561..2de6775b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,9 @@
SUBDIRS := include src
-DISTCLEANFILES = conftest.c conftest
+DISTCLEANFILES = conftest.c conftest bluez.pc
EXTRA_DIST = ChangeLog libs.spec
+
+install-data-local:
+ $(INSTALL) -D -m 755 $(top_builddir)/bluez.pc $(DESTDIR)$(libdir)/pkgconfig/bluez.pc
diff --git a/bluez.pc.in b/bluez.pc.in
new file mode 100644
index 00000000..e7d98ee8
--- /dev/null
+++ b/bluez.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: BlueZ
+Description: Bluetooth protocol stack for Linux
+Version: @VERSION@
+Requires:
+Libs: -L${libdir} -lbluetooth
+Cflags: -I${includedir}
diff --git a/configure.in b/configure.in
index 253f256e..4aa3aef5 100644
--- a/configure.in
+++ b/configure.in
@@ -23,4 +23,4 @@ m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
AC_PROG_LIBTOOL
-AC_OUTPUT(Makefile include/Makefile src/Makefile)
+AC_OUTPUT(Makefile include/Makefile src/Makefile bluez.pc)