# $NetBSD: Makefile.common,v 1.5 2025/09/29 21:57:06 gutteridge Exp $
#
# used by textproc/link-grammar/Makefile
# used by textproc/py-link-grammar/Makefile

DISTNAME=	link-grammar-5.12.8
MASTER_SITES=	https://www.gnucash.org/link-grammar/downloads/${PKGVERSION_NOREV}/

HOMEPAGE=	https://opencog.github.io/link-grammar-website/
LICENSE=	modified-bsd AND gnu-lgpl-v2.1

DISTINFO_FILE=	${.CURDIR}/../link-grammar/distinfo
FILESDIR=	${.CURDIR}/../link-grammar/files
PATCHDIR=	${.CURDIR}/../link-grammar/patches

USE_LANGUAGES=	c99 c++
USE_LIBTOOL=	yes
USE_TOOLS+=	gmake pkg-config
GNU_CONFIGURE=	yes

CONFIGURE_ARGS+=	--disable-java-bindings

# Not all currently supported compilers provide this option.
# The configure script purports to check whether the compiler
# supports it, but doesn't do so correctly.
BUILDLINK_TRANSFORM+=	rm:-Wformat-signedness

CPPFLAGS.SunOS+=	-D__EXTENSIONS__

.include "../../devel/pcre2/buildlink3.mk"
