Skip to content

Commit

Permalink
www/aria2: Add EXPAT, LIBUV and LIBXML2 options
Browse files Browse the repository at this point in the history
It allows users to choose XML backend.

PR:		254559
Requested by:	Daniel Engberg <daniel.engberg.lists@pyret.net>
  • Loading branch information
sunpoet committed Jul 21, 2021
1 parent ee05a0f commit 8965c60
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions www/aria2/Makefile
Expand Up @@ -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
Expand All @@ -33,17 +32,27 @@ 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
CA_BUNDLE_CONFIGURE_ON= --with-ca-bundle=${LOCALBASE}/share/certs/ca-root-nss.crt
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
Expand Down

0 comments on commit 8965c60

Please sign in to comment.