aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2009-12-09 11:58:22 -0600
committerCody Russell <crussell@canonical.com>2009-12-09 11:58:22 -0600
commitbae74eff1707ab9abac1f6122506ff1b7cc20098 (patch)
treea3a2fd7b3bbe09567b467e89a59291484809ef5e
parentcd2a4a9104edd5558b2d610b3f17d93edd990b55 (diff)
parent02ab21b5f931e12103420893137819688e607154 (diff)
downloadlibayatana-appindicator-bae74eff1707ab9abac1f6122506ff1b7cc20098.tar.gz
libayatana-appindicator-bae74eff1707ab9abac1f6122506ff1b7cc20098.tar.bz2
libayatana-appindicator-bae74eff1707ab9abac1f6122506ff1b7cc20098.zip
Add pkgconfig support, fixes bug #494583
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am5
-rw-r--r--src/libappindicator/appindicator-0.1.pc.in14
3 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b795e93..74cef75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,7 @@ AC_SUBST(DBUSSERVICEDIR)
AC_OUTPUT([
Makefile
src/Makefile
+src/libappindicator/appindicator-0.1.pc
data/Makefile
tests/Makefile
example/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 1c19d91..f1878a4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,7 @@
CLEANFILES =
DISTCLEANFILES =
BUILT_SOURCES =
-EXTRA_DIST =
+EXTRA_DIST = appindicator-0.1.pc.in
include $(top_srcdir)/Makefile.am.enum
include $(top_srcdir)/Makefile.am.marshal
@@ -57,6 +57,9 @@ glib_marshal_prefix = _application_service_marshal
# Library
##################################
+pkgconfig_DATA = libappindicator/appindicator-0.1.pc
+pkgconfigdir = $(libdir)/pkgconfig
+
glib_enum_h = libappindicator/app-indicator-enum-types.h
glib_enum_c = libappindicator/app-indicator-enum-types.c
glib_enum_headers = $(libappindicator_headers)
diff --git a/src/libappindicator/appindicator-0.1.pc.in b/src/libappindicator/appindicator-0.1.pc.in
new file mode 100644
index 0000000..b80fded
--- /dev/null
+++ b/src/libappindicator/appindicator-0.1.pc.in
@@ -0,0 +1,14 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+bindir=@bindir@
+includedir=@includedir@
+
+Cflags: -I${includedir}/libappindicator-0.1
+Requires: dbusmenu-glib gtk+-2.0
+Libs: -L${libdir} -lappindicator
+
+Name: appindicator-0.1
+Description: Application indicators
+Version: @VERSION@
+