glib2: fix pkg-config path for glib_compile_schemas
authorDaniel Golle <daniel@makrotopia.org>
Tue, 5 Nov 2024 03:15:26 +0000 (03:15 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 7 Nov 2024 21:15:50 +0000 (21:15 +0000)
Some applications using Glib2 require using glib_compile_schemas during
build and deduct the path of that executable via pkg-config.
This currently fails as the path is not fixed in gio.pc.
Fix that by adding glib_compile_schemas to the sed expression taking
care of applying prefix_hostpkg.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/glib2/Makefile

index fd30be288b4ac2e08a6c06d87c392b723cb86534..a24a2f3450122678d6a73e83da397b102c7b6277 100644 (file)
@@ -104,7 +104,7 @@ define Build/InstallDev
        $(foreach BIN,glib_genmarshal glib_mkenums,
                $(SED) 's/^$(BIN)=$$$${bindir}\/\(.*\)/$(BIN)=$$$${prefix_hostpkg}\/bin\/\1/' $(1)/usr/lib/pkgconfig/glib-2.0.pc
        )
-       $(foreach BIN,glib_compile_resources gdbus_codegen,
+       $(foreach BIN,glib_compile_resources glib_compile_schemas gdbus_codegen,
                $(SED) 's/^$(BIN)=$$$${bindir}\/\(.*\)/$(BIN)=$$$${prefix_hostpkg}\/bin\/\1/' $(1)/usr/lib/pkgconfig/gio-2.0.pc
        )