zeromq: optional libsodium dependency

Closes Homebrew/homebrew#23180.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Jason Roelofs 2013-10-10 12:35:12 -04:00 committed by Adam Vandenberg
parent 3a34eb8954
commit 0f7f0d345a
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class Zeromq < Formula
depends_on 'pkg-config' => :build
depends_on 'libpgm' if build.include? 'with-pgm'
depends_on 'libsodium' => :optional
def install
ENV.universal_binary if build.universal?
@ -31,6 +32,8 @@ class Zeromq < Formula
args << "--with-system-pgm"
end
args << "--with-libsodium" if build.with? 'libsodium'
system "./autogen.sh" if build.head?
system "./configure", *args
system "make"