Index: 4.11.2/Makefile
===================================================================
--- 4.11.2/Makefile (revision 124)
+++ 4.11.2/Makefile (revision 125)
@@ -57,6 +57,7 @@
REQUIRES = app/fontconfig/2.13.95
REQUIRES += libs/glib2/2.76.0
+REQUIRES += libs/gobject-introspection/1.76.1
REQUIRES += libs/graphene/1.10.8
REQUIRES += X11/libs/gdk-pixbuf2-xlib/2.40.2
REQUIRES += X11/libs/at-spi2-core/2.47.1
@@ -190,7 +191,7 @@
endif
-extra_configure_switches += -Dintrospection=disabled
+extra_configure_switches += -Dintrospection=enabled
extra_configure_switches += -Dx11-backend=true
extra_configure_switches += -Dwayland-backend=true
extra_configure_switches += -Dbroadway-backend=true
@@ -217,6 +218,12 @@
extra_configure_switches += -Dgtk_doc=false
+PYTHON3_VERSION = 3.10
+
+python_environment = PYTHON=$(PYTHON3)
+python_environment += PYTHONPATH='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gobject-introspection:$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/python$(PYTHON3_VERSION)/lib-dynload'
+
+
CFLAGS += -Wno-deprecated-declarations -Wno-format-nonliteral -Wno-switch
CFLAGS += -Wno-ignored-qualifiers -Wno-undef -Wno-array-bounds -Wno-maybe-uninitialized
@@ -266,7 +273,8 @@
@echo "strip = '$(STRIP)'" >> $(cross_file)
@echo "pkgconfig = 'pkg-config'" >> $(cross_file)
@echo "" >> $(cross_file)
- @meson setup \
+ @$(python_environment) \
+ meson setup \
--prefix=/usr \
--libdir=lib$(LIBSUFFIX) \
--libexecdir=/usr/libexec \
@@ -286,7 +294,10 @@
-Dbuild-testsuite=false \
$(extra_configure_switches) \
--cross-file=$(cross_file) $(SRC_DIR) $(build_dir)
- @cd $(build_dir) && ninja -v
+ @( cd $(build_dir) ; \
+ sed -i '/COMMAND = /s, /usr/bin/g-ir-scanner , $(python_environment) $(TARGET_DEST_DIR)/usr/bin/g-ir-scanner-wrapper ,g' build.ninja ; \
+ )
+ @( cd $(build_dir) ; env -i ninja -v )
@touch $@
$(install_target): $(build_target)