/
Makefile
49 lines (38 loc) · 1.5 KB
/
Makefile
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
45
46
47
48
49
PORTNAME= yacreader
DISTVERSION= 9.10.0
PORTREVISION= 2
CATEGORIES= graphics
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= a35cb979e4d3.patch:-p1 # https://github.com/YACReader/yacreader/pull/350
PATCHFILES+= be85954b0c42.patch:-p1 # https://github.com/YACReader/yacreader/pull/356
PATCHFILES+= 0574f2d345c2.patch:-p1 # https://github.com/YACReader/yacreader/pull/356
PATCHFILES+= d4f12ff066f1.patch:-p1 # https://github.com/YACReader/yacreader/pull/356
PATCHFILES+= 06d744e88bf7.patch:-p1 # https://github.com/YACReader/yacreader/pull/356
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Yet another comic reader
WWW= https://www.yacreader.com/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.txt
LIB_DEPENDS= libunarr.so:archivers/unarr
FLAVORS= qt5 qt6
USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake qt:5
USE_GITHUB= yes
USE_QT= qmake:build buildtools:build core concurrent:build declarative \
gui linguisttools:build multimedia network quickcontrols2 \
sql sql-sqlite3:run svg testlib:build widgets
.if ${FLAVOR:U} == qt6
PKGNAMESUFFIX= -${FLAVOR}
USES:= ${USES:S/qt:5/qt:6/}
USE_QT= 5compat base declarative multimedia svg tools:build
CONFLICTS_INSTALL= ${PORTNAME}
.else
CONFLICTS_INSTALL= ${PORTNAME}-qt6
.endif
OPTIONS_DEFINE= OPENGL POPPLER
OPTIONS_DEFAULT=OPENGL POPPLER
OPENGL_USES= gl
OPENGL_USE= GL=gl
OPENGL_QMAKE_OFF= CONFIG+=no_opengl
POPPLER_LIB_DEPENDS= libpoppler-${FLAVOR}.so:graphics/poppler-${FLAVOR}
POPPLER_QMAKE_OFF= CONFIG+=no_pdf
.include <bsd.port.mk>