Permalink
Browse files

freerdp: fix HEAD builds

Closes #16851.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent ff95e76 commit 87967cb2c0e1ec1407073f29b873db30b416fe70 @zeha zeha committed with klausmeyer Jan 2, 2013
Showing with 12 additions and 1 deletion.
  1. +12 −1 Library/Formula/freerdp.rb
View
13 Library/Formula/freerdp.rb
@@ -17,9 +17,20 @@ def patches
'https://github.com/FreeRDP/FreeRDP/commit/1d3289.patch',
'https://github.com/FreeRDP/FreeRDP/commit/e32f9e.patch'
]
- end
+ end unless build.head?
def install
+ if build.head? then
+ # workaround for out-of-git clone tree build
+ inreplace 'cmake/GetGitRevisionDescription.cmake',
+ 'set(GIT_PARENT_DIR "${CMAKE_SOURCE_DIR}")',
+ "set(GIT_PARENT_DIR \"#{cached_download}\")"
+
+ inreplace 'cmake/GetGitRevisionDescription.cmake',
+ 'WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"',
+ "WORKING_DIRECTORY \"#{cached_download}\""
+ end
+
system "cmake", ".", *std_cmake_args
system "make install"
end

0 comments on commit 87967cb

Please sign in to comment.