aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-24 20:21:15 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-24 20:21:15 +0000
commit7e3acffb5ec90aac20dcac6a90dc8b70b45d55ba (patch)
treeeaa6daa30c7a58756f377e7e129068f809e90cb7
parent89fc580eae37326f9cf060b2bd3faa97a98df3e2 (diff)
downloadports-7e3acffb5ec90aac20dcac6a90dc8b70b45d55ba.tar.gz
ports-7e3acffb5ec90aac20dcac6a90dc8b70b45d55ba.zip
www/aria2: Add STATIC option
PR: 254559 Requested by: Daniel Engberg <daniel.engberg.lists@pyret.net>
-rw-r--r--www/aria2/Makefile7
-rw-r--r--www/aria2/pkg-plist2
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