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-01-11 04:32:59 +01:00
|
|
|
provides(Homebrew.HB, {"sndfile" => 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-01-03 16:41:00 +01:00
|
|
|
cd(joinpath(Pkg.dir(), "AudioIO", "deps", "src") )
|
2013-12-13 06:06:48 +01:00
|
|
|
run(`make`)
|
|
|
|
if (!ispath("../usr"))
|
|
|
|
run(`mkdir ../usr`)
|
|
|
|
end
|
|
|
|
if (!ispath("../usr/lib"))
|
|
|
|
run(`mkdir ../usr/lib`)
|
|
|
|
end
|
|
|
|
run(`mv libportaudio_shim.$(BinDeps.shlib_ext) ../usr/lib`)
|