From ad8c7bc6f1e74726a6ff6a853a844fa493ec7dfa Mon Sep 17 00:00:00 2001
From: Brian West <brian@freeswitch.org>
Date: Tue, 22 Jul 2014 06:33:28 -0500
Subject: [PATCH] build curl too so it links against the correct ssl lib.

---
 build/Makefile.openbsd | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/build/Makefile.openbsd b/build/Makefile.openbsd
index 504e031aea..ae5874d1af 100644
--- a/build/Makefile.openbsd
+++ b/build/Makefile.openbsd
@@ -12,6 +12,7 @@ FSPREFIX=/usr/local/freeswitch
 PREFIX=$(FSPREFIX)
 OPENSSL=1.0.1h
 LIBEDIT=20140618-3.1
+CURL=7.35.0
 
 freeswitch: has-git deps freeswitch.git/Makefile
 	cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.14 LIBTOOL=/usr/local/bin/libtoolize gmake
@@ -35,7 +36,7 @@ clean:
 has-git:
 	@git --version || pkg install git
 
-deps: libedit openssl
+deps: libedit openssl curl
 	@PKG_PATH=http://openbsd.mirrors.pair.com/`uname -r`/packages/`machine -a`/ pkg_add -r $(PKG)
 
 openssl: openssl-$(OPENSSL)/Makefile
@@ -49,3 +50,10 @@ libedit-$(LIBEDIT)/Makefile: libedit-$(LIBEDIT)
 libedit-$(LIBEDIT):
 	(test -d $@) || (wget -4 -O $@.tar.gz http://thrysoee.dk/editline/$@.tar.gz && tar zxfv $@.tar.gz)
 	(cd $@ && ./configure --prefix=$(PREFIX) && make && sudo make install)
+
+curl: curl-$(CURL)/.done
+curl-$(CURL)/.done: curl-$(CURL)
+curl-$(CURL):
+	(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
+	(cd $@ && ./configure --prefix=$(PREFIX) && make && sudo make install && touch .done)
+