2013-12-13 06:06:48 +01:00
|
|
|
using BinDeps
|
|
|
|
|
2013-12-14 06:44:04 +01:00
|
|
|
@BinDeps.setup
|
|
|
|
|
2013-12-13 06:06:48 +01:00
|
|
|
ENV["JULIA_ROOT"] = abspath(JULIA_HOME, "../../")
|
|
|
|
|
2013-12-14 06:44:04 +01:00
|
|
|
libportaudio = library_dependency("libportaudio")
|
2014-01-11 04:32:59 +01:00
|
|
|
libsndfile = library_dependency("libsndfile")
|
2013-12-14 06:44:04 +01:00
|
|
|
|
|
|
|
# TODO: add other providers with correct names
|
2014-01-06 05:44:50 +01:00
|
|
|
provides(AptGet, {"portaudio19-dev" => libportaudio})
|
2014-01-11 04:32:59 +01:00
|
|
|
provides(AptGet, {"libsndfile1-dev" => libsndfile})
|
2014-01-06 05:44:50 +01:00
|
|
|
|
|
|
|
@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})
|
2014-07-27 18:57:18 +02:00
|
|
|
provides(Homebrew.HB, {"libsndfile" => libsndfile})
|
2014-01-06 05:44:50 +01:00
|
|
|
end
|
2013-12-14 06:44:04 +01:00
|
|
|
|
2014-01-11 04:32:59 +01:00
|
|
|
@BinDeps.install [:libportaudio => :libportaudio,
|
|
|
|
:libsndfile => :libsndfile]
|
2013-12-14 06:44:04 +01:00
|
|
|
|
2014-07-27 21:39:24 +02:00
|
|
|
# cd(Pkg.dir("AudioIO", "deps", "src"))
|
|
|
|
# run(`make`)
|