aboutsummaryrefslogtreecommitdiff
path: root/package/socat/socat.mk
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2014-03-10 16:34:06 -0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-03-11 11:48:28 +0100
commitdf2b2104f4ed219f28bcea12b24cb9507666ee0c (patch)
tree202c0d11b0fbc834094c624fa6bb74d674af1f59 /package/socat/socat.mk
parent442f13779ec07a0c9716b04461becf5381205999 (diff)
downloadbuildroot-df2b2104f4ed219f28bcea12b24cb9507666ee0c.tar.gz
buildroot-df2b2104f4ed219f28bcea12b24cb9507666ee0c.tar.bz2
socat: add optional openssl and readline support
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/socat/socat.mk')
-rw-r--r--package/socat/socat.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/socat/socat.mk b/package/socat/socat.mk
index 6ae67a9f53..7172ea07f8 100644
--- a/package/socat/socat.mk
+++ b/package/socat/socat.mk
@@ -21,6 +21,18 @@ SOCAT_CONF_ENV = sc_cv_termios_ispeed=no \
SOCAT_DEPENDENCIES = host-autoconf
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ SOCAT_DEPENDENCIES += openssl
+else
+ SOCAT_CONF_OPT += --disable-openssl
+endif
+
+ifeq ($(BR2_PACKAGE_READLINE),y)
+ SOCAT_DEPENDENCIES += readline
+else
+ SOCAT_CONF_OPT += --disable-readline
+endif
+
define SOCAT_RUN_AUTOCONF
(cd $(@D); $(HOST_DIR)/usr/bin/autoconf)
endef