diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/zeromq.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/zeromq.rb b/Library/Formula/zeromq.rb index 5ab1daaec..7387f6791 100644 --- a/Library/Formula/zeromq.rb +++ b/Library/Formula/zeromq.rb @@ -22,17 +22,19 @@ class Zeromq < Formula end option :universal - option "with-pgm", "Build with PGM extension" + option "with-libpgm", "Build with PGM extension" + + deprecated_option "with-pgm" => "with-libpgm" depends_on "pkg-config" => :build - depends_on "libpgm" if build.with? "pgm" + depends_on "libpgm" => :optional depends_on "libsodium" => :optional def install ENV.universal_binary if build.universal? args = ["--disable-dependency-tracking", "--prefix=#{prefix}"] - if build.with? "pgm" + if build.with? "libpgm" # 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 |
