libXrandr, new recipe (#2000)

This commit is contained in:
Schrijvers Luc
2018-01-01 13:42:18 +01:00
committed by fbrosson
parent 8f52cec342
commit 4cbe6b6994

View File

@@ -0,0 +1,90 @@
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)"
REVISION="1"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXrandr-$portVersion.tar.bz2"
CHECKSUM_SHA256="1ff9e7fa0e4adea912b16a5f0cfa7c1d35b0dcda0e216831f7715c8a3abcf51a"
SOURCE_DIR="libXrandr-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion=2.2.0
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libxrandr$secondaryArchSuffix = $portVersion
lib:libXrandr$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libX11$secondaryArchSuffix
lib:libxext$secondaryArchSuffix
lib:libxrender$secondaryArchSuffix
"
PROVIDES_devel="
libxrandr${secondaryArchSuffix}_devel = $portVersion
devel:libXrandr$secondaryArchSuffix = $libVersion
"
REQUIRES_devel="
libxrandr$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:kbproto$secondaryArchSuffix
devel:libpthread_stubs$secondaryArchSuffix
devel:libX11$secondaryArchSuffix
devel:libxext$secondaryArchSuffix
devel:libxrender$secondaryArchSuffix
devel:randrproto$secondaryArchSuffix
devel:renderproto$secondaryArchSuffix
devel:xextproto$secondaryArchSuffix
devel:xproto$secondaryArchSuffix
devel:xtrans$secondaryArchSuffix
"
BUILD_PREREQUIRES="
devel:util_macros$secondaryArchSuffix
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
rm -f $libDir/*.la
prepareInstalledDevelLib libXrandr
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir
}