From 72c595e96c615d138d37d204152d3f71a60f02d1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 3 Jun 2004 10:05:20 +0000 Subject: Add PKGConfig support --- Makefile.am | 5 ++++- bluez.pc.in | 11 +++++++++++ configure.in | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 bluez.pc.in 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) -- cgit