2010-02-04 18:10:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fltk < Formula
|
2011-08-29 19:06:21 +00:00
|
|
|
url 'http://ftp2.easysw.com/pub/fltk/1.3.0/fltk-1.3.0-source.tar.gz'
|
2010-02-04 18:10:25 +00:00
|
|
|
homepage 'http://www.fltk.org/'
|
2011-08-29 19:06:21 +00:00
|
|
|
head 'http://ftp.easysw.com/pub/fltk/snapshots/fltk-1.3.x-r9013.tar.bz2'
|
2011-02-18 02:11:34 +00:00
|
|
|
if ARGV.build_head?
|
2011-08-29 19:06:21 +00:00
|
|
|
md5 '9c5eb9eb8642be56cb68e7c5b1c98611'
|
2011-02-18 02:11:34 +00:00
|
|
|
else
|
2011-08-29 19:06:21 +00:00
|
|
|
md5 '44d5d7ba06afdd36ea17da6b4b703ca3'
|
2011-02-18 02:11:34 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2011-08-29 19:06:21 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
|
2010-02-04 18:10:25 +00:00
|
|
|
def install
|
2011-08-29 19:06:21 +00:00
|
|
|
ENV.libpng
|
|
|
|
system "autoconf" if ARGV.build_head?
|
|
|
|
|
2010-02-04 18:10:25 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--enable-threads"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|