Sun, 30 Nov 2025 14:33:19 +0100
fix that pkgconfdir is only different on FreeBSD
#!/bin/sh if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ] ; then echo "Usage: $0 <pkgconfigdir> <version> <libdir> <includedir> [destdir]" exit 1 fi pkgconfigdir="$1" version="$2" libdir="$3" includedir="$4" destdir="$5" cat << EOF > "$destdir$pkgconfigdir/ucx.pc" libdir=$libdir includedir=$includedir Name: ucx Description: UAP Common Extensions Version: $version Libs: -L\${libdir} -lucx Cflags: -I\${includedir} EOF