1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 55056 2009-08-06 12:03:21Z snc@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libftd2xx |
---|
7 | version 0.1.7 |
---|
8 | categories devel |
---|
9 | maintainers gmail.com:ranauei |
---|
10 | description FTDI D2XX Driver |
---|
11 | long_description D2XX Driver: allow direct access to the USB device through \ |
---|
12 | a DLL. Devices supported: FT2232H, FT4232H, FT232R, \ |
---|
13 | FT245R, FT2232, FT232B, FT245B, FT8U232AM, FT8U245AM |
---|
14 | |
---|
15 | homepage http://www.ftdichip.com/Drivers/D2XX.htm |
---|
16 | platforms macosx |
---|
17 | distname D2XX${version} |
---|
18 | master_sites http://www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/ |
---|
19 | checksums md5 b9822a4125fd5f6f174306b96182c3d8 \ |
---|
20 | sha1 76e843bc33d2d3369ffc5398e2828d627372a607 \ |
---|
21 | rmd160 c85b75817716cc57784568c5873825f2786f846e |
---|
22 | use_dmg yes |
---|
23 | use_configure no |
---|
24 | |
---|
25 | build {} |
---|
26 | |
---|
27 | destroot { |
---|
28 | if { ${os.major}=="7" } { |
---|
29 | set os_dir 10.3 |
---|
30 | } elseif { ${os.major}=="8" || ${os.major}=="9" } { |
---|
31 | set os_dir 10.4-10.5 |
---|
32 | } elseif { ${os.major}=="10" } { |
---|
33 | set os_dir 10.6 |
---|
34 | } |
---|
35 | |
---|
36 | xinstall ${worksrcpath}/D2XX/bin/${os_dir}/${name}.${version}.dylib ${destroot}${prefix}/lib |
---|
37 | xinstall -m 644 -W ${worksrcpath}/D2XX bin/ftd2xx.h Samples/WinTypes.h ${destroot}${prefix}/include |
---|
38 | ln -s ${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.dylib |
---|
39 | system "install_name_tool -id ${prefix}/lib/${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.${version}.dylib" |
---|
40 | } |
---|