Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2021 21:14:39 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8965c60d6e6e - main - www/aria2: Add EXPAT, LIBUV and LIBXML2 options
Message-ID:  <202107212114.16LLEdn0087175@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8965c60d6e6e086ebea2ecbe57d072f0418d978b

commit 8965c60d6e6e086ebea2ecbe57d072f0418d978b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-07-21 21:12:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-07-21 21:12:56 +0000

    www/aria2: Add EXPAT, LIBUV and LIBXML2 options
    
    It allows users to choose XML backend.
    
    PR:             254559
    Requested by:   Daniel Engberg <daniel.engberg.lists@pyret.net>
---
 www/aria2/Makefile | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/www/aria2/Makefile b/www/aria2/Makefile
index a594008df084..0b1b106292aa 100644
--- a/www/aria2/Makefile
+++ b/www/aria2/Makefile
@@ -12,14 +12,13 @@ COMMENT=	Yet another download tool
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		compiler:c++11-lib gnome libtool pathfix pkgconfig ssl tar:xz
-USE_GNOME=	libxml2
+USES=		compiler:c++11-lib libtool pathfix pkgconfig ssl tar:xz
 
 CONFIGURE_ARGS=	--disable-epoll \
 		--enable-bittorrent --enable-libaria2 --enable-metalink --enable-shared --enable-ssl --enable-static --enable-threads=posix --enable-websocket \
 		--with-disk-cache=${ARIA2_DISK_CACHE} \
-		--with-libxml2 --with-libz --with-openssl \
-		--without-appletls --without-gnutls --without-libexpat --without-libgcrypt --without-libgmp --without-libnettle --without-libuv
+		--with-libz --with-openssl \
+		--without-appletls --without-gnutls --without-libgcrypt --without-libgmp --without-libnettle
 CONFIGURE_ENV=	OPENSSL_CFLAGS=-I${OPENSSLINC} \
 		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
 		ac_cv_path_RST2HTML=no
@@ -33,10 +32,13 @@ PORTDOCS=	*
 
 ARIA2_DISK_CACHE?=	16M
 
-OPTIONS_DEFINE=	CA_BUNDLE CARES DOCS NLS SQLITE SSH2
-OPTIONS_DEFAULT=CA_BUNDLE SQLITE
+OPTIONS_DEFINE=	CA_BUNDLE CARES DOCS LIBUV NLS SQLITE SSH2
+OPTIONS_SINGLE=	XML
+OPTIONS_SINGLE_XML=	EXPAT LIBXML2
+OPTIONS_DEFAULT=CA_BUNDLE LIBXML2 SQLITE
 OPTIONS_SUB=	yes
 CA_BUNDLE_DESC=	Use CA bundle from Mozilla Project
+LIBUV_DESC=	Event polling via libuv
 SSH2_DESC=	SSH2 protocol support
 
 CA_BUNDLE_CONFIGURE_OFF=--without-ca-bundle
@@ -44,6 +46,13 @@ CA_BUNDLE_CONFIGURE_ON=	--with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.cr
 CA_BUNDLE_RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 CARES_CONFIGURE_WITH=	libcares
 CARES_LIB_DEPENDS=	libcares.so:dns/c-ares
+EXPAT_CONFIGURE_WITH=	libexpat
+EXPAT_LIB_DEPENDS=	libexpat.so:devel/expat2
+LIBUV_CONFIGURE_WITH=	libuv
+LIBUV_LIB_DEPENDS=	libuv.so:devel/libuv
+LIBXML2_CONFIGURE_WITH=	libxml2
+LIBXML2_USE=		GNOME=libxml2
+LIBXML2_USES=		gnome
 NLS_CONFIGURE_OFF=	--disable-nls --without-libintl-prefix
 NLS_CONFIGURE_ON=	--with-libintl-prefix=${LOCALBASE}
 NLS_LDFLAGS=		-lintl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107212114.16LLEdn0087175>