Index: 0.1.21/Makefile
===================================================================
--- 0.1.21/Makefile (revision 124)
+++ 0.1.21/Makefile (revision 125)
@@ -56,6 +56,7 @@
SOURCE_REQUIRES = sources/packages/n/libnice
REQUIRES = libs/glib2/2.76.0
+REQUIRES += libs/gobject-introspection/1.76.1
REQUIRES += net/gnutls/3.8.0
# ======= __END_OF_REQUIRES__ =======
@@ -176,12 +177,18 @@
extra_configure_switches += -Dgstreamer=disabled
extra_configure_switches += -Dcrypto-library=gnutls
-extra_configure_switches += -Dintrospection=disabled
+extra_configure_switches += -Dintrospection=enabled
extra_configure_switches += -Dexamples=disabled
extra_configure_switches += -Dgtk_doc=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'
+
+
TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
LDFLAGS += -Wl,-rpath,$(TARGET_BIN_RPATH)
@@ -222,7 +229,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 \
@@ -241,7 +249,10 @@
-Dtests=disabled \
$(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)