浏览代码

libeXosip2: fix openssl handling

Build libeXosip2 after openssl if enabled, and explicitly disable support
for it otherwise, so configure doesn't end up looking for it on host.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 13 年之前
父节点
当前提交
d8ce8742e2
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      package/libeXosip2/libeXosip2.mk

+ 7 - 0
package/libeXosip2/libeXosip2.mk

@@ -11,6 +11,13 @@ LIBEXOSIP2_INSTALL_STAGING = YES
 
 LIBEXOSIP2_DEPENDENCIES = host-pkg-config libosip2
 
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBEXOSIP2_DEPENDENCIES += openssl
+LIBEXOSIP2_CONF_OPT += --enable-openssl
+else
+LIBEXOSIP2_CONF_OPT += --disable-openssl
+endif
+
 ifneq ($(LIBEXOSIP2_PATCH),)
 define LIBEXOSIP2_DEBIAN_PATCHES
 	if [ -d $(@D)/debian/patches ]; then \