aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-21 21:12:56 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-21 21:12:56 +0000
commit8965c60d6e6e086ebea2ecbe57d072f0418d978b (patch)
treed2e7957bb26ffa6746b836d7354b1df0991f6d7b
parentee05a0fbe5a5835ca262c01f28de2f050c0d0da1 (diff)
downloadports-8965c60d6e6e086ebea2ecbe57d072f0418d978b.tar.gz
ports-8965c60d6e6e086ebea2ecbe57d072f0418d978b.zip
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>
-rw-r--r--www/aria2/Makefile21
1 files 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