Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / tools / macos-setup-patches / qt-fix-pc-file
blobfa9ba54bd5820ca7e3555f57a908d8a1d9ebbd89
1 #! /bin/sh
3 # Fix a Qt .pc file's flags.
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 2014 Gerald Combs
9 # SPDX-License-Identifier: GPL-2.0-or-later
11 # Fix a single Qt .pc file to provide the right flags; a -F flag is
12 # needed to point to the directory under which the frameworks are
13 # placed, and a -I flag needs to point to the directory where
14 # the include files for the component in question are place in
15 # the framework's directory hierarchy, rather thany to where the
16 # include files *would* be if the component *weren't* distributed
17 # as a framework.
19 ed - "$1" <<EOF
21 /^Cflags: /s;-I\${includedir}/\([A-Za-z0-9]*\);-I\${libdir}/\1.framework/Versions/5/Headers;
22 /^Cflags: /s;;Cflags: -F\${libdir} ;