From 18fb5251b9dd33e040ce7f5bc86f6f70e402ca0f Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 8 Mar 2021 11:31:01 +0100 Subject: [PATCH] Find correct library automagically on Darwin Tested with Homebrew Apparently the libusb-legacy version is used with MacPorts, which is why it's left in here Should be possible to remove the :bsd line. Someone with MacPorts can try. --- libusb-ffi.lisp | 1 + 1 file changed, 1 insertion(+) diff --git a/libusb-ffi.lisp b/libusb-ffi.lisp index 3597965..099bda5 100644 --- a/libusb-ffi.lisp +++ b/libusb-ffi.lisp @@ -3,6 +3,7 @@ (in-package #:libusb-ffi) (define-foreign-library libusb + (:darwin (:or (:default "libusb") (:default "libusb-legacy"))) (:bsd "libusb-legacy-0.1.4.4.4.dylib") (:unix (:or "libusb-0.1.so.4.4" "libusb-0.1.so.4" "libusb-0.1.so")) (:windows "libusb0")