homebrew-core/Formula/freerdp.rb

38 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
class Freerdp < Formula
homepage 'http://www.freerdp.com/'
2012-06-04 03:40:29 +00:00
url 'https://github.com/FreeRDP/FreeRDP/tarball/1.0.1'
sha1 '93a7ffaa0e0942f3446810777154bf78053cc66c'
2012-06-04 03:40:29 +00:00
2012-03-16 02:36:58 +00:00
head 'https://github.com/FreeRDP/FreeRDP.git'
depends_on :x11
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
# Upstream; check for removal on 1.1 release.
def patches
[
'https://github.com/FreeRDP/FreeRDP/commit/1d3289.patch',
'https://github.com/FreeRDP/FreeRDP/commit/e32f9e.patch'
]
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
end