Trying to update a game I maintain to 25.08, but it fails to build due to not finding SDL_image.h

Since 25.08 has removed SDL2_image, I added it myself to the manifest. SDL2_image seems to build fine, but for some reason the game can’t find its header file:

engine/texture.cpp:4:10: fatal error: SDL_image.h: No such file or directory

4 | #include "SDL_image.h"

  |          ^\~\~\~\~\~\~\~\~\~\~\~\~

compilation terminated.

On 24.08 the game used to build just fine.

Not sure about that, but I suspect it might be due to the header file being installed into ‘/app/include/SDL2’ and the game probably expects some other directory (possibly due to the path starting with /app).

If that’s the case, is there anything that can be done about it? Any help is appreciated.

Edit: It appears I was able to fix it by setting include path in the game’s build options like this:

build-options:
  env:
    C_INCLUDE_PATH: /app/include/SDL2
    CPLUS_INCLUDE_PATH: /app/include/SDL2

Though this still doesn’t seem right. FWIH, these env variables should supposedly be used with custom include paths, not default ones like /app/include/etc../ Or is this a common issue with how some makefiles are configured?