x11-libs/libXcursor: new recipe. (#2154)

This commit is contained in:
fbrosson
2018-01-25 00:43:55 +00:00
committed by GitHub
parent 98f382fafd
commit a546a4746e
2 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
SUMMARY="A library for managing X11 cursors"
DESCRIPTION="libXcursor is a cursor management library for the X Window System."
HOMEPAGE="https://www.x.org/wiki/"
COPYRIGHT="2002-2003 Keith Packard"
LICENSE="libXcursor"
REVISION="1"
SOURCE_URI="https://www.x.org/releases/individual/lib/libXcursor-$portVersion.tar.bz2"
CHECKSUM_SHA256="294e670dd37cd23995e69aae626629d4a2dfe5708851bbc13d032401b7a3df6b"
SOURCE_DIR="libXcursor-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.0.2"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libxcursor$secondaryArchSuffix = $portVersion
lib:libxcursor$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libX11$secondaryArchSuffix
lib:libxfixes$secondaryArchSuffix
lib:libxrender$secondaryArchSuffix
"
PROVIDES_devel="
libxcursor${secondaryArchSuffix}_devel = $portVersion
devel:libxcursor$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libxcursor$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:cursorproto$secondaryArchSuffix
devel:fixesproto$secondaryArchSuffix
devel:kbproto$secondaryArchSuffix
devel:libpthread_stubs$secondaryArchSuffix
devel:libX11$secondaryArchSuffix
devel:libxfixes$secondaryArchSuffix
devel:libxrender$secondaryArchSuffix
devel:renderproto$secondaryArchSuffix
devel:xextproto$secondaryArchSuffix
"
BUILD_PREREQUIRES="
devel:util_macros$secondaryArchSuffix
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:autoheader
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
defineDebugInfoPackage libxcursor$secondaryArchSuffix \
"$libDir"/libXcursor.so.$libVersion
BUILD()
{
autoreconf -vfi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
install -d "$docDir"
install -t "$docDir" README
rm -f "$libDir"/libXcursor.la
prepareInstalledDevelLib libXcursor
fixPkgconfig
# devel package
packageEntries devel \
"$developDir" \
"$manDir"
}

View File

@@ -0,0 +1,19 @@
Copyright © 2002 Keith Packard
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
documentation, and that the name of Keith Packard not be used in
advertising or publicity pertaining to distribution of the software without
specific, written prior permission. Keith Packard makes no
representations about the suitability of this software for any purpose. It
is provided "as is" without express or implied warranty.
KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.