Bug#909778: libsdl2-dev: SDL_config.h no longer in cflags provided by pkg-config/sdl2-config
Adrian Bunk
bunk at debian.org
Sat Sep 29 15:01:36 BST 2018
On Sat, Sep 29, 2018 at 01:39:05PM +0000, Hugh McMaster wrote:
> On Saturday, 29 September 2018 5:06 AM, Adrian Bunk wrote:
> > The following fixes it properly:
> > - revert the override_dh_install change, and
> > - add --includedir=\$${prefix}/include/$(DEB_HOST_MULTIARCH) to confflags
>
> This won't do what you think it will. Unfortunately:
>
> 1. All headers end up being installed into /usr/include/<triplet>/SDL2.
> -- Not what we want.
This is not a problem.
> 2. /usr/include/<triplet>/SDL2 is hard-coded into sdl2-config, causing a file
> conflict for multi-arch installations.
>...
This is actually a problem.
The minimal fix for that problem would be to add a dependency on
pkg-config to libsdl2-dev, and then do
--cflags)
- echo -I at includedir@/SDL2 @SDL_CFLAGS@
+ pkg-config --cflags sdl2
;;
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
More information about the Pkg-sdl-maintainers
mailing list