sdlada 2.5.4-1 (#263)

* sdlada 2.5.4

* Try alternative TOML syntax

* Disable on arch

* Disable gnat CE2020

This gnat version causes errors with access types not trivial to fix (to me).

* Fix for CE2020
This commit is contained in:
Alejandro R Mosteo
2021-03-24 13:22:56 +01:00
committed by GitHub
parent 8d4f4c72ab
commit ca016d0aba
+64
View File
@@ -0,0 +1,64 @@
name = "sdlada"
version = "2.5.4-1"
description = "Ada 2012 bindings to SDL 2"
licenses = "Zlib"
tags = ["sdl", "framework"]
website = "https://github.com/Lucretia/sdlada"
authors = ["Luke A. Guest"]
maintainers = ["alejandro@mosteo.com"]
maintainers-logins = ["mosteo"]
project-files = ["build/gnat/sdlada.gpr"]
[[depends-on]]
libsdl2 = "^2.0"
libsdl2_image = "^2.0"
libsdl2_ttf = "^2.0"
# gnat = "/=2020" # Does not build yet with CE 2020
[[actions."case(os)".linux]]
type = "post-fetch"
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=linux"]
[[actions."case(os)".linux]]
type = "pre-build"
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=linux"]
[[actions."case(os)".macos]]
type = "post-fetch"
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=macosx"]
[[actions."case(os)".windows]]
type = "post-fetch"
command = ["make", "-C", "build/gnat", "SDL_PLATFORM=windows"]
[available."case(os)"]
'linux|macos|windows' = true
"..." = false
[available."case(distribution)"]
# There is some problem I don't readily know how to solve:
# /usr/sbin/ld: /usr/lib/libharfbuzz.so.0: undefined reference to `fstat64@GLIBC_2.33'
arch = false
[gpr-externals]
SDL_MODE = ["debug", "release"]
SDL_PLATFORM = ["linux", "bsd", "windows", "macosx", "ios", "android"]
[gpr-set-externals."case(os)".linux]
SDL_PLATFORM = "linux"
[gpr-set-externals."case(os)".macos]
SDL_PLATFORM = "macosx"
[gpr-set-externals."case(os)".windows]
SDL_PLATFORM = "windows"
[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 = "7981bbd658fa7b0618f6fae689b3af634d2d8234"
url = "git+https://github.com/alire-project/sdlada.git"