# $NetBSD: Makefile,v 1.80 2021/12/09 22:39:17 wiz Exp $

DISTNAME=	vala-0.54.4
CATEGORIES=	lang gnome
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/vala/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://wiki.gnome.org/Projects/Vala
COMMENT=	Compiler for the GObject type system
LICENSE=	gnu-lgpl-v2.1

BUILD_DEPENDS+=		libxslt-[0-9]*:../../textproc/libxslt
BUILD_DEPENDS+=		docbook-xml-[0-9]*:../../textproc/docbook-xml

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		bison flex gmake pkg-config

PKGCONFIG_OVERRIDE+=	libvala.pc.in
PKGCONFIG_OVERRIDE+=	vapigen/vapigen.pc.in

# as of 0.50.1
# 44 of 992 tests failed
# as of 0.54.2
# error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
# error: Package `GLib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
# error: Package `Gio-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
TEST_TARGET=		check

BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.48.0
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../graphics/graphviz/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
