homebrew-core/Formula/zeromq.rb
MinRK aa52d56416 zeromq 3.2.3
Closes Homebrew/homebrew#19662.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-15 10:02:06 -07:00

53 lines
1.4 KiB
Ruby

require 'formula'
class Zeromq < Formula
homepage 'http://www.zeromq.org/'
url 'http://download.zeromq.org/zeromq-3.2.3.tar.gz'
sha1 '6857a3a0e908eca58f7c0f90e2ba4695f6700957'
head 'https://github.com/zeromq/libzmq.git'
depends_on 'pkg-config' => :build
depends_on 'libpgm' if build.include? 'with-pgm'
if build.head?
depends_on :automake
depends_on :libtool
end
fails_with :llvm do
build 2326
cause "Segfault while linking"
end
option :universal
option 'with-pgm', 'Build with PGM extension'
def install
ENV.universal_binary if build.universal?
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
if build.include? 'with-pgm'
# Use HB libpgm-5.2 because their internal 5.1 is b0rked.
ENV['OpenPGM_CFLAGS'] = %x[pkg-config --cflags openpgm-5.2].chomp
ENV['OpenPGM_LIBS'] = %x[pkg-config --libs openpgm-5.2].chomp
args << "--with-system-pgm"
end
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"
system "make install"
end
def caveats; <<-EOS.undent
To install the zmq gem on 10.6 with the system Ruby on a 64-bit machine,
you may need to do:
ARCHFLAGS="-arch x86_64" gem install zmq -- --with-zmq-dir=#{HOMEBREW_PREFIX}
If you want to build the Java bindings from https://github.com/zeromq/jzmq
you will need the Java Developer Package from http://connect.apple.com/
EOS
end
end