homebrew-core/Formula/ftgl.rb

57 lines
2.6 KiB
Ruby

class Ftgl < Formula
desc "Freetype / OpenGL bridge"
homepage "https://sourceforge.net/projects/ftgl/"
url "https://downloads.sourceforge.net/project/ftgl/FTGL%20Source/2.1.3~rc5/ftgl-2.1.3-rc5.tar.gz"
sha256 "5458d62122454869572d39f8aa85745fc05d5518001bcefa63bd6cbb8d26565b"
license "MIT"
livecheck do
url :stable
regex(%r{url=.*?/ftgl[._-]v?(\d+(?:\.\d+)+(?:-rc\d*)?)\.t}i)
end
bottle do
sha256 cellar: :any, arm64_ventura: "9c7cd41984f3696dd61d7ecd78c32f68f35121a1f7f8f0b2d0a9ccb2825016c2"
sha256 cellar: :any, arm64_monterey: "ed10911135d6af44315967a7fe2d81e5bf1bac34347274a49545ab777bb12c86"
sha256 cellar: :any, arm64_big_sur: "85368ec5c37bb2cffd87cd30775a78956708c71749f8da56239fd93e57cf576d"
sha256 cellar: :any, ventura: "184d35152ccbbee8771edbed5f40d34a8864704d4d90812f2c8f247ce79e5608"
sha256 cellar: :any, monterey: "fd4e1c8a08042ce2a0f96f79e899815009fd56cafbf550f88a9eb9685ff84b7d"
sha256 cellar: :any, big_sur: "1b39e663c0bedd0b915dd60c99c5f1acdfb3ae9717cd832134de15fd48736673"
sha256 cellar: :any, catalina: "0f982773db625daa78a1c18c9e67315ede8c52850586d47d9b7a41ffcac91730"
sha256 cellar: :any, mojave: "17370dd65d19b49dd8ca9d49d0da5010e5c5d1346122c46e0eec0c98b010fb13"
sha256 cellar: :any, high_sierra: "f6da52f5e9f06f984aad457058876e88b5b7053288f40c87a17d7d5749936cd6"
sha256 cellar: :any, sierra: "946a9530f7eae5c8f2bc71dfc91b3a8138ae2228cd441fd7cf39f047b957ce47"
sha256 cellar: :any, el_capitan: "6462eb0b97ab120639f1a191f6e3a39419bbb813abd71f5c741303dbf0aed7fb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a53d8292298b4c6974e04fd8ab744860aec65b58149a704d9e2dad61aba0c4f6"
end
depends_on "freetype"
on_linux do
depends_on "mesa-glu"
end
def install
# If doxygen is installed, the docs may still fail to build.
# So we disable building docs.
inreplace "configure", "set dummy doxygen;", "set dummy no_doxygen;"
# Skip building the example program by failing to find GLUT (MacPorts)
# by setting --with-glut-inc and --with-glut-lib
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
--disable-freetypetest
--with-glut-inc=/dev/null
--with-glut-lib=/dev/null
]
args << "--with-gl-inc=#{Formula["mesa-glu"].opt_include}" if OS.linux?
system "./configure", *args
system "make", "install"
end
end