make/install-pc-file.sh

Sun, 30 Nov 2025 15:45:35 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 15:45:35 +0100
changeset 1533
6d65b1e97136
parent 1523
b5c32391802f
permissions
-rw-r--r--

include stdalign.h when not using C23 or newer

#!/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

mercurial