source: trunk/dports/devel/libfreespace/Portfile

Last change on this file was 83385, checked in by dports@…, 6 years ago

standardize some license formatting issues:

  • use - to indicate version, not v, e.g. GPL-2 not GPLv2
  • use lists for multiple options, e.g. {Artistic GPL}
  • perl license is {Artistic GPL}
  • Python license is PSF
  • call the NCSA/UIUC license NCSA
  • libpng/zlib have the same license; call it zlib
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 83385 2011-08-31 01:52:26Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libfreespace
7version             0.4
8set branch          [join [lrange [split [strsed ${version} {g/[^0-9.].*//}] .] 0 1] .]
9categories          devel
10
11description         library for developing applications using Hillcrest Labs Freespace Devices
12long_description \
13    The libfreespace library enables rapid development of applications for \
14    Hillcrest Labs Freespace® devices. libfreespace provides access to extended \
15    information beyond mouse, keyboard and consumer page functionality through \
16    calibrated acceleration, rotational velocity measurements and \
17    calibrated sensor orientation.
18
19homepage            http://libfreespace.hillcrestlabs.com/
20
21platforms           darwin
22license             LGPL-2.1
23maintainers         hillcrestlabs.com:jt.burgess
24
25master_sites        http://launchpad.net/libfreespace/${branch}/${version}/+download/
26checksums           md5 96a081e3b7fe2337344b8adc61259eb4 \
27                    sha1 5b5d676bf00c3a30eee927496d1d0de65ce6fa7a \
28                    rmd160 9fdb099c66f814c3e7f4101f6b61d602cb0ad60d
29
30depends_lib         port:libusb
31
32destroot.violate_mtree  yes
33
34post-destroot {
35    # Install Codeless .kext to prevent the OS X HID driver from trying to control the freespace interface
36    xinstall -d ${destroot}/System/Library/Extensions
37    file copy ${worksrcpath}/osx/FreespaceDeviceDriver.kext ${destroot}/System/Library/Extensions
38    file attributes ${destroot}/System/Library/Extensions/FreespaceDeviceDriver.kext -owner root -group wheel -permissions rwxr-xr-x
39}
40
41post-activate {
42    # Force the KEXT cache to rebuild.
43    touch /System/Library/Extensions
44}
Note: See TracBrowser for help on using the repository browser.