package/libvips: add gobject-introspection support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 6 Jun 2020 22:36:49 +0000 (00:36 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 7 Jun 2020 07:00:51 +0000 (09:00 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libvips/libvips.mk

index 001a148a7e460d0838f3b27027767ff17aa97f71..169fda9b10d942aefbed6dc1006a1c2d5b6d5351 100644 (file)
@@ -21,7 +21,6 @@ LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)" \
        LIBS=$(TARGET_NLS_LIBS)
 
 LIBVIPS_CONF_OPTS = \
-       --disable-introspection \
        --without-dmalloc \
        --without-gsf \
        --without-magick \
@@ -41,6 +40,13 @@ LIBVIPS_DEPENDENCIES = \
        host-pkgconf expat libglib2 \
        $(TARGET_NLS_DEPENDENCIES)
 
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+LIBVIPS_CONF_OPTS += --enable-introspection
+LIBVIPS_DEPENDENCIES += gobject-introspection
+else
+LIBVIPS_CONF_OPTS += --disable-introspection
+endif
+
 ifeq ($(BR2_PACKAGE_JPEG),y)
 LIBVIPS_CONF_OPTS += --with-jpeg
 LIBVIPS_DEPENDENCIES += jpeg