summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-10-21 14:10:14 +0200
committerAlexander Larsson <alexl@redhat.com>2015-11-11 11:26:03 +0100
commit452c5d38c10a42e5cfe62638f6c840a911ecf594 (patch)
tree240b51b8be35c31d42462f230a5080eca9f8f97e
parentff63e21073b90dc596c23b90c96b29b7fe54f0e8 (diff)
downloadxdg-app-452c5d38c10a42e5cfe62638f6c840a911ecf594.tar.gz
Add xdg-app.pc file with variable for interfaces_dir
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac1
-rw-r--r--xdg-app.pc.in10
3 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 5981077..2b9caa0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -74,3 +74,7 @@ DISTCLEANFILES += xdg-app.env
xdg-app.env: env.d/xdg-app.env.in
$(AM_V_GEN) $(SED) -e "s|\@localstatedir\@|$(localstatedir)|" \
-e "s|\@sysconfdir\@|$(sysconfdir)|" $< > $@
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = xdg-app.pc
+EXTRA_DIST += xdg-app.pc.in
diff --git a/configure.ac b/configure.ac
index 9054f47..4f3f383 100644
--- a/configure.ac
+++ b/configure.ac
@@ -173,5 +173,6 @@ AM_CONDITIONAL(BUILD_DOCUMENTATION, test x$enable_documentation = xyes)
AC_CONFIG_FILES([
Makefile
doc/Makefile
+xdg-app.pc
])
AC_OUTPUT
diff --git a/xdg-app.pc.in b/xdg-app.pc.in
new file mode 100644
index 0000000..e7fb8c2
--- /dev/null
+++ b/xdg-app.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+datarootdir=@datarootdir@
+datadir=@datadir@
+
+interfaces_dir=${datadir}/dbus-1/interfaces/
+
+Name: xdg-app
+Description: Application sandboxing framework
+Version: @VERSION@