Skip to content

Instantly share code, notes, and snippets.

@jonathanBieler
Created February 7, 2018 14:18
Show Gist options
  • Save jonathanBieler/7bb7c9a87248e22edf1a58b6c6b3c3f0 to your computer and use it in GitHub Desktop.
Save jonathanBieler/7bb7c9a87248e22edf1a58b6c6b3c3f0 to your computer and use it in GitHub Desktop.
bindeps_sdl.jl
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment