Ticket #40844: mpv-isystem.diff

File mpv-isystem.diff, 771 bytes (added by Ionic (Mihai Moldovan), 10 years ago)

No functional change. Replace the previous hack adding -I${worksrcpath} as the very first argument to CPPFLAGS by using -isystem for the MacPorts include directory instead. This is cleaner and supposed to be the default MP behavior in the future anyway.

  • multimedia/mpv/Portfile

    diff --git a/multimedia/mpv/Portfile b/multimedia/mpv/Portfile
    index f76ed70..51717c1 100644
    a b configure.args-append --disable-macosx-bundle \ 
    8888                        --disable-lua
    8989
    9090# Fix picking up the correct talloc version.
    91 configure.cppflags -I${worksrcpath} ${configure.cppflags}
     91# -isystem has the added benefit of moving the include
     92# directory specified to the end of the include path list.
     93# This will help the build system respect custom include
     94# paths correctly (i.e., searching them before the MP include
     95# directory.)
     96configure.cppflags-replace  -I${prefix}/include -isystem${prefix}/include
    9297
    9398platform darwin {
    9499    # FIXME: use ${os.minor} once it hits stable base