Index: Makefile
===================================================================
--- Makefile (revision 124)
+++ Makefile (revision 125)
@@ -56,6 +56,8 @@
SOURCE_REQUIRES = sources/GNOME/core/libgee
REQUIRES = libs/glib2/2.76.0
+REQUIRES += libs/gobject-introspection/1.76.1
+REQUIRES += dev/vala/0.56.6
# ======= __END_OF_REQUIRES__ =======
@@ -125,7 +127,8 @@
extra_configure_switches += --disable-dependency-tracking
extra_configure_switches += --sysconfdir=/etc
-extra_configure_switches += --enable-introspection=no
+extra_configure_switches += --enable-introspection=yes
+extra_configure_switches += --enable-vala=yes
ifeq ($(__ENABLE_STATIC__),yes)
extra_configure_switches += --enable-static=yes
@@ -135,6 +138,12 @@
extra_configure_switches += --enable-shared=yes
+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-incompatible-pointer-types -Wno-discarded-qualifiers
CFLAGS += -Wno-unused-result -Wno-stringop-overflow -trigraphs
@@ -154,12 +163,14 @@
$(build_target): $(src_done)
@mkdir -p $(build_dir)
@cd $(build_dir) && \
- $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+ $(BUILD_ENVIRONMENT) $(python_environment) ../$(src_dir_name)/configure \
--prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET) \
$(extra_configure_switches)
- @cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+ @( cd $(build_dir) ; \
+ env -i $(MAKE) $(python_environment) ; \
+ )
@touch $@
$(install_target): $(build_target)