#!/bin/sh # Build script for libXcursor (autotools, Template A). set -e cd "$SRCDIR" # GOTCHA (found 2026-07-22, Task 4a): this release's libtool-generated # `configure` has no solaris/illumos/hammerhead arm in its dynamic-linker # detection `case $host_os in ...` block - unmatched OS falls through to # `*) dynamic_linker=no ;;` which forces can_build_shared=no (static-only # .a, no .so). Patch the case arm to add hammerhead* alongside the generic # glibc/ELF branch (same SONAME/.so.N convention applies). if [ -f configure ]; then sed -i -E 's/(kopensolaris\*-gnu)([^)]*\))/\1 | hammerhead*\2/' configure fi export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH" export CFLAGS="${CFLAGS} -I$PREFIX/include" export LDFLAGS="${LDFLAGS} -L$PREFIX/lib -R$PREFIX/lib" ./configure \ --prefix="$PREFIX" \ --build="$BUILD_TRIPLE" \ --host="$BUILD_TRIPLE" \ --sysconfdir="$SYSCONFDIR" \ --disable-static gmake -j${JOBS:-1} gmake install DESTDIR="$PKGDIR" # libXcursor - X client-side cursor loading library # https://gitlab.freedesktop.org/xorg/lib/libxcursor [package] name = "libXcursor" version = "1.2.3" release = 1 description = "X client-side cursor loading library" url = "https://xorg.freedesktop.org/releases/individual/lib/" license = "MIT" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = ["libXrender", "libXfixes", "libX11"] build = ["libXrender", "libXfixes", "libX11", "xorgproto", "util-macros"] [[source]] file = "libXcursor-1.2.3.tar.xz" urls = ["https://xorg.freedesktop.org/releases/individual/lib/libXcursor-1.2.3.tar.xz"] checksum = "fde9402dd4cfe79da71e2d96bb980afc5e6ff4f8a7d74c159e1966afb2b2c2c0" [build] parallel = true