zeromq: optional libsodium dependency
Closes Homebrew/homebrew#23180. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
3a34eb8954
commit
0f7f0d345a
|
@ -19,6 +19,7 @@ class Zeromq < Formula
|
||||||
|
|
||||||
depends_on 'pkg-config' => :build
|
depends_on 'pkg-config' => :build
|
||||||
depends_on 'libpgm' if build.include? 'with-pgm'
|
depends_on 'libpgm' if build.include? 'with-pgm'
|
||||||
|
depends_on 'libsodium' => :optional
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV.universal_binary if build.universal?
|
ENV.universal_binary if build.universal?
|
||||||
|
@ -31,6 +32,8 @@ class Zeromq < Formula
|
||||||
args << "--with-system-pgm"
|
args << "--with-system-pgm"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
args << "--with-libsodium" if build.with? 'libsodium'
|
||||||
|
|
||||||
system "./autogen.sh" if build.head?
|
system "./autogen.sh" if build.head?
|
||||||
system "./configure", *args
|
system "./configure", *args
|
||||||
system "make"
|
system "make"
|
||||||
|
|
Loading…
Reference in New Issue