ffmpeg: set GIT_DIR so head builds can determine the version

Fixes Homebrew/homebrew#29118.
master
Jack Nagel 2014-05-10 17:54:26 -05:00
parent 12f1055818
commit c37a1e4368
1 changed files with 2 additions and 0 deletions

View File

@ -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?