Ticket #57761: Portfile.diff

File Portfile.diff, 1006 bytes (added by mbrethen, 6 years ago)
  • Portfile

    old new  
    9898    default_variants +x11
    9999}
    100100
    101 variant occ description {(not supported) compile with OpenCascade geometry kernel} {
     101variant oce conflicts opencascade description {(not supported) compile with Open CASCADE Community Edition geometry kernel} {
    102102    depends_lib-append     port:oce
    103103    configure.args-append  -DUSE_OCC=ON \
    104104                           -DOCC_INCLUDE_DIR=${prefix}/include/oce \
    105105                           -DOCC_LIBRARY=${prefix}/lib
    106106}
    107107
     108variant opencascade conflicts oce description {(not supported) compile with Open CASCADE geometry kernel} {
     109    depends_lib-append     port:opencascade
     110    configure.args-append  -DUSE_OCC=ON \
     111        -DOCC_INCLUDE_DIR=${prefix}/include/opencascade \
     112        -DOCC_LIBRARY=${prefix}/lib
     113}
     114
    108115pre-configure {
    109116    if {![variant_isset quartz] && ![variant_isset x11]} {
    110117        error "Either +x11 or +quartz is required"