Make the sdl2-config script relocatable

This commit is contained in:
Anonymous Maarten
2022-06-03 23:08:22 +02:00
committed by Sam Lantinga
parent 142a3630d3
commit 799d39a302
4 changed files with 16 additions and 1 deletions

5
configure vendored
View File

@@ -653,6 +653,7 @@ SDL_RLD_FLAGS
SDL_STATIC_LIBS
SDL_LIBS
SDL_CFLAGS
bin_prefix_relpath
cmake_prefix_relpath
INSTALL_SDL2_CONFIG
LIBUSB_LIBS
@@ -27058,6 +27059,10 @@ eval pkg_cmakedir=$libdir/cmake/SDL2
cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
eval pkg_bindir=$bindir
bin_prefix_relpath="$(echo -n "pkg_bindir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"