diff options
| author | Camillo Lugaresi | 2011-02-18 03:11:34 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 13:30:47 -0800 |
| commit | e1bf506502e1f93e8941c6e874f2028cdd84ac98 (patch) | |
| tree | a464f21eabad496973cc64e47492eb10870c558e /Library/Formula | |
| parent | 8d1649bafaa4730e2249ee78f6d9a48faeaf4af1 (diff) | |
| download | homebrew-e1bf506502e1f93e8941c6e874f2028cdd84ac98.tar.bz2 | |
add support for installing fltk 1.3
The stable 1.1.x series of fltk is very old and is no longer being maintained.
The 1.3.x series is expected to replace it as the new stable series soon. This
commit adds the ability to install the current snapshot of 1.3.x by using
--HEAD; this is needed by Octave 3.4's new plotting mode.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fltk.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Formula/fltk.rb b/Library/Formula/fltk.rb index eb8f3c5bc..50038ff83 100644 --- a/Library/Formula/fltk.rb +++ b/Library/Formula/fltk.rb @@ -3,9 +3,19 @@ require 'formula' class Fltk < Formula url 'http://ftp2.easysw.com/pub/fltk/1.1.10/fltk-1.1.10-source.tar.gz' homepage 'http://www.fltk.org/' - md5 'e6378a76ca1ef073bcb092df1ef3ba55' + head 'http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-r8411.tar.bz2' + if ARGV.build_head? + md5 '0c44ccd5d9b86c7afb2f402d5e0b56db' + depends_on 'jpeg' + else + md5 'e6378a76ca1ef073bcb092df1ef3ba55' + end def install + if ARGV.build_head? + ENV.libpng + system "autoconf" + end system "./configure", "--prefix=#{prefix}", "--enable-threads" system "make install" end |
