Skip to content

Commit

Permalink
Don't search LIBDIR/pkgconfig for sdl3.pc, it doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceLR committed Nov 7, 2024
1 parent 13231ad commit 2811749
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,15 @@ ifneq (${BUILD_SDL},)
# SDL 3
#
ifeq (${BUILD_SDL},3)
# Check SDL_PKG_CONFIG_PATH and LIBDIR for pkgconfig/sdl3.pc.
# Check SDL_PKG_CONFIG_PATH and PREFIX/lib/pkgconfig for sdl3.pc.
# Note --with-path is a pkgconf extension.
ifneq ($(and ${SDL_PKG_CONFIG_PATH},$(wildcard ${SDL_PKG_CONFIG_PATH}/sdl3.pc)),)
# nop
else
ifneq (${LIBDIR},.)
# Check LIBDIR for SDL3 first, if it is set.
ifneq ($(wildcard ${LIBDIR}/pkgconfig/sdl3.pc),)
SDL_PKG_CONFIG_PATH ?= ${LIBDIR}/pkgconfig
endif
else
# Check dependencies prefix instead for LIBDIR=. platforms.
# This is useless for unix/darwin, which should have sdl3.pc in a
# place pkgconf can find through normal means.
ifeq (${LIBDIR},.)
ifneq ($(wildcard ${PREFIX}/lib/pkgconfig/sdl3.pc),)
SDL_PKG_CONFIG_PATH ?= ${PREFIX}/lib/pkgconfig
endif
Expand Down

0 comments on commit 2811749

Please sign in to comment.