Ticket #46462: Portfile.diff
File Portfile.diff, 1.8 KB (added by ranauei@…, 10 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name libftd2xx 7 version 1. 1.07 version 1.2.2 8 8 categories devel 9 9 maintainers gmail.com:ranauei 10 10 description FTDI D2XX Driver … … 17 17 distname D2XX${version} 18 18 master_sites http://www.ftdichip.com/Drivers/D2XX/MacOSX/ 19 19 20 checksums sha256 a999921b91df4644025647fd24271525e8825994aaf19abe244b29386f58252e\21 rmd160 13416d771df71a4cbfe89c11c5b2450bb65864c820 checksums sha256 7d6f39b4d092be2687321729e70ff8d08c20e288f7f036e1fdc19116c20a3250 \ 21 rmd160 d9fb6ceba3de5aaa87978e04bd6eb3b27ce8c2ef 22 22 23 23 use_dmg yes 24 24 use_configure no … … 27 27 28 28 if { ${os.major}=="8" } { 29 29 set os_dir 10.4 30 set static_dir static32 30 31 supported_archs i386 ppc 31 32 configure.universal_archs i386 ppc 32 33 } elseif { ${os.major}>=9 } { 33 34 set os_dir 10.5-10.7 35 set static_dir static64 34 36 supported_archs i386 ppc x86_64 35 37 configure.universal_archs i386 ppc x86_64 36 38 } … … 43 45 44 46 destroot { 45 47 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 47 51 ln -s ${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.dylib 48 52 system "install_name_tool -id ${prefix}/lib/${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.${version}.dylib" 49 53 }