adds homebrew dependency handling for OSX

This commit is contained in:
Spencer Russell 2014-01-05 23:44:50 -05:00
parent c2fdb53925
commit 7ed79f833b
2 changed files with 10 additions and 3 deletions

View file

@ -1 +1,2 @@
BinDeps
@osx Homebrew

12
deps/build.jl vendored
View file

@ -7,9 +7,15 @@ ENV["JULIA_ROOT"] = abspath(JULIA_HOME, "../../")
libportaudio = library_dependency("libportaudio")
# TODO: add other providers with correct names
provides(AptGet,
{"portaudio19-dev" => libportaudio}
)
provides(AptGet, {"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]