# $NetBSD: Makefile,v 1.129 2021/04/21 11:40:25 adam Exp $
DISTNAME= librsvg-2.50.3
PKGREVISION= 1
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/librsvg/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://wiki.gnome.org/LibRsvg
COMMENT= SVG library for GNOME
LICENSE= gnu-lgpl-v2.1
MAKE_JOBS_SAFE= NO
MAKE_FLAGS+= CARGO_MAKE_JOBS=-j${_MAKE_JOBS_N}
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake aclocal autoconf automake
USE_LANGUAGES+= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-tools
#CONFIGURE_ARGS+= --enable-Bsymbolic=auto
CONFIGURE_ARGS+= --disable-Bsymbolic
PKGCONFIG_OVERRIDE= librsvg.pc.in
TEST_TARGET= check
.include "cargo-depends.mk"
BUILDLINK_DEPMETHOD.gobject-introspection+= build
.include "../../devel/gobject-introspection/buildlink3.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.50.0
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.pango+= pango>=1.38
.include "../../devel/pango/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
BUILDLINK_API_DEPENDS.cairo+= cairo>=1.2.0
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/cairo-gobject/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/loaders.mk"
BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.9
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
RUST_REQ= 1.39.0
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>