blob: 57e43804f60a7ecd0a324f45b94019f14cb1a802 (
plain)
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
|
require 'formula'
class Falcon < Formula
homepage 'http://www.falconpl.org/'
url 'http://falconpl.org/project_dl/_official_rel/Falcon-0.9.6.8.tgz'
sha1 '8720096a8257e8bf370e3f0a072b5600d7575f64'
head 'http://git.falconpl.org/falcon.git'
option 'editline', "Use editline instead of readline"
option 'feathers', "Include feathers (extra libraries)"
depends_on 'cmake' => :build
depends_on 'pcre'
conflicts_with 'sdl',
:because => "Falcon optionally depends on SDL and then the build breaks. Fix it!"
def install
args = std_cmake_args + %W{
-DCMAKE_INSTALL_PREFIX=#{prefix}
-DFALCON_BIN_DIR=#{bin}
-DFALCON_LIB_DIR=#{lib}
-DFALCON_MAN_DIR=#{man1}
-DFALCON_WITH_INTERNAL_PCRE=OFF
-DFALCON_WITH_MANPAGES=ON}
if build.include? 'editline'
args << "-DFALCON_WITH_EDITLINE=ON"
else
args << "-DFALCON_WITH_EDITLINE=OFF"
end
if build.include? 'feathers'
args << "-DFALCON_WITH_FEATHERS=feathers"
else
args << "-DFALCON_WITH_FEATHERS=NO"
end
system "cmake", *args
system "make"
system "make install"
end
end
|