Ticket #20565: Portfile

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

Changed to more appropriate name

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$
3
4PortSystem 1.0
5
6name              libftd2xx
7version           0.1.6
8revision          1
9categories        devel
10maintainers       ranauei@gmail.com
11description       FTDI D2xx Driver
12long_description  D2XX Driver: allow direct access to the USB device through a DLL. \
13                  Devices supported: FT2232H, FT4232H, FT232R, FT245R, FT2232, FT232B, FT245B, FT8U232AM, FT8U245AM
14homepage          http://www.ftdichip.com/Drivers/D2XX.htm
15platforms         macosx
16distname          Universal%20D2XX${version}
17master_sites      http://www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/
18checksums         md5 ce20e3ee5a9f70adc7e2b7bd3a0589e3 \
19                  sha1 7d5487068972c97526fc59ec8bea4577df86f520 \
20                  rmd160 aa4c2a2f8961ab3382c948ac617f007d0cd4f3af
21use_dmg yes
22use_configure no
23
24build {}
25destroot {
26    xinstall -o root -g wheel -d ${destroot}${prefix}/lib
27    xinstall -o root -g wheel ${worksrcpath}/D2XX/bin/${name}.${version}.dylib ${destroot}${prefix}/lib
28    xinstall -o root -g wheel -d ${destroot}${prefix}/include
29    xinstall -o root -g wheel ${worksrcpath}/D2XX/bin/ftd2xx.h ${destroot}${prefix}/include
30    xinstall -o root -g wheel ${worksrcpath}/D2XX/Samples/WinTypes.h ${destroot}${prefix}/include
31}
32post-destroot {
33    system "ln -sf ${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.dylib"
34    system "install_name_tool -id ${prefix}/lib/${name}.${version}.dylib ${destroot}${prefix}/lib/${name}.${version}.dylib"
35}