Ticket #15219: Portfile.diff

File Portfile.diff, 1.3 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    3535# (e.g. assistant.app) and the examples directory
    3636set bindir ${prefix}/libexec/${name}/bin
    3737
    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     }
     38post-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
    4744}
    4845
    4946# See