COMMENT =		syntax highlighting library for text editors

DISTNAME =		libt3highlight-0.5.0

SHARED_LIBS =		t3highlight 2.0

CATEGORIES =		textproc

HOMEPAGE =		https://os.ghalkes.nl/t3/libt3highlight.html

# GPLv3

PERMIT_PACKAGE =	Yes

WANTLIB = 		intl iconv pthread pcre t3config

SITES =			https://os.ghalkes.nl/dist/
EXTRACT_SUFX =		.tar.bz2

BUILD_DEPENDS =		devel/gettext,-tools \
			devel/libtool \
			devel/libt3config \
			devel/pcre
LIB_DEPENDS =		devel/gettext,-runtime \
			devel/libt3config \
			devel/pcre

CONFIGURE_STYLE =	gnu
CONFIGURE_ARGS =	--prefix=${LOCALBASE}
CONFIGURE_ENV =		CFLAGS="-I${LOCALBASE}/include" \
			CPPFLAGS="-I${LOCALBASE}/include" \
			LDFLAGS="-L${LOCALBASE}/lib"

CFLAGS +=		-I${LOCALBASE}/include
CPPFLAGS +=		-I${LOCALBASE}/include
LDFLAGS +=		-L${LOCALBASE}/lib

.include <bsd.port.mk>
