Created
June 24, 2015 12:49
-
-
Save saitoha/08175fc1e82906966256 to your computer and use it in GitHub Desktop.
Homebrew formula for jart/hiptext(https://github.com/jart/hiptext)
This file contains hidden or 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
require "formula" | |
class Hiptext < Formula | |
homepage "https://github.com/jart/hiptext" | |
head "https://github.com/jart/hiptext.git", :branch => "master" | |
depends_on "pkg-config" => :build | |
depends_on "ragel" => :build | |
depends_on :libpng | |
depends_on "jpeg" | |
depends_on "ffmpeg" | |
depends_on "freetype" | |
depends_on "glog" | |
patch :DATA | |
#ENV["PKG_CONFIG_PATH"] = "#{HOMEBREW_PREFIX}/lib/pkgconfig:#{MacOS::X11.lib}/pkgconfig" | |
#pkg-config --libs libavcodec libavformat libavutil libswscale | |
def install | |
system "make" | |
system "install -m 0755 hiptext #{HOMEBREW_PREFIX}/bin" | |
end | |
end | |
__END__ | |
--- a/font.cc | |
+++ b/font.cc | |
@@ -11,7 +11,7 @@ | |
#include "graphic.h" | |
#include "pixel.h" | |
-DEFINE_string(font, "DejaVuSansMono.ttf", | |
+DEFINE_string(font, "/System/Library/Fonts/Monaco.dfont", | |
"The path to the font .ttf file to use."); | |
DEFINE_int32(font_index, 0, "Index of face to use inside font .ttf file."); | |
DEFINE_int32(font_size, 11, "The size of the font in points."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment