Changeset 132849 for trunk/dports/x11


Ignore:
Timestamp:
Feb 11, 2015, 7:36:00 PM (5 years ago)
Author:
jeremyhu@…
Message:

mesa: Fix build on Snow Leopard (#46828)

Location:
trunk/dports/x11/mesa
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/x11/mesa/Portfile

    r132834 r132849  
    4646    5003-applegl-Provide-requirements-of-_SET_DrawBuffers.patch
    4747
     48if {[string match *gcc* ${configure.compiler}]} {
     49    # Older gcc fail to do -Werror=missing-prototypes correctly
     50    # https://trac.macports.org/ticket/46827
     51    patchfiles-append no-missing-prototypes-error.patch
     52}
     53
    4854use_autoreconf      yes
    4955autoreconf.args     -fvi
     
    5662    --with-gallium-drivers=
    5763
    58 if { ![file exists /usr/include/Xplugin.h] } {
    59     # Xplugin.h is missing on Tiger
    60     configure.cppflags-append -I${filespath}/include
     64platform darwin {
     65    if {${os.major} < 11} {
     66        # https://bugs.freedesktop.org/show_bug.cgi?id=89088
     67        configure.env-append INDENT=cat
     68
     69        patchfiles-append static-strndup.patch
     70    }
     71
     72    if { ![file exists /usr/include/Xplugin.h] } {
     73        # Xplugin.h is missing on Tiger
     74        configure.cppflags-append -I${filespath}/include
     75    }
     76
     77    pre-configure {
     78        if { ![file exists /usr/lib/libXplugin.dylib] } {
     79            ui_error "Detected a problem with your development environment.  Please work around it by executing:"
     80            ui_error "sudo ln -s libXplugin.1.dylib /usr/lib/libXplugin.dylib"
     81            return -code error "missing libXplugin.dylib"
     82        }
     83    }
    6184}
    6285
    6386configure.cppflags-delete -I${prefix}/include
    64 
    65 pre-configure {
    66     if { ![file exists /usr/lib/libXplugin.dylib] } {
    67         ui_error "Detected a problem with your development environment.  Please work around it by executing:"
    68         ui_error "sudo ln -s libXplugin.1.dylib /usr/lib/libXplugin.dylib"
    69         return -code error "missing libXplugin.dylib"
    70     }
    71 }
    7287
    7388variant python26 conflicts python27 description {Use python 2.6} {
Note: See TracChangeset for help on using the changeset viewer.