aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/falcon.rb
diff options
context:
space:
mode:
authorMax Howell2012-08-19 01:05:19 -0400
committerMax Howell2012-08-21 12:09:05 -0400
commit7ffb2c5cf13bd6befdb2a5e464793710ca90da27 (patch)
tree57191d27a9bba6af8e43770609dd6bddea41032b /Library/Formula/falcon.rb
parenta9e43d65a171ffc5fa355eeafebc967adc25b67f (diff)
downloadhomebrew-7ffb2c5cf13bd6befdb2a5e464793710ca90da27.tar.bz2
Fix Falcon on 10.8
Probably 10.x in fact. Main problem was the internal PCRE didn't build and link errors occurred. Cmake sucks.
Diffstat (limited to 'Library/Formula/falcon.rb')
-rw-r--r--Library/Formula/falcon.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/Library/Formula/falcon.rb b/Library/Formula/falcon.rb
index d6e316260..6962fcd23 100644
--- a/Library/Formula/falcon.rb
+++ b/Library/Formula/falcon.rb
@@ -10,6 +10,9 @@ class Falcon < Formula
depends_on 'cmake' => :build
depends_on 'pcre'
+ conflicts_with 'sdl',
+ :because => "Falcon optionally depends on SDL and then the build breaks. Fix it!"
+
def options
[
['--editline', "Use editline instead of readline"],
@@ -18,15 +21,13 @@ class Falcon < Formula
end
def install
- args = ["-DCMAKE_BUILD_TYPE=Release",
- "-DCMAKE_INSTALL_PREFIX=#{prefix}",
- "-DFALCON_BIN_DIR=#{bin}",
- "-DFALCON_LIB_DIR=#{lib}",
- "-DFALCON_MAN_DIR=#{man1}",
- "-DFALCON_WITH_MANPAGES=ON",
- "-DFALCON_WITH_INTERNAL_PCRE=ON",
- "-DFALCON_WITH_INTERNAL_ZLIB=ON",
- "-DFALCON_WITH_INTERNAL=ON"]
+ 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 ARGV.include? '--editline'
args << "-DFALCON_WITH_EDITLINE=ON"