2014-04-11 14:41:09 +00:00
|
|
|
require "formula"
|
2012-01-17 22:37:09 +00:00
|
|
|
|
|
|
|
class Freerdp < Formula
|
2014-04-11 14:41:09 +00:00
|
|
|
homepage "http://www.freerdp.com/"
|
2014-03-17 00:35:07 +00:00
|
|
|
|
|
|
|
stable do
|
|
|
|
url "https://github.com/FreeRDP/FreeRDP/archive/1.0.2.tar.gz"
|
|
|
|
sha1 "aa521fc9b0610df6c03c2297c1230348805b0010"
|
|
|
|
|
|
|
|
patch do
|
2014-04-11 14:41:09 +00:00
|
|
|
url "https://github.com/FreeRDP/FreeRDP/commit/1d3289.diff"
|
|
|
|
sha1 "294acefbfba7452baaf7af1964769f0d8ac6e46c"
|
2014-03-17 00:35:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
patch do
|
2014-04-11 14:41:09 +00:00
|
|
|
url "https://github.com/FreeRDP/FreeRDP/commit/e32f9e.diff"
|
|
|
|
sha1 "6453e232a2f0a652d85b11b7e05ba17beefec442"
|
2014-03-17 00:35:07 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
# https://github.com/FreeRDP/FreeRDP/pull/1682/files
|
|
|
|
patch do
|
2014-04-26 19:48:32 +00:00
|
|
|
url "https://gist.githubusercontent.com/bmiklautz/8832375/raw/ac77b61185d11aa69e5f6b5e88c0fa597c04d964/freerdp-1.0.2-osxversion-patch.diff"
|
2014-03-17 00:35:07 +00:00
|
|
|
sha1 "2793c0251396778b763b627e68dae1e0a5d41eab"
|
|
|
|
end
|
|
|
|
end
|
2012-06-04 03:40:29 +00:00
|
|
|
|
2014-05-30 23:03:52 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "361ae059c21eaccfa551b7f4924b2762a6d8d6b1" => :mavericks
|
|
|
|
sha1 "8a82974856fa6346e7ff43b7abb6b12dc5e06634" => :mountain_lion
|
|
|
|
sha1 "49bc6add9fec028879985d288252287ed00c8434" => :lion
|
|
|
|
end
|
|
|
|
|
2014-05-24 03:07:51 +00:00
|
|
|
head do
|
2014-05-24 03:09:09 +00:00
|
|
|
url "https://github.com/FreeRDP/FreeRDP.git"
|
2014-05-30 20:41:18 +00:00
|
|
|
depends_on :xcode => :build # for "ibtool"
|
2014-05-24 03:07:51 +00:00
|
|
|
end
|
2012-01-17 22:37:09 +00:00
|
|
|
|
2012-08-05 12:56:06 +00:00
|
|
|
depends_on :x11
|
2012-01-17 22:37:09 +00:00
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
|
|
|
def install
|
2014-02-05 19:22:15 +00:00
|
|
|
cmake_args = std_cmake_args
|
|
|
|
|
2013-01-02 23:05:56 +00:00
|
|
|
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}\""
|
2014-02-05 19:22:15 +00:00
|
|
|
cmake_args << "-DWITH_X11=ON"
|
2013-01-02 23:05:56 +00:00
|
|
|
end
|
|
|
|
|
2014-02-05 19:22:15 +00:00
|
|
|
system "cmake", ".", *cmake_args
|
2012-01-17 22:37:09 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|