Ticket #22288: libfreespace.diff

File libfreespace.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • Portfile

     
    33PortSystem          1.0
    44
    55name                libfreespace
    6 version             0.3
     6version             0.4
    77set branch          [join [lrange [split [strsed ${version} {g/[^0-9.].*//}] .] 0 1] .]
    88categories          devel
    99
     
    2222maintainers         hillcrestlabs.com:jt.burgess
    2323
    2424master_sites        http://launchpad.net/libfreespace/${branch}/${version}/+download/
    25 checksums           md5 edf8b1bc584b655df0fe710871611954 \
    26                     sha1 b0b9781f86daf973ddc432ed48407344af35845b \
    27                     rmd160 661196e9ad8e1aaee5d01b97b47ecddfd68f2297
     25checksums           md5 96a081e3b7fe2337344b8adc61259eb4 \
     26                    sha1 5b5d676bf00c3a30eee927496d1d0de65ce6fa7a \
     27                    rmd160 9fdb099c66f814c3e7f4101f6b61d602cb0ad60d
    2828
    2929depends_lib         port:libusb
     30
     31destroot.violate_mtree  yes
     32
     33post-destroot {
     34    # Install Codeless .kext to prevent the OS X HID driver from trying to control the freespace interface
     35    xinstall -d ${destroot}/System/Library/Extensions
     36    file copy ${worksrcpath}/osx/FreespaceDeviceDriver.kext ${destroot}/System/Library/Extensions
     37    file attributes ${destroot}/System/Library/Extensions/FreespaceDeviceDriver.kext -owner root -group wheel -permissions rwxr-xr-x
     38}
     39
     40post-activate {
     41    # Force the KEXT cache to rebuild.
     42    touch /System/Library/Extensions
     43}