PORTNAME=	llhttp
PORTVERSION=	9.3.0
DISTVERSIONPREFIX=	release/v
CATEGORIES=	www

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Port of http_parser to llparse
WWW=		https://llhttp.org/ \
		https://github.com/nodejs/llhttp

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE-MIT

USES=		cmake cpe pathfix

CMAKE_ON=	BUILD_SHARED_LIBS

PLIST_SUB=	PORTVERSION=${PORTVERSION}

USE_GITHUB=	yes
GH_ACCOUNT=	nodejs

OPTIONS_DEFINE=	STATIC
OPTIONS_DEFAULT=STATIC
OPTIONS_SUB=	yes

STATIC_CMAKE_BOOL=	BUILD_STATIC_LIBS

.include <bsd.port.mk>
