summaryrefslogtreecommitdiff
path: root/textproc/goldendict-ng/Makefile
blob: a8ca6b9c82ba4e39c618ea5116e1f925ac6b59b1 (plain) (blame)
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
41
42
43
44
PORTNAME=	goldendict-ng
DISTVERSIONPREFIX=	v
DISTVERSION=	25.05.0
PORTREVISION=	1
CATEGORIES=	textproc

MAINTAINER=	mew14930xvi@inbox.lv
COMMENT=	Advanced dictionary lookup program, supporting many formats
WWW=		https://xiaoyifang.github.io/goldendict-ng/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libavutil.so:multimedia/ffmpeg \
		libfmt.so:devel/libfmt \
		libhunspell-1.7.so:textproc/hunspell \
		liblzo2.so:archivers/lzo2 \
		libopencc.so:chinese/opencc \
		libtomlplusplus.so:devel/tomlplusplus \
		libvorbis.so:audio/libvorbis \
		libxapian.so:databases/xapian-core \
		libzim.so:devel/libzim

USES=		cmake compiler:c++17-lang desktop-file-utils gl pkgconfig qt:6 \
		xorg
USE_GITHUB=	yes
GH_ACCOUNT=	xiaoyifang
GH_TAGNAME=	2a2b0e16
USE_GL=		opengl
USE_QT=		5compat base declarative multimedia positioning svg webchannel \
		webengine tools:build
USE_XORG=	ice sm x11 xext xtst

CMAKE_ON=		USE_ALTERNATIVE_NAME USE_SYSTEM_FMT USE_SYSTEM_TOML
CONFIGURE_WRKSRC=	${WRKSRC}/build_dir

OPTIONS_DEFINE=		EPWING
OPTIONS_DEFAULT=	EPWING

EPWING_DESC=		Japanese EPWING dictionary format support
EPWING_LIB_DEPENDS=	libeb.so:japanese/eb
EPWING_CMAKE_OFF=	-DWITH_EPWING_SUPPORT=OFF

.include <bsd.port.mk>