OGLFT

テストを作るのが面倒なのでPull Requestに出すつもりがないです。暇な方はTestを追加して私の代わりにPR出して下さい。

The following script installs OGLFT on OSX with Homebrew.
Required "gle"

class Oglft < Formula
  desc "OpenGL-FreeType Library"
  homepage "https://oglft.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/oglft/oglft/Version%200.9/oglft-0.9.tar.gz"
  sha256 "80fde279efaeab4d87b650579a094a725267478d933339dc7cd398367b4368e5"

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  depends_on "libtool" => :build
  depends_on "freetype"
  depends_on "gle"

  def install
    inreplace ["liboglft/OGLFT.h", "configure.ac", "configure", "config/config.h.in"],
               "GL/gl.h", "OpenGL/gl.h"
    inreplace ["liboglft/OGLFT.h", "configure.ac", "configure", "config/config.h.in"],
               "GL/glu.h", "OpenGL/glu.h"
    ENV.append "CPPFLAGS", "-I#{Formula["freetype"].opt_include}/freetype2 "
    system "autoreconf", "-vi"
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}"
    system "make", "install"
  end
end