Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using BinDeps
- using Compat
- @BinDeps.setup
- sdl2 = library_dependency("sdl2", aliases=["sdl2-2.0"])
- # package managers
- if is_linux()
- provides(AptGet, Dict("sdl2-2.0"=>sdl2))
- end
- if is_apple()
- if Pkg.installed("Homebrew") === nothing
- error("Homebrew package not installed, please run Pkg.add(\"Homebrew\")")
- end
- using Homebrew
- provides(Homebrew.HB, "sdl2", sdl2, os = :Darwin)
- end
- if is_windows()
- using WinRPM
- provides(WinRPM.RPM, "sdl2", sdl2, os = :Windows)
- end
- @BinDeps.install Dict(:sdl2 => :sdl2)
Add Comment
Please, Sign In to add comment