PORTNAME=	libHX
PORTVERSION=	5.3
CATEGORIES=	lang
MASTER_SITES=	https://inai.de/files/libhx/ \
		https://codeberg.org/jengelh/libhx/releases/download/v${PORTVERSION}/

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	C/C++ library with common data structures and functions
WWW=		https://inai.de/projects/libhx/

LICENSE=	LGPL21+

USES=		cpe libtool localbase tar:zst
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET=	install-strip
TEST_TARGET=	check

CPE_VENDOR=	jan_engelhardt

OPTIONS_DEFINE=	DOCS

PORTDOCS=	*
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:tl}

post-install-DOCS-on:
	${CP} -a ${INSTALL_WRKSRC}/doc/ ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
