Ticket #31554: port-wxwidgets_devel_universal_lion.diff

File port-wxwidgets_devel_universal_lion.diff, 1.4 KB (added by anddam (Andrea D'Amore), 13 years ago)
  • Portfile

     
    77conflicts               wxgtk wxWidgets
    88version                 2.9.2
    99revision                1
    10 
     10license         wxWindow Licence 3.1
    1111categories              graphics devel
    1212platforms               darwin
    1313maintainers             jwa
     
    8383
    8484platform darwin 11 {
    8585         configure.args-append \
    86          --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \
    87          --with-macosx-version-min=10.6
     86         --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk \
     87         --with-macosx-version-min=10.6
     88
     89    universal_variant yes
     90    variant universal {
     91        configure.args-append   --enable-universal_binary
     92
     93        #removing single arch target
     94        configure.cppflags-delete -arch ${configure.build_arch}
     95       
     96        #enabling the following breaks a cpp test while configuring
     97        #it's not needed as archs are hardcoded in configure script
     98#        configure.cppflags-append "-arch [join ${universal_archs} \ -arch\ ]"
     99
     100        #removing hardcoded ppc target as it won't build with XCode 4.1
     101        #this is required due the use of --enable-universal_binary
     102        #it could stay out of universal variant as ppc platform isn't supported in darwin 11
     103        post-patch {
     104            reinplace -- "s|-arch ppc ||" ${worksrcpath}/../configure
     105        }
     106    }
    88107}
    89108
    90109default_variants        +sdl