diff --git a/Makefile.am b/Makefile.am index 9af8f5a..b57d1f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -357,6 +357,9 @@ xwaylandprotopkgconfig_DATA = xwaylandproto.pc dist_doc_DATA += xwaylandproto.txt +xorgprotopkgconfigdir = $(datadir)/pkgconfig +xorgprotopkgconfig_DATA = xorgproto.pc + if LEGACY XCalibrateincludedir = $(includedir)/X11/extensions XCalibrateinclude_HEADERS = \ diff --git a/configure.ac b/configure.ac index 8f8d66b..edac78e 100644 --- a/configure.ac +++ b/configure.ac @@ -156,6 +156,7 @@ AC_CONFIG_FILES([applewmproto.pc xf86rushproto.pc xf86vidmodeproto.pc xineramaproto.pc + xorgproto.pc xproto.pc xproxymngproto.pc xwaylandproto.pc]) diff --git a/meson.build b/meson.build index 51a9c9e..c21f991 100644 --- a/meson.build +++ b/meson.build @@ -51,12 +51,14 @@ pcs = [ 'xf86driproto', 'xf86vidmodeproto', 'xineramaproto', + 'xorgproto', 'xproto', 'xwaylandproto', ] pc_data = configuration_data() pc_data.set('prefix', get_option('prefix')) +pc_data.set('PACKAGE_VERSION', meson.project_version()) # meson does not allow installing the includedir outside of the prefix pc_data.set('includedir', '${prefix}/' + get_option('includedir')) diff --git a/xorgproto.pc.in b/xorgproto.pc.in new file mode 100644 index 0000000..b74a2a6 --- /dev/null +++ b/xorgproto.pc.in @@ -0,0 +1,7 @@ +prefix=@prefix@ +includedir=@includedir@ + +Name: XorgProto +Description: X Window System unified protocol headers +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir}