adds homebrew dependency handling for OSX
This commit is contained in:
parent
c2fdb53925
commit
7ed79f833b
2 changed files with 10 additions and 3 deletions
1
REQUIRE
1
REQUIRE
|
@ -1 +1,2 @@
|
||||||
BinDeps
|
BinDeps
|
||||||
|
@osx Homebrew
|
||||||
|
|
12
deps/build.jl
vendored
12
deps/build.jl
vendored
|
@ -7,9 +7,15 @@ ENV["JULIA_ROOT"] = abspath(JULIA_HOME, "../../")
|
||||||
libportaudio = library_dependency("libportaudio")
|
libportaudio = library_dependency("libportaudio")
|
||||||
|
|
||||||
# TODO: add other providers with correct names
|
# TODO: add other providers with correct names
|
||||||
provides(AptGet,
|
provides(AptGet, {"portaudio19-dev" => libportaudio})
|
||||||
{"portaudio19-dev" => libportaudio}
|
|
||||||
)
|
@osx_only begin
|
||||||
|
if Pkg.installed("Homebrew") === nothing
|
||||||
|
error("Homebrew package not installed, please run Pkg.add(\"Homebrew\")")
|
||||||
|
end
|
||||||
|
using Homebrew
|
||||||
|
provides(Homebrew.HB, {"portaudio" => libportaudio})
|
||||||
|
end
|
||||||
|
|
||||||
@BinDeps.install [:libportaudio => :libportaudio]
|
@BinDeps.install [:libportaudio => :libportaudio]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue