38 | | pre-configure { |
39 | | # conflict with pcre |
40 | | if {[file exists ${prefix}/include/pcre.h]} { |
41 | | return -code error "port:pcre may prevent building this port. Please uninstall (or deactivate) pcre and restart the build." |
42 | | } |
43 | | # conflict with openjpeg |
44 | | if {[file exists ${prefix}/include/event.h]} { |
45 | | return -code error "port:openjpeg may prevent building this port. Please uninstall (or deactivate) openjpeg and restart the build." |
46 | | } |
| 38 | post-configure { |
| 39 | # Assures local header is included instead of one from PCRE and OpenJPEG (and perhaps others). |
| 40 | reinplace "s|\$(CFLAGS) \$(INCPATH)|\$(INCPATH) \$(CFLAGS)|g" ${worksrcpath}/src/3rdparty/webkit/WebCore/Makefile.Release |
| 41 | reinplace "s|\$(CXXFLAGS) \$(INCPATH)|\$(INCPATH) \$(CXXFLAGS)|g" ${worksrcpath}/src/3rdparty/webkit/WebCore/Makefile.Release |
| 42 | reinplace "s|\$(CFLAGS) \$(INCPATH)|\$(INCPATH) \$(CFLAGS)|g" ${worksrcpath}/src/3rdparty/webkit/WebCore/Makefile.Debug |
| 43 | reinplace "s|\$(CXXFLAGS) \$(INCPATH)|\$(INCPATH) \$(CXXFLAGS)|g" ${worksrcpath}/src/3rdparty/webkit/WebCore/Makefile.Debug |