diff options
| author | Jack Nagel | 2014-06-22 15:31:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-22 15:31:30 -0500 |
| commit | f9b290084c4124a35b25d6a5beb691717606daa6 (patch) | |
| tree | f3e80677c8a9aa236cf8f8b5981c9bbd6f1d1d4a /Library | |
| parent | 202f6a071eba29773ce57e672be29510912696c2 (diff) | |
| download | homebrew-f9b290084c4124a35b25d6a5beb691717606daa6.tar.bz2 | |
alure: don't use libvorbis when it's not requested
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/alure.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/alure.rb b/Library/Formula/alure.rb index e1d07980b..aea5f735a 100644 --- a/Library/Formula/alure.rb +++ b/Library/Formula/alure.rb @@ -18,8 +18,10 @@ class Alure < Formula # fix a broken include flags line, which fixes a build error. # Not reported upstream. # https://github.com/Homebrew/homebrew/pull/6368 - inreplace 'CMakeLists.txt', '${VORBISFILE_CFLAGS}', - %x[pkg-config --cflags vorbisfile].chomp + if build.with? "libvorbis" + inreplace "CMakeLists.txt", "${VORBISFILE_CFLAGS}", + %x[pkg-config --cflags vorbisfile].chomp + end cd "build" do system "cmake", "..", *std_cmake_args |
