diff --git a/.gitignore b/.gitignore index 7cfb1d95..ec26af30 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ missing stamp-h1 autom4te.cache +ofono.pc include/ofono include/version.h src/builtin.h diff --git a/Makefile.am b/Makefile.am index e6b308b6..a38fcb99 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,6 +22,9 @@ local_headers = $(foreach file,$(pkginclude_HEADERS) \ $(nodist_pkginclude_HEADERS), \ include/ofono/$(notdir $(file))) +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = ofono.pc + if DATAFILES dbusconfdir = @DBUS_CONFDIR@ diff --git a/configure.ac b/configure.ac index 6e0d9d39..1b9867c4 100644 --- a/configure.ac +++ b/configure.ac @@ -222,4 +222,4 @@ fi AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}", [Directory for the configuration files]) -AC_OUTPUT(Makefile include/version.h src/ofono.service) +AC_OUTPUT(Makefile include/version.h src/ofono.service ofono.pc) diff --git a/ofono.pc.in b/ofono.pc.in new file mode 100644 index 00000000..b4d0a77d --- /dev/null +++ b/ofono.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +plugindir=${libdir}/@PACKAGE@/plugins + +Name: @PACKAGE@ +Description: oFono - Open Source Telephony +Version: @VERSION@ +Requires: glib-2.0 dbus-1 +Cflags: -I${includedir} +Libs: -module -avoid-version -export-symbols-regex '@PACKAGE@_plugin_desc'