diff options
| author | Asaf Kahlon <asafka7@gmail.com> | 2018-08-30 16:42:20 +0300 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-09-01 14:59:05 +0200 |
| commit | 131ac0b41ba849daa1f9d92553a7646f087ac961 (patch) | |
| tree | 0243d69b7808c77e92e58b3c148c28589e376e38 | |
| parent | 763c2db314fa3a5a486055ad15cb506859e4e955 (diff) | |
| download | buildroot-131ac0b41ba849daa1f9d92553a7646f087ac961.tar.gz buildroot-131ac0b41ba849daa1f9d92553a7646f087ac961.zip | |
libtorrent: refactor openssl optional dependency
Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
| -rw-r--r-- | package/libtorrent/libtorrent.mk | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/package/libtorrent/libtorrent.mk b/package/libtorrent/libtorrent.mk index 8d74addaf7..de964b45ae 100644 --- a/package/libtorrent/libtorrent.mk +++ b/package/libtorrent/libtorrent.mk @@ -6,15 +6,20 @@ LIBTORRENT_VERSION = 0.13.7 LIBTORRENT_SITE = http://rtorrent.net/downloads -LIBTORRENT_DEPENDENCIES = host-pkgconf zlib \ - $(if $(BR2_PACKAGE_OPENSSL),openssl) +LIBTORRENT_DEPENDENCIES = host-pkgconf zlib LIBTORRENT_CONF_OPTS = --enable-aligned \ --disable-instrumentation \ - --with-zlib=$(STAGING_DIR)/usr \ - $(if $(BR2_PACKAGE_OPENSSL),--enable-openssl,--disable-openssl) + --with-zlib=$(STAGING_DIR)/usr LIBTORRENT_INSTALL_STAGING = YES LIBTORRENT_AUTORECONF = YES LIBTORRENT_LICENSE = GPL-2.0 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)) |

