瀏覽代碼

ctorrent: build with ssl support if available

Closes #557

Build with openssl support if that is enabled.

Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Kelvin Cheung 16 年之前
父節點
當前提交
cc8a917598
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 1 0
      CHANGES
  2. 7 1
      package/ctorrent/ctorrent.mk

+ 1 - 0
CHANGES

@@ -3,6 +3,7 @@
 	Issues resolved (http://bugs.uclibc.org):
 
 	#529: util-linux doesn't find headers and include libs correctly
+	#557: Build ctorrent with SSL support if available
 
 2009.08-rc3, Released August 26th, 2009:
 

+ 7 - 1
package/ctorrent/ctorrent.mk

@@ -6,6 +6,12 @@
 CTORRENT_VERSION:=dnh3.3.2
 CTORRENT_SOURCE:=ctorrent-$(CTORRENT_VERSION).tar.gz
 CTORRENT_SITE:=http://www.rahul.net/dholmes/ctorrent/
-CTORRENT_CONF_OPT:=--with-ssl=no
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+CTORRENT_CONF_OPT+=--with-ssl=yes
+CTORRENT_DEPENDENCIES+=openssl
+else
+CTORRENT_CONF_OPT+=--with-ssl=no
+endif
 
 $(eval $(call AUTOTARGETS,package,ctorrent))