PortAudio.jl/deps/build.jl

28 lines
664 B
Julia
Raw Permalink Normal View History

using BinDeps
2018-06-21 09:59:43 +02:00
using Compat
2018-08-16 20:19:00 +02:00
using Compat.Sys: isapple, iswindows
@BinDeps.setup
2018-06-21 09:59:43 +02:00
ENV["JULIA_ROOT"] = abspath(Compat.Sys.BINDIR, "../../")
# include alias for WinRPM library
libportaudio = library_dependency("libportaudio", aliases=["libportaudio-2"])
# TODO: add other providers with correct names
provides(AptGet, "libportaudio2", libportaudio)
2014-09-04 15:18:03 +02:00
provides(Pacman, "portaudio", libportaudio)
2018-08-16 20:19:00 +02:00
@static if isapple()
using Homebrew
2014-09-04 15:18:03 +02:00
provides(Homebrew.HB, "portaudio", libportaudio)
end
2018-08-16 20:19:00 +02:00
@static if iswindows()
2014-09-04 15:18:03 +02:00
using WinRPM
provides(WinRPM.RPM, "libportaudio2", libportaudio, os = :Windows)
end
2017-05-22 04:39:15 +02:00
@BinDeps.install Dict(:libportaudio => :libportaudio, )