From c5d63b6bd932e6708d925367ca81cd2c48e8a992 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 11 Feb 2014 20:22:02 -0800 Subject: [PATCH] swfmill: patch to use newer freetype Closes Homebrew/homebrew#25625. --- Formula/swfmill.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/swfmill.rb b/Formula/swfmill.rb index 44e1e4bdca..92b63d30fb 100644 --- a/Formula/swfmill.rb +++ b/Formula/swfmill.rb @@ -10,6 +10,13 @@ class Swfmill < Formula depends_on :libpng def install + # Use inreplace isntead of a patch due to newlines + # Reported usptream: + # https://github.com/djcsdy/swfmill/issues/32 + inreplace "src/swft/swft_import_ttf.cpp", + "#include ", + "#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"