Upgrade ZeroMQ to 2.1.4, build with PGM support.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
e9da74cd6b
commit
47f52ce02f
1 changed files with 6 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
|||
require 'formula'
|
||||
|
||||
class Zeromq < Formula
|
||||
url 'http://download.zeromq.org/zeromq-2.1.3.tar.gz'
|
||||
url 'http://download.zeromq.org/zeromq-2.1.4.tar.gz'
|
||||
head 'git://github.com/zeromq/zeromq2.git'
|
||||
homepage 'http://www.zeromq.org/'
|
||||
md5 'ae681af2df1b7191aeecfcb23bb73864'
|
||||
md5 'b9a8043792be3bfbf791e77bf3f259e8'
|
||||
|
||||
fails_with_llvm "Compiling with LLVM gives a segfault while linking."
|
||||
|
||||
|
@ -15,14 +15,14 @@ class Zeromq < Formula
|
|||
def build_fat
|
||||
# make 32-bit
|
||||
arch = "-arch i386"
|
||||
system "CFLAGS=\"$CFLAGS #{arch}\" CXXFLAGS=\"$CXXFLAGS #{arch}\" ./configure --disable-dependency-tracking --prefix=#{prefix}"
|
||||
system "CFLAGS=\"$CFLAGS #{arch}\" CXXFLAGS=\"$CXXFLAGS #{arch}\" ./configure --disable-dependency-tracking --prefix=#{prefix} --with-pgm"
|
||||
system "make"
|
||||
system "mv src/.libs src/libs-32"
|
||||
system "make clean"
|
||||
|
||||
# make 64-bit
|
||||
arch = "-arch x86_64"
|
||||
system "CFLAGS=\"$CFLAGS #{arch}\" CXXFLAGS=\"$CXXFLAGS #{arch}\" ./configure --disable-dependency-tracking --prefix=#{prefix}"
|
||||
system "CFLAGS=\"$CFLAGS #{arch}\" CXXFLAGS=\"$CXXFLAGS #{arch}\" ./configure --disable-dependency-tracking --prefix=#{prefix} --with-pgm"
|
||||
system "make"
|
||||
system "mv src/.libs/libzmq.1.dylib src/.libs/libzmq.64.dylib"
|
||||
|
||||
|
@ -36,9 +36,10 @@ class Zeromq < Formula
|
|||
if ARGV.include? '--universal'
|
||||
build_fat
|
||||
else
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-pgm"
|
||||
end
|
||||
|
||||
system "make"
|
||||
system "make install"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue