adjust for macosx with "brewed" libraries
This commit is contained in:
+8
-5
@@ -67,13 +67,16 @@
|
||||
(do-for-f))))))
|
||||
|
||||
|
||||
(define (build-lib-path)
|
||||
(soundlibs-directory))
|
||||
(define (build-lib-path p)
|
||||
(if (eq? (system-type 'os) 'macosx)
|
||||
(let ((brew-lib "/opt/homebrew/lib"))
|
||||
(cons (soundlibs-directory) (cons brew-lib p)))
|
||||
(cons (soundlibs-directory) p)))
|
||||
|
||||
(define (get-lib* libs-to-try orig-libs versions)
|
||||
(let ((libs-path (cons (build-lib-path) (get-lib-search-dirs))))
|
||||
(unless (soundlibs-available?)
|
||||
(download-soundlibs))
|
||||
(unless (soundlibs-available?)
|
||||
(download-soundlibs))
|
||||
(let ((libs-path (build-lib-path (get-lib-search-dirs))))
|
||||
(if (null? libs-to-try)
|
||||
(begin
|
||||
(displayln (format "Warning: Cannot find library, tried ~a in ~a" orig-libs libs-path))
|
||||
|
||||
Reference in New Issue
Block a user