2010-04-02 03:13:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Falcon < Formula
|
2010-04-02 03:13:22 +00:00
|
|
|
homepage 'http://www.falconpl.org/'
|
2012-04-19 02:37:43 +00:00
|
|
|
url 'http://falconpl.org/project_dl/_official_rel/Falcon-0.9.6.8.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8720096a8257e8bf370e3f0a072b5600d7575f64'
|
2010-10-01 03:15:27 +00:00
|
|
|
|
2012-04-19 02:37:43 +00:00
|
|
|
head 'http://git.falconpl.org/falcon.git'
|
2010-04-02 03:13:22 +00:00
|
|
|
|
2012-08-28 05:01:46 +00:00
|
|
|
option 'editline', "Use editline instead of readline"
|
|
|
|
option 'feathers', "Include feathers (extra libraries)"
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-04-02 03:13:22 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
|
2012-08-19 05:05:19 +00:00
|
|
|
conflicts_with 'sdl',
|
|
|
|
:because => "Falcon optionally depends on SDL and then the build breaks. Fix it!"
|
|
|
|
|
2010-10-01 03:15:27 +00:00
|
|
|
def install
|
2012-08-19 05:05:19 +00:00
|
|
|
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}
|
2010-10-01 03:15:27 +00:00
|
|
|
|
2012-08-28 05:01:46 +00:00
|
|
|
if build.include? 'editline'
|
2010-10-01 03:15:27 +00:00
|
|
|
args << "-DFALCON_WITH_EDITLINE=ON"
|
|
|
|
else
|
|
|
|
args << "-DFALCON_WITH_EDITLINE=OFF"
|
|
|
|
end
|
|
|
|
|
2012-08-28 05:01:46 +00:00
|
|
|
if build.include? 'feathers'
|
2010-10-01 03:15:27 +00:00
|
|
|
args << "-DFALCON_WITH_FEATHERS=feathers"
|
|
|
|
else
|
|
|
|
args << "-DFALCON_WITH_FEATHERS=NO"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "cmake", *args
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
2010-04-02 03:13:22 +00:00
|
|
|
end
|
2010-09-19 17:21:57 +00:00
|
|
|
end
|