From a88ee181228b669b90aa81892ed8608a5a81d691 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Thu, 16 Nov 2023 12:20:33 +0100 Subject: [PATCH] xcb_util_keysyms, new recipe (#9758) --- .../xcb_util_keysyms-0.4.1.recipe | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 x11-libs/xcb-util-keysyms/xcb_util_keysyms-0.4.1.recipe diff --git a/x11-libs/xcb-util-keysyms/xcb_util_keysyms-0.4.1.recipe b/x11-libs/xcb-util-keysyms/xcb_util_keysyms-0.4.1.recipe new file mode 100644 index 000000000..2abc7147c --- /dev/null +++ b/x11-libs/xcb-util-keysyms/xcb_util_keysyms-0.4.1.recipe @@ -0,0 +1,81 @@ +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 +}