Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2021 20:31:28 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: 7e3acffb5ec9 - main - www/aria2: Add STATIC option
Message-ID:  <202107242031.16OKVSY1004449@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=7e3acffb5ec90aac20dcac6a90dc8b70b45d55ba

commit 7e3acffb5ec90aac20dcac6a90dc8b70b45d55ba
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-07-24 20:21:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-07-24 20:21:15 +0000

    www/aria2: Add STATIC option
    
    PR:             254559
    Requested by:   Daniel Engberg <daniel.engberg.lists@pyret.net>
---
 www/aria2/Makefile  | 7 ++++---
 www/aria2/pkg-plist | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/www/aria2/Makefile b/www/aria2/Makefile
index 0b1b106292aa..d3590786ed1c 100644
--- a/www/aria2/Makefile
+++ b/www/aria2/Makefile
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 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 \
+		--enable-bittorrent --enable-libaria2 --enable-metalink --enable-shared --enable-ssl --enable-threads=posix --enable-websocket \
 		--with-disk-cache=${ARIA2_DISK_CACHE} \
 		--with-libz --with-openssl \
 		--without-appletls --without-gnutls --without-libgcrypt --without-libgmp --without-libnettle
@@ -32,10 +32,10 @@ PORTDOCS=	*
 
 ARIA2_DISK_CACHE?=	16M
 
-OPTIONS_DEFINE=	CA_BUNDLE CARES DOCS LIBUV NLS SQLITE SSH2
+OPTIONS_DEFINE=	CA_BUNDLE CARES DOCS LIBUV NLS SQLITE SSH2 STATIC
 OPTIONS_SINGLE=	XML
 OPTIONS_SINGLE_XML=	EXPAT LIBXML2
-OPTIONS_DEFAULT=CA_BUNDLE LIBXML2 SQLITE
+OPTIONS_DEFAULT=CA_BUNDLE LIBXML2 SQLITE STATIC
 OPTIONS_SUB=	yes
 CA_BUNDLE_DESC=	Use CA bundle from Mozilla Project
 LIBUV_DESC=	Event polling via libuv
@@ -61,6 +61,7 @@ SQLITE_CONFIGURE_WITH=	sqlite3
 SQLITE_USES=		sqlite
 SSH2_CONFIGURE_WITH=	libssh2
 SSH2_LIB_DEPENDS=	libssh2.so:security/libssh2
+STATIC_CONFIGURE_ENABLE=static
 
 post-install:
 	${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
diff --git a/www/aria2/pkg-plist b/www/aria2/pkg-plist
index bf1f1e083c98..88f07c48b293 100644
--- a/www/aria2/pkg-plist
+++ b/www/aria2/pkg-plist
@@ -1,7 +1,7 @@
 bin/aria2c
 etc/bash_completion.d/aria2c
 include/aria2/aria2.h
-lib/libaria2.a
+%%STATIC%%lib/libaria2.a
 lib/libaria2.so
 lib/libaria2.so.0
 lib/libaria2.so.0.0.0



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