Ticket #28197: vrpn-7.28.2-2.diff

File vrpn-7.28.2-2.diff, 2.4 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

revised incomplete patch

  • Portfile

     
    55PortGroup               cmake 1.0
    66
    77name                    vrpn
     8version                 7.28.2
    89description             Virtual-Reality Peripheral Network
    910long_description        The Virtual-Reality Peripheral Network (VRPN) is a \
    1011                        set of classes that implement an interface between \
    1112                        application programs and the set of physical devices \
    1213                        (tracker, etc.) used in a virtual-reality (VR) system.
    13 version                 07_26
    1414categories              net devel multimedia
    1515platforms               darwin
    1616maintainers             node99.org:sean
     17license                 BSL-1.0
    1718
    1819homepage                http://www.cs.unc.edu/Research/vrpn/
    1920master_sites            ftp://ftp.cs.unc.edu/pub/packages/GRIP/vrpn/ \
    2021                        ftp://ftp.cs.unc.edu/pub/packages/GRIP/vrpn/old_versions/
    21 distname                ${name}_${version}
     22
     23dist_subdir             ${name}/${version}
     24distname                ${name}_0[join [lrange [split ${version} .] 0 1] _]
    2225worksrcdir              ${name}
    2326use_zip                 yes
    24 checksums               md5 77adb2044aed254f4b7cb4b3991513de \
    25                         sha1 6c6291ecb22372f959ab4778552f88f8f984966a
     27
     28checksums               sha1    ec450dc5a8d968c91790aef1a3780b0f32f7aa1b \
     29                        rmd160  380c9fef69f6b3ef8561c90a341e6fe3433b0da9
     30
     31configure.dir           ${workpath}/build
     32configure.args-append   ${worksrcpath}
     33
     34post-extract {
     35    file mkdir ${configure.dir}
     36}
     37
     38# vrpn_HumanInterface.C:526: error: invalid conversion from 'void (*)(void*, IOReturn, void*, void*, UInt32)' to 'void (*)(void*, IOReturn, void*, void*, uint32_t)'
     39universal_variant       no
     40#if {[variant_isset universal]} {
     41#    set archflags ${configure.universal_cflags}
     42#} else {
     43    set archflags ${configure.cc_archflags}
     44#}
     45
     46build.args-append       CC="${configure.cc} ${archflags}"
     47destroot.args-append    CC="${configure.cc} ${archflags}"
     48destroot.destdir        INSTALL_DIR=${destroot}${prefix}
     49
     50platform darwin {
     51    # powerpc_macosx appears to be correct for all Macs, PowerPC and Intel
     52    build.args-append       HW_OS=powerpc_macosx
     53    destroot.args-append    HW_OS=powerpc_macosx
     54}