diff --git a/.gitignore b/.gitignore index 46a92ea..73e2ff4 100644 --- a/.gitignore +++ b/.gitignore @@ -80,3 +80,4 @@ Makefile.in /src/matrix-event-call-answer.c /src/matrix-event-call-hangup.c /src/matrix-event-call-base.c +/src/matrix-glib-0.0.pc diff --git a/configure.ac b/configure.ac index 342afe2..6489f22 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,7 @@ AC_CONFIG_FILES([ Makefile src/Makefile src/matrix-version.h + src/matrix-glib-0.0.pc docs/Makefile docs/valadoc/Makefile docs/valadoc/gtk-doc/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 6fdf4b1..521b269 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -211,4 +211,9 @@ header_DATA = \ $(INST_H_BUILT_FILES) \ $(NULL) +pkgconfig_in = matrix-glib-$(MATRIX_GLIB_API_VERSION).pc.in +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = $(pkgconfig_in:.in=) +EXTRA_DIST += $(pkgconfig_in) + CLEANFILES += $(typelibs_DATA) diff --git a/src/matrix-glib-0.0.pc.in b/src/matrix-glib-0.0.pc.in new file mode 100644 index 0000000..9c1c242 --- /dev/null +++ b/src/matrix-glib-0.0.pc.in @@ -0,0 +1,14 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +datarootdir=@datarootdir@ +datadir=@datadir@ +includedir=@includedir@ + +Name: libmatrix-glib +Description: GObject API for communicating with a Matrix.org Homeserver +URL: http://gergely.polonkai.eu/matrix-glib-sdk +Version: @MATRIX_GLIB_VERSION@ +Requires: glib-2.0 gobject-2.0 gee-0.8 gio-2.0 json-glib-1.0 +Libs: -L${libdir} -lmatrix-glib-@MATRIX_GLIB_API_VERSION@ +Cflags: -I${includedir}/matrix-glib-@MATRIX_GLIB_API_VERSION@