git: 11fa81000e2a - main - graphics/yacreader: expose libarchive support after 738f9f22ad1f

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 20 Nov 2022 14:16:44 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=11fa81000e2a661a776e7efd87294e3fb5216ed2

commit 11fa81000e2a661a776e7efd87294e3fb5216ed2
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-11-20 13:12:13 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-11-20 14:16:00 +0000

    graphics/yacreader: expose libarchive support after 738f9f22ad1f
    
    https://github.com/YACReader/yacreader/blob/9.10.0/compressed_archive/libarchive/README.md
---
 graphics/yacreader/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/graphics/yacreader/Makefile b/graphics/yacreader/Makefile
index 24ad81b23a82..cd9033f88cfb 100644
--- a/graphics/yacreader/Makefile
+++ b/graphics/yacreader/Makefile
@@ -17,8 +17,6 @@ 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
@@ -36,9 +34,14 @@ CONFLICTS_INSTALL=	${PORTNAME}
 CONFLICTS_INSTALL=	${PORTNAME}-qt6
 .endif
 
-OPTIONS_DEFINE=	OPENGL POPPLER
+OPTIONS_DEFINE=	ARCHIVE OPENGL POPPLER
 OPTIONS_DEFAULT=OPENGL POPPLER
 
+ARCHIVE_DESC=		libarchive instead of unarr for reading compressed formats
+ARCHIVE_USES=		libarchive
+ARCHIVE_QMAKE_ON=	CONFIG+=libarchive
+ARCHIVE_LIB_DEPENDS_OFF=libunarr.so:archivers/unarr
+
 OPENGL_USES=		gl
 OPENGL_USE=		GL=gl
 OPENGL_QMAKE_OFF=	CONFIG+=no_opengl