aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am18
-rw-r--r--src/indicator-messages-status-provider-0.5.pc.in.in15
3 files changed, 33 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 95868b7..f57d7ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,6 +159,7 @@ AM_GLIB_GNU_GETTEXT
AC_OUTPUT([
Makefile
src/Makefile
+src/indicator-messages-status-provider-0.5.pc.in
data/Makefile
data/icons/Makefile
data/icons/16x16/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 62159cb..c631436 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,8 @@
BUILT_SOURCES =
EXTRA_DIST =
+CLEANFILES =
+DISTCLEANFILES =
libexec_PROGRAMS = indicator-messages-service
@@ -93,6 +95,20 @@ STATUS_PROVIDER_DIR = $(libexecdir)/status-providers/$(STATUS_PROVIDER_API_VERSI
statusprovidersdir = $(STATUS_PROVIDER_DIR)
statusproviders_LTLIBRARIES =
+EXTRA_DIST += \
+ indicator-messages-status-provider-0.5.pc.in.in
+CLEANFILES += \
+ indicator-messages-status-provider-0.5.pc
+
+pkgconfig_DATA = indicator-messages-status-provider-0.5.pc
+pkgconfigdir = $(libdir)/pkgconfig
+
+%.pc: %.pc.in
+ sed \
+ -e "s|\@status_provider_dir\@|$(STATUS_PROVIDER_DIR)|" \
+ -e "s|\@status_provider_api_version\@|$(STATUS_PROVIDER_API_VERSION)|" \
+ $< > $@
+
lib_LTLIBRARIES = \
libindicator-messages-status-provider.la
@@ -255,6 +271,6 @@ libemesene_la_LDFLAGS = -module -avoid-version
# Extras
######################################
-CLEANFILES = \
+CLEANFILES += \
$(BUILT_SOURCES)
diff --git a/src/indicator-messages-status-provider-0.5.pc.in.in b/src/indicator-messages-status-provider-0.5.pc.in.in
new file mode 100644
index 0000000..3fe4cf2
--- /dev/null
+++ b/src/indicator-messages-status-provider-0.5.pc.in.in
@@ -0,0 +1,15 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+bindir=@bindir@
+includedir=@includedir@
+
+statusproviderdir=@status_provider_dir@
+
+Cflags: -I${includedir}/indicator-messages-status-provider-0.@status_provider_api_version@
+Requires: gobject-2.0
+Libs: -L${libdir} -lindicator-messages-status-provider
+
+Name: indicator-messages-status-provider
+Description: Status providers for the indicator-messages menu.
+Version: @VERSION@