<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Jan 12, 2016, at 11:36 AM, Dan Nicholson <<a href="mailto:dbn.lists@gmail.com" class="">dbn.lists@gmail.com</a>> wrote:</div><div class=""><p dir="ltr" class="">On Jan 12, 2016 8:18 AM, "Tollef Fog Heen" <<a href="mailto:tfheen@err.no" class="">tfheen@err.no</a>> wrote:<br class="">
><br class="">
> ]] Craig Treleaven<br class="">
><br class="">
> > Eg, with MacPorts:<br class="">
> > $ pkg-config --cflags x264<br class="">
> > -I/opt/local/include                     ## want to make this disappear since it is the â€˜system include'<br class="">
><br class="">
> If /opt/local/include is already on the compiler search path, pkg-config<br class="">
> should be compiled with that knowledge, at which point it'll strip it<br class="">
> out, like /usr/include on Linux.</p><p dir="ltr" class="">This isn't documented (should be), but you can override pkg-config's notion of the system include path with the environment variable PKG_CONFIG_SYSTEM_INCLUDE_PATH. If that's not set, it uses the compiled in defaults. That's been in pkg-config for a long time, so it should work with the version you have. This should be in the form of a path style variable with : separators.</p></div></blockquote></div>DING, DING, DING!  We have a winner!<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">$ pkg-config --cflags-only-I libass</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">-I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 </div><div style="margin: 0px; font-size: 10px; font-family: Monaco;" class=""><br class=""></div><div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">$ PKG_CONFIG_SYSTEM_INCLUDE_PATH=/opt/local/include pkg-config --cflags-only-I libass</div><div style="margin: 0px; font-size: 10px; font-family: Monaco;" class="">-I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/fribidi -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 </div><div class=""><br class=""></div><div class="">Thank you!!</div><div class=""><br class=""></div><div class="">Craig</div><div class=""><br class=""></div></div></body></html>