homebrew-core/Formula/czmq.rb

31 lines
647 B
Ruby
Raw Normal View History

require 'formula'
class Czmq < Formula
homepage 'http://czmq.zeromq.org/'
head 'https://github.com/zeromq/czmq.git'
url 'http://download.zeromq.org/czmq-1.4.1.tar.gz'
sha1 '8ddb485e9d53bca6bb703c850be40b8da70c4d74'
option :universal
depends_on 'zeromq'
if build.head?
depends_on 'autoconf'
depends_on 'automake'
depends_on 'libtool'
end
def install
ENV.universal_binary if build.universal?
if build.head?
system "./autogen.sh"
end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end