Files
2026-06-25 14:35:59 -04:00

34 lines
1.2 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup github 1.0
github.setup libusb hidapi 0.15.0 hidapi-
github.tarball_from archive
categories comms
maintainers nomaintainer
license {GPL-3 BSD Permissive}
description library for interacting with HID-class devices
long_description \
HIDAPI is a multi-platform library which allows an application to \
interface with USB and Bluetooth HID-Class devices.
checksums rmd160 22e52e75a98fa6c46b2800d8221a7285c60a1b96 \
sha256 5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136 \
size 363838
use_autoreconf yes
variant testgui description {Install GUI to test HIDAPI} {
depends_lib-append port:fox
configure.args-append --enable-testgui
patchfiles-append patch-appbundle.diff
post-destroot {
set destapp ${destroot}${applications_dir}/HIDAPI-TestGUI.app
copy ${worksrcpath}/testgui/TestGUI.app ${destapp}
ln -s ${prefix}/bin/hidapi-testgui ${destapp}/Contents/MacOS/
}
}