# $NetBSD: Makefile,v 1.36 2025/08/30 22:45:47 wiz Exp $

DISTNAME=	neko-2.3.0
PKGREVISION=	31
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GITHUB:=HaxeFoundation/}
GITHUB_TAG=	v${PKGVERSION_NOREV:S/./-/g}

MAINTAINER=	charlotte@NetBSD.org
HOMEPAGE=	https://nekovm.org/
COMMENT=	High-level dynamically typed programming language
LICENSE=	mit

USE_TOOLS+=	git pkg-config

CMAKE_CONFIGURE_ARGS+=	-DCMAKE_POLICY_VERSION_MINIMUM=3.5

# Tries to build "bin/nekoc.n, bin/nekoml.n" multiple times at once
# and then chokes because nekoc.n won't load. Examination shows that
# the makefiles spewed from cmake try to build this element from four
# different subdirs at once, which is obviously unsafe, and arguing
# with cmake about this sort of thing is a waste of breath.
MAKE_JOBS_SAFE=	no

.include "../../devel/cmake/build.mk"
.include "options.mk"
.include "../../devel/boehm-gc/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
