2013-07-27 02:02:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Analog < Formula
|
|
|
|
homepage 'http://analog.cx'
|
|
|
|
url 'http://analog.cx/analog-6.0.tar.gz'
|
|
|
|
sha1 '17ad601f84e73c940883fb9b9e805879aac37493'
|
2014-03-23 02:51:41 +00:00
|
|
|
revision 1
|
2013-07-27 02:02:32 +00:00
|
|
|
|
2014-07-08 18:08:29 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "f8f9b2a12923d2702c6f9403d51ed2730bd6fef8" => :mavericks
|
|
|
|
sha1 "6bb59edcf53fa011463cbdc531df9c9f1b9698f1" => :mountain_lion
|
|
|
|
sha1 "968ff8fcb3851697ad7d6f680accc7860cefee55" => :lion
|
|
|
|
end
|
|
|
|
|
2013-07-27 02:02:32 +00:00
|
|
|
depends_on 'gd'
|
|
|
|
depends_on 'jpeg'
|
2014-03-23 02:51:41 +00:00
|
|
|
depends_on 'libpng'
|
2013-07-27 02:02:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
2014-07-08 14:43:10 +00:00
|
|
|
"DEFS='-DLANGDIR=\"#{share/'analog/lang/'}\"' -DHAVE_ZLIB",
|
2013-07-27 02:02:32 +00:00
|
|
|
"LIBS=-lz",
|
|
|
|
"OS=OSX"
|
|
|
|
bin.install "analog"
|
|
|
|
(share/'analog').install "examples", "how-to", "images", "lang"
|
|
|
|
(share/'analog').install "analog.cfg" => "analog.cfg-dist"
|
|
|
|
man1.install "analog.man" => "analog.1"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-07-27 02:02:32 +00:00
|
|
|
system "\"#{bin}/analog\" > /dev/null"
|
|
|
|
end
|
|
|
|
end
|