aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-22 15:31:19 -0500
committerJack Nagel2014-06-22 15:31:30 -0500
commitf9b290084c4124a35b25d6a5beb691717606daa6 (patch)
treef3e80677c8a9aa236cf8f8b5981c9bbd6f1d1d4a /Library
parent202f6a071eba29773ce57e672be29510912696c2 (diff)
downloadhomebrew-f9b290084c4124a35b25d6a5beb691717606daa6.tar.bz2
alure: don't use libvorbis when it's not requested
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/alure.rb6
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