2023-04-11 01:50:36 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/libsdl-org/SDL/archive/refs/tags/release-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: libsdl-org/SDL/releases
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
freedesktop.org/pkg-config: ~0.29
|
|
|
|
gnu.org/autoconf: '*'
|
|
|
|
gnu.org/automake: '*'
|
2023-05-23 07:04:40 +03:00
|
|
|
gnu.org/libtool: 2
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
./configure $ARGS
|
|
|
|
make --jobs {{ hw.concurrency }} install
|
|
|
|
|
|
|
|
# often stuff expects SDL.h to be directly in the include-path
|
|
|
|
- run: |
|
|
|
|
mv SDL2/* .
|
|
|
|
rmdir SDL2
|
|
|
|
ln -s . SDL2
|
|
|
|
working-directory: ${{prefix}}/include
|
|
|
|
|
2023-04-11 01:50:36 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
- --with-x
|
|
|
|
- --enable-hidapi
|
|
|
|
- --enable-pulseaudio
|
|
|
|
- --enable-pulseaudio-shared
|
|
|
|
- --enable-video-dummy
|
|
|
|
- --enable-video-opengl
|
|
|
|
- --enable-video-opengles
|
|
|
|
- --enable-video-x11
|
|
|
|
- --enable-video-x11-scrnsaver
|
|
|
|
- --enable-video-x11-xcursor
|
|
|
|
- --enable-video-x11-xinerama
|
|
|
|
- --enable-video-x11-xinput
|
|
|
|
- --enable-video-x11-xrandr
|
|
|
|
- --enable-video-x11-xshape
|
|
|
|
- --enable-x11-shared
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/sdl2-config
|
|
|
|
|
|
|
|
test:
|
2023-05-23 07:04:40 +03:00
|
|
|
sdl2-config --version
|