aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-11 20:22:02 -0800
committerAdam Vandenberg2014-02-11 20:22:02 -0800
commit6d6ed680f616f9129e2c6a9fd8d70fc017f6c548 (patch)
treee4c5efd3c7bdba00903d34f633cef12d28564b8d /Library
parenta9077af885e0cc708b535203e7a39866473b2702 (diff)
downloadhomebrew-6d6ed680f616f9129e2c6a9fd8d70fc017f6c548.tar.bz2
swfmill: patch to use newer freetype
Closes #25625.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/swfmill.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/swfmill.rb b/Library/Formula/swfmill.rb
index 44e1e4bdc..92b63d30f 100644
--- a/Library/Formula/swfmill.rb
+++ b/Library/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 <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"