Ticket #25144: Portfile-plugin.diff

File Portfile-plugin.diff, 1.1 KB (added by kiwi.2008@…, 14 years ago)

Patch file supporting requested variant

  • Portfile

    old new  
    3939}
    4040
    4141depends_lib \
    42     port:eigen \
    43     port:orocos-rtt \
    44     port:boost
     42    port:eigen
    4543
    4644archcheck.files \
    47     lib/libEigen2.dylib \
    48     lib/libboost_thread-mt.dylib \
    49     lib/liborocos-rtt-macosx.dylib
     45    lib/libEigen2.dylib
    5046
    5147configure.args-append \
    5248    -DCMAKE_CXX_FLAGS=-I${prefix}/include/eigen2 \
    5349    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
    5450    -DEIGEN2_INCLUDE_DIR=${prefix}/include/eigen2 \
    5551    -DOROCOS_INSTALL=${prefix} \
    56     -DOROCOS_PLUGIN=1 \
     52    -DOROCOS_PLUGIN=0 \
    5753    -DOROCOS_TARGET=macosx
    5854
     55variant plugin description "Enable Orocos RTT plugin" {
     56
     57        depends_lib-append \
     58                port:orocos-rtt \
     59                port:boost
     60
     61        archcheck.files-append \
     62                lib/libboost_thread-mt.dylib \
     63                lib/liborocos-rtt-macosx.dylib
     64
     65        configure.args-delete \
     66                -DOROCOS_PLUGIN=0
     67
     68        configure.args-append \
     69                -DOROCOS_PLUGIN=1
     70}
    5971variant python26 description "Enable Python 2.6 bindings" {
    6072    post-patch {
    6173        reinplace {s:\*\.sip:PyKDL/&:} \