homebrew-core/Formula/anttweakbar.rb
2019-10-17 16:40:26 +02:00

41 lines
1.9 KiB
Ruby

class Anttweakbar < Formula
desc "C/C++ library for adding GUIs to OpenGL apps"
homepage "https://anttweakbar.sourceforge.io/"
url "https://downloads.sourceforge.net/project/anttweakbar/AntTweakBar_116.zip"
version "1.16"
sha256 "fbceb719c13ceb13b9fd973840c2c950527b6e026f9a7a80968c14f76fcf6e7c"
bottle do
cellar :any
rebuild 1
sha256 "38b3f17cf22401dd83d9f2ea375b14b31fbd011e0e2b6cbb8b5be894ac49db0b" => :catalina
sha256 "2e68286a46381829f51a5bb91eb03bcdc876b79445c86672395517b4f3322652" => :mojave
sha256 "393b87de789337afebed9196404af46fa660fea3b476d874d77b48bb35c8079b" => :high_sierra
sha256 "af510970b310b01ee52528e816cdd53e2d4a4e2cfc76e426b1710f758bc99d20" => :sierra
sha256 "417278abe012967efcf22b0276527187f6472dd5fd4d271b1ea32604816d46c9" => :el_capitan
sha256 "a2e29104a5ef51621faaebd72ccc39bd5fe7bd6e977af74a358c5cc83c65c2c2" => :yosemite
sha256 "d1298b92cf6a7498c3b357adf6e696d0b24374e758853783fa228a8af5eecddc" => :mavericks
end
# See:
# https://sourceforge.net/p/anttweakbar/code/ci/5a076d13f143175a6bda3c668e29a33406479339/tree/src/LoadOGLCore.h?diff=5528b167ed12395a60949d7c643262b6668f15d5&diformat=regular
# https://sourceforge.net/p/anttweakbar/tickets/14/
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/62e79481/anttweakbar/anttweakbar.diff"
sha256 "3be2cb71cc00a9948c8b474da7e15ec85e3d094ed51ad2fab5c8991a9ad66fc2"
end
def install
# Work around Xcode 9 error "no member named 'signbit' in the global
# namespace" and Xcode 8 issue on El Capitan "error: missing ',' between
# enumerators"
if DevelopmentTools.clang_build_version >= 900 ||
(MacOS.version == :el_capitan && MacOS::Xcode.version >= "8.0")
ENV.delete("SDKROOT")
end
system "make", "-C", "src", "-f", "Makefile.osx"
lib.install "lib/libAntTweakBar.dylib", "lib/libAntTweakBar.a"
include.install "include/AntTweakBar.h"
end
end