From c37a1e4368347376995b746d10739e586525d787 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 10 May 2014 17:54:26 -0500 Subject: [PATCH] ffmpeg: set GIT_DIR so head builds can determine the version Fixes Homebrew/homebrew#29118. --- Formula/ffmpeg.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/ffmpeg.rb b/Formula/ffmpeg.rb index 4bbff15bb32..6b4f6bfb3d0 100644 --- a/Formula/ffmpeg.rb +++ b/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?