Browse files

use freetype from homebrew/dupes

  • Loading branch information...
1 parent f41334d commit 57ba4ce8a37c02bf61fa8aa773c072ebbf7ad0cd @pigoz committed May 9, 2012
Showing with 1 addition and 27 deletions.
  1. +0 −26 Formula/freetype.rb
  2. +1 −1 Formula/mplayer2.rb
View
26 Formula/freetype.rb
@@ -1,26 +0,0 @@
-require 'formula'
-
-class Freetype < Formula
- url 'http://download.savannah.gnu.org/releases/freetype/freetype-2.3.12.tar.gz'
- homepage 'http://freetype.sourceforge.net'
- md5 '6fc690d9b34154b51a919ff466cea90c'
-
- def options
- [["--native",
- "Enable native TrueType hinting, which is potentially covered by " \
- "various Apple patents.\nSee: http://www.freetype.org/patents.html"]
- ]
- end
-
- def install
- if ARGV.include? "--native"
- inreplace "include/freetype/config/ftoption.h",
- "/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */",
- "#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER"
- end
-
- system "./configure", "--prefix=#{prefix}", "--disable-debug",
- "--disable-dependency-tracking"
- system "make install"
- end
-end
View
2 Formula/mplayer2.rb
@@ -7,7 +7,7 @@ class Mplayer2 <Formula
depends_on 'pkg-config' => :build
depends_on 'libbs2b' => :build
depends_on 'libass' => :build
- depends_on 'pigoz/mplayer2/freetype' => :build
+ depends_on 'homebrew/dupes/freetype' => :build
depends_on 'pigoz/mplayer2/libav' => :build
def install

0 comments on commit 57ba4ce

Please sign in to comment.