Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdlada 2.5.19 #952

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions index/li/libsdl2_mixer/libsdl2_mixer-external.toml
@@ -0,0 +1,14 @@
description = "Simple DirectMedia Layer development files - Mixer"
name = "libsdl2_mixer"

maintainers = ["alejandro@mosteo.com"]
maintainers-logins = ["mosteo"]

[[external]]
kind = "system"
[external.origin.'case(distribution)']
'debian|ubuntu' = ["libsdl2-mixer-dev"]
'arch' = ["sdl2_mixer"]
'homebrew' = ["sdl2_mixer"]
'macports' = ["libsdl2_mixer"]
'msys2' = ["mingw-w64-x86_64-SDL2_mixer"]
49 changes: 49 additions & 0 deletions index/sd/sdlada/sdlada-2.5.19.toml
@@ -0,0 +1,49 @@
name = "sdlada"
description = "Ada 2012 SDL 2.x bindings."
version = "2.5.19"

authors = ["Luke A. Guest"]
maintainers = ["Luke A. Guest <laguest@archeia.com>"]
maintainers-logins = ["Lucretia"]
licenses = "Zlib"
website = "https://github.com/Lucretia/sdlada"
tags = ["gamedev", "games", "portable", "cross-platform"]

# project-files = ["build/gnat/tools.gpr", "build/gnat/sdlada.gpr"] #, "build/gnat/"]
project-files = ["build/gnat/sdlada.gpr"] #, "build/gnat/"]

[gpr-externals]
SDL_PLATFORM = ["linux", "bsd", "windows", "macosx", "macos_homebrew", "macos_ports", "ios", "android"]
SDL_MODE = ["debug", "release"]

# [gpr-set-externals]
# BUILD_MODE = "release"

[gpr-set-externals.'case(os)']
linux = { SDL_PLATFORM = "linux" }
windows = { SDL_PLATFORM = "windows" }
macos = { SDL_PLATFORM = "macosx" }
# [gpr-set-externals.'case(distribution)']
# homebrew = { SDL_PLATFORM = "macos_homebrew" }
# macports = { SDL_PLATFORM = "macos_ports" }

[[actions]]
type = "pre-build"
command = ["make", "-C", "./build/gnat", "tools"]

[[depends-on]]
libsdl2 = "^2.0.0"
libsdl2_ttf = "^2.0.0"
libsdl2_image = "^2.0.0"
libsdl2_mixer = "^2.0.0"
make = "*" # Required for post-fetch actions

[environment.'case(distribution)'.msys2.C_INCLUDE_PATH]
# sdlada expects SDL2 headers to be in the C_INCLUDE_PATH but the option
# used in the project file ("-I/usr/include/SDL2") doesn't work with msys2
append = "${DISTRIB_ROOT}/mingw64/include/SDL2"

[origin]
commit = "41edea80d96bc3cfd4df200a2b0eea9dd66c85ba"
url = "git+https://github.com/Lucretia/sdlada.git"