2011-11-22 22:17:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Czmq < Formula
|
|
|
|
homepage 'http://czmq.zeromq.org/'
|
2013-08-07 16:26:57 +00:00
|
|
|
head 'https://github.com/zeromq/czmq.git'
|
2013-05-09 14:23:32 +00:00
|
|
|
url 'http://download.zeromq.org/czmq-1.4.1.tar.gz'
|
|
|
|
sha1 '8ddb485e9d53bca6bb703c850be40b8da70c4d74'
|
2011-11-22 22:17:27 +00:00
|
|
|
|
2012-10-09 05:08:47 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-08-07 16:26:57 +00:00
|
|
|
if build.head?
|
|
|
|
depends_on 'autoconf'
|
|
|
|
depends_on 'automake'
|
|
|
|
depends_on 'libtool'
|
|
|
|
end
|
|
|
|
|
2013-08-07 16:46:36 +00:00
|
|
|
depends_on 'zeromq'
|
|
|
|
|
2011-11-22 22:17:27 +00:00
|
|
|
def install
|
2012-10-09 05:08:47 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2013-08-07 16:46:36 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-11-22 22:17:27 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|