Files
haikuports/x11-libs/xcb-util-keysyms/xcb_util_keysyms-0.4.1.recipe
2023-11-16 12:20:33 +01:00

82 lines
2.0 KiB
Bash

SUMMARY="X C-language Bindings sample implementations"
DESCRIPTION="The XCB util modules provides a number of libraries which sit on top of libxcb, the \
core X protocol library, and some of the extension libraries. These experimental libraries \
provide convenience functions and interfaces which make the raw X protocol more usable. Some of \
the libraries also provide client-side code which is not strictly part of the X protocol but \
which have traditionally been provided by Xlib."
HOMEPAGE="https://xcb.freedesktop.org/"
COPYRIGHT="2006-2022 Alan Coopersmith
2008 Ian Osgood
2008 Jamey Sharp
2008 Josh Triplett
2008 Ulrich Eckhardt"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://xorg.freedesktop.org/archive/individual/lib/xcb-util-keysyms-$portVersion.tar.xz"
CHECKSUM_SHA256="7c260a5294412aed429df1da2f8afd3bd07b7cba3fec772fba15a613a6d5c638"
SOURCE_DIR="xcb-util-keysyms-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
xcb_util_keysyms$secondaryArchSuffix = $portVersion
lib:libxcb_keysyms$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libxcb$secondaryArchSuffix
"
PROVIDES_devel="
xcb_util_keysyms${secondaryArchSuffix}_devel = $portVersion
devel:libxcb_keysyms$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
xcb_util_keysyms$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
xorgproto
devel:libxcb$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
util_macros
"
BUILD()
{
autoreconf -fi
runConfigure ./configure --disable-static
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
make install
# remove libtool file
rm -f $libDir/libxcb-keysyms.la
prepareInstalledDevelLib libxcb-keysyms
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}