aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-05-10 17:54:26 -0500
committerJack Nagel2014-05-10 17:55:44 -0500
commit6d788d1a2aad3a48a2210c2100e15eb075d479d2 (patch)
tree8435034d882a3d6435846fb157e5d77b0183b3d4 /Library/Formula
parent1e0f3e81914658952789c9d0251b05153cdf3a0c (diff)
downloadhomebrew-6d788d1a2aad3a48a2210c2100e15eb075d479d2.tar.bz2
ffmpeg: set GIT_DIR so head builds can determine the version
Fixes #29118.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ffmpeg.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb
index 4bbff15bb..6b4f6bfb3 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -110,6 +110,8 @@ class Ffmpeg < Formula
# http://trac.macports.org/ticket/20938#comment:22
ENV.append_to_cflags "-mdynamic-no-pic" if Hardware.is_32_bit? && Hardware::CPU.intel? && ENV.compiler == :clang
+ ENV["GIT_DIR"] = cached_download/".git" if build.head?
+
system "./configure", *args
if MacOS.prefer_64_bit?