diff options
| author | Jonathan Abourbih | 2010-10-16 14:11:47 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-16 09:03:23 -0700 |
| commit | 390f58560f31f5b1b6c5c4488279a4b14bcaecf1 (patch) | |
| tree | af1b5eed4587f60be59aa17626dae1a3f2625e22 /Library/Formula | |
| parent | 1e27366423fffcf57fece52aaf5fbc040ac37cbe (diff) | |
| download | homebrew-390f58560f31f5b1b6c5c4488279a4b14bcaecf1.tar.bz2 | |
Update swi-prolog
* Add more dependencies
* Add option for building the lite version
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/swi-prolog.rb | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Library/Formula/swi-prolog.rb b/Library/Formula/swi-prolog.rb index 45a8e55f5..5668c639d 100644 --- a/Library/Formula/swi-prolog.rb +++ b/Library/Formula/swi-prolog.rb @@ -5,14 +5,29 @@ class SwiProlog <Formula homepage 'http://www.swi-prolog.org/' md5 '9168a2c872d2130467c3e74b80ed3ee0' - depends_on "gmp" - depends_on "readline" + depends_on 'pkg-config' + depends_on 'readline' + depends_on 'gmp' + depends_on 'jpeg' + depends_on 'fontconfig' if MACOS_VERSION < 10.6 + depends_on 'ncursesw' + depends_on 'mcrypt' + depends_on 'gawk' + + def options + [['--lite', "Don't install any packages"]] + end def install - # doesn't pick up gmp otherwise - ENV.append "CFLAGS", ENV['CPPFLAGS'] + ENV['CIFLAGS'] = ENV['CPPFLAGS'] + if ARGV.include? '--lite' + world = '' + else + world = '--with-world' + end - system "./configure", "--prefix=#{prefix}" + system "./configure", "--prefix=#{prefix}", world, "--x-includes=/usr/X11/include", + "--x-libraries=/usr/X11/lib", "--mandir=#{man}" system "make" system "make install" end |
