Index: Makefile
===================================================================
--- Makefile (revision 124)
+++ Makefile (revision 125)
@@ -56,6 +56,8 @@
SOURCE_REQUIRES = sources/GNOME/core/gcr
REQUIRES = X11/libs/gtk4/4.11.2
+REQUIRES += libs/gobject-introspection/1.76.1
+REQUIRES += dev/vala/0.56.6
REQUIRES += libs/libsecret/0.20.4
REQUIRES += net/libgcrypt/1.10.1
REQUIRES += net/p11-kit/0.23.22
@@ -175,8 +177,8 @@
endif
-extra_configure_switches += -Dintrospection=false
-extra_configure_switches += -Dvapi=false
+extra_configure_switches += -Dintrospection=true
+extra_configure_switches += -Dvapi=true
extra_configure_switches += -Dgtk4=true
extra_configure_switches += -Dgtk_doc=false
extra_configure_switches += -Dssh_agent=true
@@ -183,6 +185,12 @@
extra_configure_switches += -Dsystemd=disabled
+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-maybe-uninitialized
TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
@@ -225,7 +233,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 \
@@ -243,7 +252,10 @@
-Dcpp_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)" | tr -s ' '`" \
$(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)