Created
February 7, 2018 14:18
-
-
Save jonathanBieler/7bb7c9a87248e22edf1a58b6c6b3c3f0 to your computer and use it in GitHub Desktop.
bindeps_sdl.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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