summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin <martin@pkgsrc.org>2017-01-31 17:06:38 +0000
committermartin <martin@pkgsrc.org>2017-01-31 17:06:38 +0000
commit165180fc89335e69b55b80ad137afe3d22e714e6 (patch)
tree418f08fa9e2738023a053c1f0656502a97f399b9
parent519fb326389531d872749897a81157e88a4f2dc5 (diff)
downloadpkgsrc-165180fc89335e69b55b80ad137afe3d22e714e6.tar.gz
Make it support the "introspection" option
-rw-r--r--graphics/librsvg/Makefile17
-rw-r--r--graphics/librsvg/PLIST6
2 files changed, 18 insertions, 5 deletions
diff --git a/graphics/librsvg/Makefile b/graphics/librsvg/Makefile
index a7c60be2d6e..620f9ff7d6c 100644
--- a/graphics/librsvg/Makefile
+++ b/graphics/librsvg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.87 2016/08/03 10:22:15 adam Exp $
+# $NetBSD: Makefile,v 1.88 2017/01/31 17:06:38 martin Exp $
DISTNAME= librsvg-2.40.15
PKGREVISION= 1
@@ -19,7 +19,6 @@ USE_TOOLS+= pkg-config gmake
USE_LANGUAGES+= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-tools
-CONFIGURE_ARGS+= --enable-introspection
CONFIGURE_ARGS+= --enable-Bsymbolic=auto
PKGCONFIG_OVERRIDE= librsvg.pc.in
@@ -31,8 +30,22 @@ BUILDLINK_API_DEPENDS.glib2+= glib2>=2.24.0
CONFIGURE_ARGS.Darwin+= --disable-Bsymbolic
+PKG_OPTIONS_VAR= PKG_OPTIONS.librsvg
+PKG_SUPPORTED_OPTIONS= introspection
+PKG_SUGGESTED_OPTIONS= introspection
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= introspection
+
+.if !empty(PKG_OPTIONS:Mintrospection)
+PLIST.introspection= yes
+CONFIGURE_ARGS+= --enable-introspection
BUILDLINK_DEPMETHOD.gobject-introspection+= build
.include "../../devel/gobject-introspection/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-introspection
+.endif
+
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
diff --git a/graphics/librsvg/PLIST b/graphics/librsvg/PLIST
index 92bd5e0d803..6c1807b5a51 100644
--- a/graphics/librsvg/PLIST
+++ b/graphics/librsvg/PLIST
@@ -1,15 +1,15 @@
-@comment $NetBSD: PLIST,v 1.13 2016/05/21 13:43:42 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.14 2017/01/31 17:06:38 martin Exp $
bin/rsvg-convert
include/librsvg-2.0/librsvg/librsvg-enum-types.h
include/librsvg-2.0/librsvg/librsvg-features.h
include/librsvg-2.0/librsvg/rsvg-cairo.h
include/librsvg-2.0/librsvg/rsvg.h
lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la
-lib/girepository-1.0/Rsvg-2.0.typelib
+${PLIST.introspection}lib/girepository-1.0/Rsvg-2.0.typelib
lib/librsvg-2.la
lib/pkgconfig/librsvg-2.0.pc
man/man1/rsvg-convert.1
-share/gir-1.0/Rsvg-2.0.gir
+${PLIST.introspection}share/gir-1.0/Rsvg-2.0.gir
share/gtk-doc/html/rsvg-2.0/RsvgHandle.html
share/gtk-doc/html/rsvg-2.0/annotation-glossary.html
share/gtk-doc/html/rsvg-2.0/api-index-2-14.html