build: Add a meta xorgproto.pc

Currently each protocol has its own version. Also, the standalone
repositories for each of those protocols is deprecated in favor of this
xorgproto package.

Add an xorgproto.pc that contains the actual package version, so that
applications do not have to list each protocol and the version they
require, but can chose to require instead just a particular version of
xorgproto.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
Olivier Fourdan 2023-06-13 16:38:11 +02:00
parent 16ca6a5c59
commit e0768ef959
4 changed files with 13 additions and 0 deletions

View file

@ -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 = \

View file

@ -156,6 +156,7 @@ AC_CONFIG_FILES([applewmproto.pc
xf86rushproto.pc
xf86vidmodeproto.pc
xineramaproto.pc
xorgproto.pc
xproto.pc
xproxymngproto.pc
xwaylandproto.pc])

View file

@ -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'))

7
xorgproto.pc.in Normal file
View file

@ -0,0 +1,7 @@
prefix=@prefix@
includedir=@includedir@
Name: XorgProto
Description: X Window System unified protocol headers
Version: @PACKAGE_VERSION@
Cflags: -I${includedir}