From 4cbe6b69942d3a27a432426f2a77d2aa6caf2d8a Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 1 Jan 2018 13:42:18 +0100 Subject: [PATCH] libXrandr, new recipe (#2000) --- x11-libs/libxrandr/libxrandr-1.5.1.recipe | 90 +++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 x11-libs/libxrandr/libxrandr-1.5.1.recipe diff --git a/x11-libs/libxrandr/libxrandr-1.5.1.recipe b/x11-libs/libxrandr/libxrandr-1.5.1.recipe new file mode 100644 index 000000000..ceaba018a --- /dev/null +++ b/x11-libs/libxrandr/libxrandr-1.5.1.recipe @@ -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 +}