Ticket #22846: Portfile

File Portfile, 1.6 KB (added by ranauei@…, 15 years ago)

Updated Portfile (polished)

Line 
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
4PortSystem 1.0
5
6name                libftd2xx
7version             0.1.7
8categories          devel
9maintainers         gmail.com:ranauei
10description         FTDI D2XX Driver
11long_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                 
15homepage            http://www.ftdichip.com/Drivers/D2XX.htm
16platforms           macosx
17distname            D2XX${version}
18master_sites        http://www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/
19checksums           md5 b9822a4125fd5f6f174306b96182c3d8 \
20                    sha1 76e843bc33d2d3369ffc5398e2828d627372a607 \
21                    rmd160 c85b75817716cc57784568c5873825f2786f846e
22use_dmg             yes
23use_configure       no
24
25build {}
26
27destroot {
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}