Changeset 148704 for trunk/dports/math


Ignore:
Timestamp:
May 15, 2016, 10:43:22 AM (3 years ago)
Author:
mcalhoun@…
Message:

octave-devel, octave-devel-rc, octave-devel-release: only link against font and OpenGL libraries if they are actually needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/octave-devel/Portfile

    r148703 r148704  
    3131if { ${name} eq ${subport} } {
    3232    version         ${version_tip}
    33     revision        11
     33    revision        12
    3434    hg.tag          225d88a97104
    3535
     
    4848subport octave-devel-rc {
    4949    version         ${version_rc}
    50     revision        6
     50    revision        7
    5151    hg.tag          2b66f30a0de7
    5252
     
    7373subport octave-devel-release {
    7474    version         ${version_release}
    75     revision        2
     75    revision        3
    7676    hg.tag          5162cdfb56d8
    7777
     
    306306depends_lib-append   port:ncurses
    307307depends_lib-append   port:readline
    308 depends_lib-append   port:fontconfig
    309308depends_lib-append   port:pcre
    310309
     
    445444variant fltk description {enable fltk as a graphics toolkit for plotting} {
    446445    depends_lib-append path:lib/libfltk.dylib:fltk
    447 
    448     # as of version 4.1.0+ revision 0:
    449     #    without fltk, configure script turns off "native_graphics," and
    450     #       does not look for either freetype or gl2ps
    451     #    it still looks for and links against fontconfig, however
    452     depends_lib-append \
    453         port:freetype  \
     446    configure.args-replace --without-fltk --with-fltk
     447}
     448default_variants-append +fltk
     449
     450if {[variant_isset fltk] || [variant_isset qt4gui]} {
     451
     452    # native_graphics (fltk) and gui (Qt) require OpenGL and font and printing capabilities
     453    depends_lib-append  \
     454        port:fontconfig \
     455        port:freetype   \
    454456        port:gl2ps
    455457
    456     configure.args-replace --without-fltk --with-fltk
    457 }
    458 default_variants-append +fltk
     458    configure.args-replace --without-opengl --with-framework-opengl
     459}
    459460
    460461if {[variant_isset fltk] && [variant_isset qt4gui]} {
Note: See TracChangeset for help on using the changeset viewer.