pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/librsvg Make it support the "introspection" o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5fa3cdcb5eae
branches:  trunk
changeset: 357905:5fa3cdcb5eae
user:      martin <martin%pkgsrc.org@localhost>
date:      Tue Jan 31 17:06:38 2017 +0000

description:
Make it support the "introspection" option

diffstat:

 graphics/librsvg/Makefile |  17 +++++++++++++++--
 graphics/librsvg/PLIST    |   6 +++---
 2 files changed, 18 insertions(+), 5 deletions(-)

diffs (62 lines):

diff -r 51bac5a2a781 -r 5fa3cdcb5eae graphics/librsvg/Makefile
--- a/graphics/librsvg/Makefile Tue Jan 31 16:43:55 2017 +0000
+++ b/graphics/librsvg/Makefile Tue Jan 31 17:06:38 2017 +0000
@@ -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_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 @@
 
 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 -r 51bac5a2a781 -r 5fa3cdcb5eae graphics/librsvg/PLIST
--- a/graphics/librsvg/PLIST    Tue Jan 31 16:43:55 2017 +0000
+++ b/graphics/librsvg/PLIST    Tue Jan 31 17:06:38 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index