Ticket #48255: orocos-kdl.diff

File orocos-kdl.diff, 2.9 KB (added by ian.rees@…, 9 years ago)
  • devel/orocos-kdl/Portfile

    old new  
    1 # $Id: Portfile 133621 2015-03-06 23:56:53Z jmr@macports.org $
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
     2# $Id$
     3
    24
    35PortSystem      1.0
     6PortGroup       github 1.0
    47PortGroup       cmake 1.0
    58
     9github.setup    orocos orocos_kinematics_dynamics 1.3.0
    610name            orocos-kdl
    7 version         1.0.2
    8 revision        2
    9 set branch      [join [lrange [split ${version} .] 0 1] .]
     11
    1012categories      devel
    11 maintainers     nomaintainer
     13maintainers     gmail.com:ian.rees\
     14                openmaintainer
    1215description     Orocos Kinematics and Dynamics
    1316license         LGPL-2.1
    1417
     
    2326
    2427homepage        http://www.orocos.org/kdl
    2528platforms       darwin
    26 master_sites    http://people.mech.kuleuven.be/~rsmits/kdl/
    27 distname        ${name}-${version}-src
    28 use_bzip2       yes
    29 
    30 checksums       md5     4f786fcf415d2db64681ad487c25f419 \
    31                 sha1    dd06fe5bff8dfa1940fc80cd2b2f84ce25bea4e7 \
    32                 rmd160  c98d51f8f2039d54acd4ef5fd95981b6f228c95f
    33 
    34 worksrcdir      kdl-${version}
    35 
    36 post-patch {
    37     reinplace {s/SIP_VERSION GREATER/SIP_VERSION STRGREATER/} \
    38         ${worksrcpath}/config/FindSIPandPython.cmake
    39 }
     29
     30checksums           rmd160  f9b0fd11bc9220068c39f9e73b4aa4b627c4af11 \
     31                    sha256  89c6770fb944caac574b861914edbe5d40237d74d8bc341683b6c54ed3fbb32a
     32
     33cmake.out_of_source yes
     34configure.post_args ${worksrcpath}/orocos_kdl
    4035
    4136depends_build-append \
    4237    port:pkgconfig
     
    4439    port:eigen
    4540
    4641configure.args-append \
    47     -DCMAKE_CXX_FLAGS=-I${prefix}/include/eigen2 \
    4842    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
    49     -DEIGEN2_INCLUDE_DIR=${prefix}/include/eigen2 \
    50     -DOROCOS_INSTALL=${prefix} \
    51     -DOROCOS_PLUGIN=0 \
    52     -DOROCOS_TARGET=macosx
    53 
    54 variant plugin description "Enable Orocos RTT plugin" {
    55     depends_lib-append  port:orocos-rtt \
    56                         port:boost
    57     configure.args-delete   -DOROCOS_PLUGIN=0
    58     configure.args-append   -DOROCOS_PLUGIN=1
    59 }
    60 
    61 variant python26 description "Enable Python 2.6 bindings" {
    62     post-patch {
    63         reinplace {s:\*\.sip:PyKDL/&:} \
    64             ${worksrcpath}/src/bindings/python/CMakeLists.txt
    65         reinplace {/#set/s:.*:INSTALL(FILES \${SIP_FILES} DESTINATION share/sip/PyKDL):} \
    66             ${worksrcpath}/src/bindings/python/CMakeLists.txt
    67     }
    68 
    69     depends_lib-append \
    70         port:py26-sip \
    71         port:python26
    72 
    73     configure.args-append \
    74         -DPYTHON_BINDINGS=1
    75 }
    76 
    77 livecheck.type  regex
    78 livecheck.url   ${master_sites}
    79 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
     43    -DOROCOS_INSTALL=${prefix}
     44