diff options
author | martin <martin@pkgsrc.org> | 2017-01-31 17:06:38 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2017-01-31 17:06:38 +0000 |
commit | 6ccfe5b911a62809860b5d940b569d47df6a8069 (patch) | |
tree | 7dd77a2ee957c43a9b1fc73f448170d3e8deb75c /graphics | |
parent | 12329899e6056f2895616ee6f340ad93ee57d469 (diff) | |
download | pkgsrc-6ccfe5b911a62809860b5d940b569d47df6a8069.tar.gz |
Make it support the "introspection" option
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/librsvg/Makefile | 17 | ||||
-rw-r--r-- | graphics/librsvg/PLIST | 6 |
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 |