Ticket #36157: port-wxmaxima.diff

File port-wxmaxima.diff, 1.7 KB (added by anddam (Andrea D'Amore), 12 years ago)
  • Portfile

     
    2323depends_lib     port:libiconv \
    2424                path:lib/pkgconfig/sdl.pc:libsdl \
    2525                port:libxml2 \
    26                 bin:wx-config:wxWidgets \
     26                port:wxWidgets \
    2727                port:zlib
    2828depends_run     port:maxima
    2929
    3030platform darwin 11 {
    31     if {[vercmp $xcodeversion 4.3] >= 0} {
     31    if {[vercmp $xcodeversion 4.4] >= 0} {
     32        configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
     33    } elseif {[vercmp $xcodeversion 4.3] >= 0} {
    3234        configure.cxxflags-append -isysroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
    3335    } else {
    3436        configure.cxxflags-append -isysroot ${developer_dir}/SDKs/MacOSX10.6.sdk
     
    4446configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs
    4547build.target-append wxMaxima.app
    4648
     49if {[catch {registry_active wxwidgets-devel}] == 0} {
     50    default_variants +wxwidgets_devel
     51}
     52
    4753destroot {
    4854    xinstall -m 755 -d ${destroot}${applications_dir}
    4955    file copy ${worksrcpath}/wxMaxima.app ${destroot}${applications_dir}
     
    5460        xinstall -m 644 ${worksrcpath}/${f} ${destroot}${docPath}
    5561    }
    5662}
     63
     64variant wxwidgets_devel description {Build against wxWidgets-devel rather than wxWidgets} {
     65    # if the user has installed wxWidgets-devel, force using that
     66    # (from gobject-introspection)
     67    depends_lib-delete  port:wxWidgets
     68    depends_lib-append  port:wxWidgets-devel
     69    supported_archs     i386 x86_64
     70}