From ca016d0aba1522a0f7d3233ff275088195846e9a Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Wed, 24 Mar 2021 13:22:56 +0100 Subject: [PATCH] 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 --- index/sd/sdlada/sdlada-2.5.4-1.toml | 64 +++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 index/sd/sdlada/sdlada-2.5.4-1.toml diff --git a/index/sd/sdlada/sdlada-2.5.4-1.toml b/index/sd/sdlada/sdlada-2.5.4-1.toml new file mode 100644 index 00000000..a392c265 --- /dev/null +++ b/index/sd/sdlada/sdlada-2.5.4-1.toml @@ -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" +