summaryrefslogtreecommitdiff
path: root/deskutils/coolreader/Makefile
blob: 6fdc831555363bbc9baa7e44bc37c9bab442324c (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

PORTNAME=	coolreader
DISTVERSIONPREFIX=	cr
DISTVERSION=	3.2.55
CATEGORIES=	deskutils

MAINTAINER=	mistresssilvara@hotmail.com
COMMENT=	E-book reader

LICENSE=	GPLv2 LGPL21+ BSD2CLAUSE
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libfreetype.so:print/freetype2 \
		libharfbuzz.so:print/harfbuzz \
		libpng16.so:graphics/png \
		libfribidi.so:converters/fribidi \
		libunibreak.so:textproc/libunibreak \
		libfontconfig.so:x11-fonts/fontconfig

USES=		qt:5 cmake:noninja pkgconfig desktop-file-utils jpeg

USE_GITHUB=	yes
GH_ACCOUNT=	buggins

USE_QT=		core buildtools_build gui qmake_build widgets linguisttools_build

CMAKE_ARGS=	-D GUI=QT5 -D MAX_IMAGE_SCALE_MUL=2 \
		-D DOC_DATA_COMPRESSION_LEVEL=3 -D DOC_BUFFER_SIZE=0x1400000
CXXFLAGS+=	-D CR_EMULATE_GETTEXT=1 \
		-I${WRKSRC}/thirdparty_unman/nanosvg/src

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	yes

.include <bsd.port.mk>