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 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 # Fix a single Qt .pc file to provide the right flags; a -F flag is
24 # needed to point to the directory under which the frameworks are
25 # placed, and a -I flag needs to point to the directory where
26 # the include files for the component in question are place in
27 # the framework's directory hierarchy, rather thany to where the
28 # include files *would* be if the component *weren't* distributed
33 /^Cflags: /s;-I\${includedir}/\([A-Za-z0-9]*\);-I\${libdir}/\1.framework/Versions/5/Headers;
34 /^Cflags: /s;;Cflags: -F\${libdir} ;