Make the sdl2-config script relocatable

This commit is contained in:
Anonymous Maarten authored and Sam Lantinga committed 2022-06-03 16:27:13 -07:00
1 parent 142a3630d3
commit 799d39a302
4 files changed
+16 -1

No files matched your search

Vendored
+5
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" )"