Ticket #22288: Portfile

File Portfile, 1.6 KB (added by burgess.jt@…, 15 years ago)

libfreespace-0.4 Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3PortSystem          1.0
4
5name                libfreespace
6version             0.4
7categories          devel
8
9description         library for developing applications using Hillcrest Labs Freespace Devices
10long_description \
11    The libfreespace library enables rapid development of applications for \
12    Hillcrest Labs Freespace® devices. libfreespace provides access to extended \
13    information beyond mouse, keyboard and consumer page functionality through \
14    calibrated acceleration, rotational velocity measurements and \
15    calibrated sensor orientation.
16
17homepage            http://libfreespace.hillcrestlabs.com/
18
19platforms           darwin
20license             LGPLv2.1
21maintainers         hillcrestlabs.com:jt.burgess
22
23master_sites        http://launchpad.net/libfreespace/${version}/${version}/+download/
24checksums           md5 96a081e3b7fe2337344b8adc61259eb4 \
25                    sha1 5b5d676bf00c3a30eee927496d1d0de65ce6fa7a \
26                    rmd160 9fdb099c66f814c3e7f4101f6b61d602cb0ad60d
27
28depends_lib         port:libusb
29
30post-destroot {
31    # Install Codeless .kext to prevent the OS X HID driver from trying to control the freespace interface
32    file delete -force /System/Library/Extensions/FreespaceDeviceDriver.kext
33    file copy ${worksrcpath}/osx/FreespaceDeviceDriver.kext /System/Library/Extensions/FreespaceDeviceDriver.kext
34    file attributes /System/Library/Extensions/FreespaceDeviceDriver.kext -owner root -group wheel -permissions rwxr-xr-x
35    touch /System/Library/Extensions.mkext
36}