Guest User

Untitled

a guest
Feb 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. using BinDeps
  2. using Compat
  3.  
  4. @BinDeps.setup
  5.  
  6. sdl2 = library_dependency("sdl2", aliases=["sdl2-2.0"])
  7.  
  8. # package managers
  9. if is_linux()
  10. provides(AptGet, Dict("sdl2-2.0"=>sdl2))
  11. end
  12.  
  13. if is_apple()
  14. if Pkg.installed("Homebrew") === nothing
  15. error("Homebrew package not installed, please run Pkg.add(\"Homebrew\")")
  16. end
  17. using Homebrew
  18. provides(Homebrew.HB, "sdl2", sdl2, os = :Darwin)
  19. end
  20.  
  21. if is_windows()
  22. using WinRPM
  23. provides(WinRPM.RPM, "sdl2", sdl2, os = :Windows)
  24. end
  25.  
  26. @BinDeps.install Dict(:sdl2 => :sdl2)
Add Comment
Please, Sign In to add comment