diff --git a/devel/glib2/Portfile b/devel/glib2/Portfile
index bfbeac99f4..0233b3a458 100644
a
|
b
|
configure.args --enable-static --disable-libelf \ |
88 | 89 | |
89 | 90 | configure.perl /usr/bin/perl |
90 | 91 | configure.python /usr/bin/python |
91 | | configure.env-append PCRE_CFLAGS="-I${prefix}/include" \ |
92 | | PCRE_LIBS="-L${prefix}/lib -lpcre" \ |
93 | | PERL_PATH=${configure.perl} \ |
94 | | PKG_CONFIG=false \ |
95 | | ZLIB_CFLAGS="-I${prefix}/include" \ |
96 | | ZLIB_LIBS="-L${prefix}/lib -lz" |
97 | 92 | |
98 | 93 | post-patch { |
99 | 94 | reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c |
… |
… |
pre-configure { |
110 | 105 | } |
111 | 106 | |
112 | 107 | set libffi_version [exec sed -n {s/Version: //p} ${prefix}/lib/pkgconfig/libffi.pc] |
113 | | configure.env-append LIBFFI_CFLAGS="-I${prefix}/lib/libffi-${libffi_version}/include" \ |
| 108 | configure.env-append PCRE_CFLAGS="[exec ${prefix}/bin/pkg-config --cflags libpcre]" \ |
| 109 | PCRE_LIBS="[exec ${prefix}/bin/pkg-config --libs libpcre]" \ |
| 110 | PERL_PATH=${configure.perl} \ |
| 111 | PKG_CONFIG=false \ |
| 112 | ZLIB_CFLAGS="[exec ${prefix}/bin/pkg-config --cflags zlib]" \ |
| 113 | ZLIB_LIBS="[exec ${prefix}/bin/pkg-config --libs zlib]" \ |
| 114 | LIBFFI_CFLAGS="-I${prefix}/lib/libffi-${libffi_version}/include" \ |
114 | 115 | LIBFFI_LIBS="-L${prefix}/lib -lffi" |
115 | 116 | } |
116 | 117 | |
diff --git a/devel/glib2/files/patch-glib-2.0.pc.in.diff b/devel/glib2/files/patch-glib-2.0.pc.in.diff
index 9d9c5b154f..b3e4c45b43 100644
a
|
b
|
|
5 | 5 | Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ |
6 | 6 | Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ @INTLLIBS@ @ICONV_LIBS@ @CARBON_LIBS@ @COCOA_LIBS@ |
7 | 7 | -Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include @GLIB_EXTRA_CFLAGS@ |
8 | | +Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include -I${includedir} @GLIB_EXTRA_CFLAGS@ |
| 8 | +Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include @PCRE_CFLAGS@ @GLIB_EXTRA_CFLAGS@ |