libtorrent: refactor openssl optional dependency
Signed-off-by: Asaf Kahlon <asafka7@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
763c2db314
commit
131ac0b41b
@ -6,15 +6,20 @@
|
|||||||
|
|
||||||
LIBTORRENT_VERSION = 0.13.7
|
LIBTORRENT_VERSION = 0.13.7
|
||||||
LIBTORRENT_SITE = http://rtorrent.net/downloads
|
LIBTORRENT_SITE = http://rtorrent.net/downloads
|
||||||
LIBTORRENT_DEPENDENCIES = host-pkgconf zlib \
|
LIBTORRENT_DEPENDENCIES = host-pkgconf zlib
|
||||||
$(if $(BR2_PACKAGE_OPENSSL),openssl)
|
|
||||||
LIBTORRENT_CONF_OPTS = --enable-aligned \
|
LIBTORRENT_CONF_OPTS = --enable-aligned \
|
||||||
--disable-instrumentation \
|
--disable-instrumentation \
|
||||||
--with-zlib=$(STAGING_DIR)/usr \
|
--with-zlib=$(STAGING_DIR)/usr
|
||||||
$(if $(BR2_PACKAGE_OPENSSL),--enable-openssl,--disable-openssl)
|
|
||||||
LIBTORRENT_INSTALL_STAGING = YES
|
LIBTORRENT_INSTALL_STAGING = YES
|
||||||
LIBTORRENT_AUTORECONF = YES
|
LIBTORRENT_AUTORECONF = YES
|
||||||
LIBTORRENT_LICENSE = GPL-2.0
|
LIBTORRENT_LICENSE = GPL-2.0
|
||||||
LIBTORRENT_LICENSE_FILES = COPYING
|
LIBTORRENT_LICENSE_FILES = COPYING
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
|
LIBTORRENT_CONF_OPTS += --enable-openssl
|
||||||
|
LIBTORRENT_DEPENDENCIES += openssl
|
||||||
|
else
|
||||||
|
LIBTORRENT_CONF_OPTS += --disable-openssl
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
Reference in New Issue
Block a user