New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82194


Ignore:
Timestamp:
08/10/11 03:13:54 (4 years ago)
Author:
raphael@…
Message:

openvrml:

  • fix build with boost 1.47.0 by applying upstream patch; see #30689
  • replace no_x11 and no_opengl variant
Location:
trunk/dports/graphics/openvrml
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/openvrml/Portfile

    r81337 r82194  
    2929                        port:jpeg \ 
    3030                        port:fontconfig \ 
    31                         port:mesa \ 
    3231                        port:libxml2 \ 
    3332                        port:zlib \ 
    3433                        port:libiconv \ 
    35                         path:lib/pkgconfig/sdl.pc:libsdl \ 
    3634                        path:bin/glibtool:libtool 
    3735depends_build           port:pkgconfig 
    3836 
    3937minimum_xcodeversions   {9 3.1} 
     38 
     39patchfiles              patch-scopeexit.diff 
    4040 
    4141configure.args          --disable-script-node-javascript \ 
     
    4444                        --disable-player \ 
    4545                        --disable-mozilla-plugin \ 
    46                         --with-x \ 
    47                         --x-includes=${prefix}/include \ 
    48                         --x-libraries=${prefix}/lib 
     46                        --without-x \ 
     47                        --disable-gl-renderer \ 
     48                        --disable-examples 
    4949configure.ldflags-append    -lboost_system-mt 
    5050 
     
    6161} 
    6262 
    63 variant js_mozilla conflicts no_x11 description {Enable support for JavaScript in the Script node with Mozilla} { 
     63variant js_mozilla requires x11 description {Enable support for JavaScript in the Script node with Mozilla} { 
    6464    depends_lib-append          path:lib/xulrunner/libxul.dylib:xulrunner 
    6565    configure.args-delete       --disable-script-node-javascript 
     
    7676} 
    7777 
    78 variant no_opengl conflicts xembed description {Do not build the GL renderer} { 
     78variant opengl conflicts no_opengl description {Build the OpenGL renderer} { 
    7979    # examples need SDL player which needs OpenGL 
    80     depends_lib-delete          port:mesa \ 
     80    depends_lib-append          port:mesa \ 
    8181                                path:lib/pkgconfig/sdl.pc:libsdl 
    82     configure.args-append       --disable-gl-renderer \ 
     82    configure.args-delete       --disable-gl-renderer \ 
    8383                                --disable-examples 
    8484} 
    8585 
    86 variant xembed conflicts no_opengl no_x11 description {Build the XEmbed control} { 
     86variant no_opengl conflicts opengl description {Legacy compatibility variant} {} 
     87 
     88variant xembed requires opengl x11 description {Build the XEmbed control} { 
    8789    depends_lib-append          port:gtkglext \ 
    8890                                port:dbus-glib 
     
    9698} 
    9799 
    98 variant mozilla_plugin requires xembed conflicts no_x11 description {Build the Mozilla plug-in} { 
     100variant mozilla_plugin requires xembed description {Build the Mozilla plug-in} { 
    99101    depends_lib-append          path:lib/xulrunner/libxul.dylib:xulrunner 
    100102    configure.args-delete       --disable-mozilla-plugin 
     
    104106} 
    105107 
    106 variant no_x11 conflicts js_mozilla mozilla_plugin { 
    107     depends_lib-delete          port:mesa 
    108     configure.args-delete       --with-x \ 
     108variant x11 conflicts no_x11 { 
     109    depends_lib-append          port:mesa 
     110    configure.args-delete       --without-x 
     111    configure.args-append       --with-x \ 
    109112                                --x-includes=${prefix}/include \ 
    110113                                --x-libraries=${prefix}/lib 
    111     configure.args-append       --without-x 
     114} 
     115 
     116variant no_x11 conflicts x11 description {Legacy compatibility variant} {} 
     117 
     118if {![variant_isset no_x11]} { 
     119    if {![variant_isset no_opengl]} { 
     120        default_variants        +x11+opengl 
     121    } else { 
     122        default_variants        +x11 
     123    } 
     124} else { 
     125    if {![variant_isset no_opengl]} { 
     126        default_variants        +opengl 
     127    } 
    112128} 
    113129 
Note: See TracChangeset for help on using the changeset viewer.