x11-libs: Mark libraries that actually utilize the X connection directly.

Add a comment and make them depend on libX11_xcb instead of just libX11.
The libraries which do not actually use the connection but just call APIs
are left alone.

Preparation for BeXlib (which is a ways off, but this will allow me
to build things in HaikuPorts against it properly.)
This commit is contained in:
Augustin Cavalier
2021-12-14 16:53:20 -05:00
parent 5eeb385d4b
commit 887f534061
12 changed files with 70 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ COPYRIGHT="2000, Compaq Computer Corporation.
2011 Dave Airlie
2006 Keith Packard"
LICENSE="MIT (no promotion)"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXrandr-$portVersion.tar.bz2"
CHECKSUM_SHA256="8aea0ebe403d62330bb741ed595b53741acf45033d3bda1792f1d4cc3daee023"
SOURCE_DIR="libXrandr-$portVersion"
@@ -22,13 +22,15 @@ SECONDARY_ARCHITECTURES="x86"
libVersion="2.2.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
# server-interfacing: needs libX11_xcb.
PROVIDES="
libxrandr$secondaryArchSuffix = $portVersion
lib:libXrandr$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libX11$secondaryArchSuffix
lib:libX11_xcb$secondaryArchSuffix
lib:libXext$secondaryArchSuffix
lib:libXrender$secondaryArchSuffix
"
@@ -39,7 +41,7 @@ PROVIDES_devel="
"
REQUIRES_devel="
libxrandr$secondaryArchSuffix == $portVersion base
devel:libX11$secondaryArchSuffix
devel:libX11_xcb$secondaryArchSuffix
devel:libXext$secondaryArchSuffix
devel:libXrender$secondaryArchSuffix
devel:randrproto
@@ -48,7 +50,7 @@ REQUIRES_devel="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libX11$secondaryArchSuffix
devel:libX11_xcb$secondaryArchSuffix
devel:libXext$secondaryArchSuffix
devel:libXrender$secondaryArchSuffix
devel:util_macros