make/install-pc-file.sh

Sun, 30 Nov 2025 14:10:56 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 14:10:56 +0100
changeset 1527
9661e947eec1
parent 1523
b5c32391802f
permissions
-rw-r--r--

add release date for UCX 3.2

1457
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 #!/bin/sh
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2
1523
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
3 if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ] ; then
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
4 echo "Usage: $0 <pkgconfigdir> <version> <libdir> <includedir> [destdir]"
1457
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 exit 1
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 fi
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7
1523
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
8 pkgconfigdir="$1"
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
9 version="$2"
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
10 libdir="$3"
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
11 includedir="$4"
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
12 destdir="$5"
1457
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13
1523
b5c32391802f update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents: 1484
diff changeset
14 cat << EOF > "$destdir$pkgconfigdir/ucx.pc"
1457
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 libdir=$libdir
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 includedir=$includedir
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 Name: ucx
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 Description: UAP Common Extensions
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 Version: $version
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 Libs: -L\${libdir} -lucx
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 Cflags: -I\${includedir}
2e59f713c107 add pkgconf support
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 EOF

mercurial