cf21bb3cae
Closes Homebrew/homebrew#21477. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
27 lines
726 B
Ruby
27 lines
726 B
Ruby
require 'formula'
|
|
|
|
class Analog < Formula
|
|
homepage 'http://analog.cx'
|
|
url 'http://analog.cx/analog-6.0.tar.gz'
|
|
sha1 '17ad601f84e73c940883fb9b9e805879aac37493'
|
|
|
|
depends_on 'gd'
|
|
depends_on 'jpeg'
|
|
depends_on :libpng
|
|
|
|
def install
|
|
system "make", "CC=#{ENV.cc}",
|
|
"CFLAGS=#{ENV.cflags}",
|
|
"DEFS='-DLANGDIR=\"/foo-share/analog/lang\"' -DHAVE_ZLIB",
|
|
"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
|
|
|
|
def test
|
|
system "\"#{bin}/analog\" > /dev/null"
|
|
end
|
|
end
|