2018-01-01 12:42:18 +00:00
|
|
|
SUMMARY="X Resize, Rotate and Reflection extension library"
|
|
|
|
DESCRIPTION="libXrandr provides an X Window System client interface to \
|
|
|
|
the RandR extension to the X protocol. \
|
|
|
|
The RandR extension allows for run-time configuration of display attributes \
|
|
|
|
such as resolution, rotation, and reflection."
|
|
|
|
HOMEPAGE="https://www.x.org/releases/individual/lib/"
|
|
|
|
COPYRIGHT="2000, Compaq Computer Corporation.
|
|
|
|
2002 Hewlett-Packard Company, Inc.
|
|
|
|
2006 Intel Corporation
|
|
|
|
2008 Red Hat, Inc.
|
|
|
|
2011 Dave Airlie
|
|
|
|
2006 Keith Packard"
|
|
|
|
LICENSE="MIT (no promotion)"
|
2019-10-29 18:27:29 +00:00
|
|
|
REVISION="1"
|
2018-01-01 12:42:18 +00:00
|
|
|
SOURCE_URI="https://www.x.org/releases/individual/lib/libXrandr-$portVersion.tar.bz2"
|
2019-10-29 18:27:29 +00:00
|
|
|
CHECKSUM_SHA256="8aea0ebe403d62330bb741ed595b53741acf45033d3bda1792f1d4cc3daee023"
|
2018-01-01 12:42:18 +00:00
|
|
|
SOURCE_DIR="libXrandr-$portVersion"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all"
|
2018-01-01 12:42:18 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
2018-08-06 13:04:59 +00:00
|
|
|
libVersion="2.2.0"
|
2018-01-01 12:42:18 +00:00
|
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
libxrandr$secondaryArchSuffix = $portVersion
|
|
|
|
lib:libXrandr$secondaryArchSuffix = $libVersionCompat
|
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libX11$secondaryArchSuffix
|
2018-08-16 05:26:45 +00:00
|
|
|
lib:libXext$secondaryArchSuffix
|
|
|
|
lib:libXrender$secondaryArchSuffix
|
2018-01-01 12:42:18 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
PROVIDES_devel="
|
|
|
|
libxrandr${secondaryArchSuffix}_devel = $portVersion
|
|
|
|
devel:libXrandr$secondaryArchSuffix = $libVersion
|
|
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
|
|
libxrandr$secondaryArchSuffix == $portVersion base
|
2018-08-16 05:26:45 +00:00
|
|
|
devel:libX11$secondaryArchSuffix
|
|
|
|
devel:libXext$secondaryArchSuffix
|
|
|
|
devel:libXrender$secondaryArchSuffix
|
|
|
|
devel:randrproto
|
|
|
|
devel:xproto
|
2018-01-01 12:42:18 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libX11$secondaryArchSuffix
|
2018-08-16 05:26:45 +00:00
|
|
|
devel:libXext$secondaryArchSuffix
|
|
|
|
devel:libXrender$secondaryArchSuffix
|
|
|
|
devel:util_macros
|
2018-01-01 12:42:18 +00:00
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:aclocal
|
|
|
|
cmd:autoconf
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
defineDebugInfoPackage libxrandr$secondaryArchSuffix \
|
|
|
|
$libDir/libXrandr.so.$libVersion
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
autoreconf -vfi
|
|
|
|
runConfigure ./configure
|
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
make install
|
|
|
|
|
2018-08-16 05:26:45 +00:00
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
|
|
install -m 0755 -d "$developDocDir"
|
2019-10-29 18:27:29 +00:00
|
|
|
install -m 0644 -t "$developDocDir" README.md
|
2018-08-16 05:26:45 +00:00
|
|
|
maybe_manDir="$manDir"
|
|
|
|
else
|
|
|
|
rm -rf "$manDir"
|
|
|
|
rm -rf "$developDir/documentation"
|
|
|
|
maybe_manDir=
|
|
|
|
fi
|
|
|
|
|
2018-01-01 12:42:18 +00:00
|
|
|
rm -f $libDir/*.la
|
|
|
|
|
|
|
|
prepareInstalledDevelLib libXrandr
|
|
|
|
fixPkgconfig
|
|
|
|
|
|
|
|
# devel package
|
|
|
|
packageEntries devel \
|
|
|
|
$developDir \
|
2018-08-16 05:26:45 +00:00
|
|
|
${maybe_manDir:+"$maybe_manDir"}
|
2018-01-01 12:42:18 +00:00
|
|
|
}
|