Created
February 22, 2016 09:22
-
-
Save PseudoSky/e60870af8d137837342f to your computer and use it in GitHub Desktop.
Untested Homebrew freetype Formula, URL & Version are at least correct.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Freetype < Formula | |
desc "Software library to render fonts" | |
homepage "http://www.freetype.org" | |
url "https://sourceforge.net/projects/freetype/files/freetype2/2.4.10/freetype-2.4.10.tar.bz2" | |
mirror "https://sourceforge.net/projects/freetype/files/freetype2/2.4.10/freetype-2.4.10.tar.gz" | |
sha256 "0c8e242c33c45928de560d7d595db06feb41d1b22167e37260ceabe72f9e992f" | |
# Note: when bumping freetype's version, you must also bump revisions of formula with | |
# "full path" references to freetype in their pkgconfig. | |
# See https://github.com/Homebrew/homebrew/pull/44587 | |
bottle do | |
cellar :any | |
sha256 "0c8e242c33c45928de560d7d595db06feb41d1b22167e37260ceabe72f9e992f" => :el_capitan | |
sha256 "0c8e242c33c45928de560d7d595db06feb41d1b22167e37260ceabe72f9e992f" => :yosemite | |
sha256 "0c8e242c33c45928de560d7d595db06feb41d1b22167e37260ceabe72f9e992f" => :mavericks | |
end | |
keg_only :provided_pre_mountain_lion | |
option :universal | |
option "without-subpixel", "Disable sub-pixel rendering (a.k.a. LCD rendering, or ClearType)" | |
depends_on "libpng" | |
def install | |
if build.with? "subpixel" | |
inreplace "include/freetype/config/ftoption.h", | |
"/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */", | |
"#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING" | |
end | |
ENV.universal_binary if build.universal? | |
system "./configure", "--prefix=#{prefix}", "--without-harfbuzz" | |
system "make" | |
system "make", "install" | |
end | |
test do | |
system "#{bin}/freetype-config", "--cflags", "--libs", "--ftversion", | |
"--exec-prefix", "--prefix" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment