]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
resolve FS-3309; zeromq moves around upstream sources
authorTravis Cross <tc@traviscross.com>
Mon, 6 Jun 2011 19:17:10 +0000 (19:17 +0000)
committerTravis Cross <tc@traviscross.com>
Mon, 6 Jun 2011 19:17:10 +0000 (19:17 +0000)
Since zeromq doesn't maintain a single canonical URL for a given
version, we try both possible locations before giving up.

src/mod/event_handlers/mod_event_zmq/Makefile

index a724a63d1eb68bec3ef5fa8e98ad301fcf4b3152..1dc28931e527a9d7af2e47aa018ebe0d2d1db463 100644 (file)
@@ -3,6 +3,7 @@ BASE=../../../..
 ZMQ=zeromq-2.1.4
 
 ZMQ_BASEURL=http://download.zeromq.org
+ZMQ_BASEURL_ALT=http://download.zeromq.org/historic
 
 ZMQ_DIR=$(switch_srcdir)/libs/$(ZMQ)
 ZMQ_BUILDDIR=$(switch_builddir)/libs/$(ZMQ)
@@ -13,7 +14,7 @@ LOCAL_LIBADD=$(ZMQ_LA)
 include $(BASE)/build/modmake.rules
 
 $(ZMQ_DIR):
-       $(GETLIB) $(ZMQ_BASEURL) $(ZMQ).tar.gz
+       $(GETLIB) $(ZMQ_BASEURL) $(ZMQ).tar.gz || $(GETLIB) $(ZMQ_BASEURL_ALT) $(ZMQ).tar.gz
        cd $(ZMQ_DIR) && ./autogen.sh
 
 $(ZMQ_BUILDDIR)/Makefile: $(ZMQ_DIR)