Ticket #46462: Portfile.diff

File Portfile.diff, 1.8 KB (added by ranauei@…, 10 years ago)
  • Portfile

    old new  
    44PortSystem 1.0
    55
    66name                libftd2xx
    7 version             1.1.0
     7version             1.2.2
    88categories          devel
    99maintainers         gmail.com:ranauei
    1010description         FTDI D2XX Driver
     
    1717distname            D2XX${version}
    1818master_sites        http://www.ftdichip.com/Drivers/D2XX/MacOSX/
    1919
    20 checksums           sha256 a999921b91df4644025647fd24271525e8825994aaf19abe244b29386f58252e \
    21                     rmd160 13416d771df71a4cbfe89c11c5b2450bb65864c8
     20checksums           sha256 7d6f39b4d092be2687321729e70ff8d08c20e288f7f036e1fdc19116c20a3250 \
     21                    rmd160 d9fb6ceba3de5aaa87978e04bd6eb3b27ce8c2ef
    2222
    2323use_dmg             yes
    2424use_configure       no
     
    2727
    2828if { ${os.major}=="8" } {
    2929    set os_dir 10.4
     30    set static_dir static32
    3031    supported_archs     i386 ppc
    3132    configure.universal_archs i386 ppc
    3233} elseif { ${os.major}>=9 } {
    3334    set os_dir 10.5-10.7
     35    set static_dir static64
    3436    supported_archs     i386 ppc x86_64
    3537    configure.universal_archs i386 ppc x86_64
    3638}
     
    4345
    4446destroot {
    4547   xinstall ${worksrcpath}/D2XX/bin/${os_dir}/${name}.${version}.dylib ${destroot}${prefix}/lib
    46    xinstall -m 644 -W ${worksrcpath}/D2XX bin/ftd2xx.h Samples/WinTypes.h ${destroot}${prefix}/include
     48   xinstall ${worksrcpath}/D2XX/bin/${static_dir}/${name}.a ${destroot}${prefix}/lib
     49   xinstall -m 644 ${worksrcpath}/D2XX/bin/ftd2xx.cfg ${destroot}${prefix}/lib
     50   xinstall -m 644 -W ${worksrcpath}/D2XX/bin ftd2xx.h WinTypes.h ${destroot}${prefix}/include
    4751   ln -s ${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.dylib
    4852   system "install_name_tool -id ${prefix}/lib/${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.${version}.dylib"
    4953}