forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreerdp.rb
48 lines (39 loc) · 1.33 KB
/
freerdp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require "formula"
class Freerdp < Formula
homepage "http://www.freerdp.com/"
stable do
url "https://github.com/FreeRDP/FreeRDP/archive/1.0.2.tar.gz"
sha1 "aa521fc9b0610df6c03c2297c1230348805b0010"
patch do
url "https://github.com/FreeRDP/FreeRDP/commit/1d3289.diff"
sha1 "294acefbfba7452baaf7af1964769f0d8ac6e46c"
end
patch do
url "https://github.com/FreeRDP/FreeRDP/commit/e32f9e.diff"
sha1 "6453e232a2f0a652d85b11b7e05ba17beefec442"
end
# https://github.com/FreeRDP/FreeRDP/pull/1682/files
patch do
url "https://gist.githubusercontent.com/bmiklautz/8832375/raw/ac77b61185d11aa69e5f6b5e88c0fa597c04d964/freerdp-1.0.2-osxversion-patch.diff"
sha1 "2793c0251396778b763b627e68dae1e0a5d41eab"
end
end
bottle do
sha1 "361ae059c21eaccfa551b7f4924b2762a6d8d6b1" => :mavericks
sha1 "8a82974856fa6346e7ff43b7abb6b12dc5e06634" => :mountain_lion
sha1 "49bc6add9fec028879985d288252287ed00c8434" => :lion
end
head do
url "https://github.com/FreeRDP/FreeRDP.git"
depends_on :xcode => :build # for "ibtool"
end
depends_on :x11
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
def install
cmake_args = std_cmake_args
cmake_args << "-DWITH_X11=ON" if build.head?
system "cmake", ".", *cmake_args
system "make install"
end
end