homebrew-core/Formula/swfmill.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

24 lines
762 B
Ruby

class Swfmill < Formula
desc "xml2swf and swf2xml processor"
homepage "http://swfmill.org"
url "http://swfmill.org/releases/swfmill-0.3.3.tar.gz"
sha256 "f9e8529eed84962abf88c6457b59cbc6d230db068d1fdd977e7b234228beac96"
revision 1
depends_on "pkg-config" => :build
depends_on "freetype"
depends_on "libpng"
def install
# Use inreplace instead of a patch due to newlines
# Reported usptream:
# https://github.com/djcsdy/swfmill/issues/32
inreplace "src/swft/swft_import_ttf.cpp",
"#include <freetype/tttables.h>",
"#include FT_TRUETYPE_TABLES_H"
system "./configure", "--prefix=#{prefix}"
# Has trouble linking against zlib unless we add it here - @adamv
system "make", "LIBS=-lz", "install"
end
end