summaryrefslogtreecommitdiff
path: root/devel/notcurses/Makefile
blob: a2163aff5ba78c1f7e3a1de4672b38518c751233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

PORTNAME=	notcurses
DISTVERSIONPREFIX=	v
DISTVERSION=	${ABIVERSION}.2.2
CATEGORIES=	devel

MAINTAINER=	nickblack@linux.com
COMMENT=	TUI library for modern terminal emulators

LICENSE=	APACHE20 MIT
LICENSE_COMB=	dual

LIB_DEPENDS=	libavformat.so:multimedia/ffmpeg \
		libqrcodegen.so:graphics/qr-code-generator \
		libunistring.so:devel/libunistring

USES=		cmake:noninja compiler:c++17-lang localbase \
		ncurses:port pkgconfig readline
USE_GITHUB=	yes
GH_ACCOUNT=	dankamongmen
USE_LDCONFIG=	yes

CMAKE_OFF=	BUILD_TESTING

TEST_TARGET=	test

PLIST_SUB=	REL_VER=${DISTVERSION} ABI_VER=${ABIVERSION}
PORTDOCS=	*.md

OPTIONS_DEFINE=		DOCS MANPAGES
OPTIONS_DEFAULT=	MANPAGES
OPTIONS_SUB=		yes

DOCS_BUILD_DEPENDS=	${LOCALBASE}/include/doctest/doctest.h:devel/doctest \
			pandoc:textproc/hs-pandoc
DOCS_CMAKE_BOOL=	USE_PANDOC USE_DOCTEST

ABIVERSION=	2

.include <bsd.port.mk>