40 lines
1.4 KiB
Ruby
40 lines
1.4 KiB
Ruby
class Waffle < Formula
|
|
desc "C library for selecting an OpenGL API and window system at runtime"
|
|
homepage "http://www.waffle-gl.org/"
|
|
url "https://gitlab.freedesktop.org/mesa/waffle/-/raw/website/files/release/waffle-1.7.0/waffle-1.7.0.tar.xz"
|
|
sha256 "69e42d15d08f63e7a54a8b8770295a6eb04dfd1c6f86c328b6039dbe7de28ef3"
|
|
license "BSD-2-Clause"
|
|
head "https://gitlab.freedesktop.org/mesa/waffle.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "2978050a3df20c384641d00498cc83255c945999ed249d9d7d2e33d24998e387"
|
|
sha256 cellar: :any, big_sur: "a382e396564e8eda224154272ab33584cdedc1978d096e0989aef1bf8aea4edc"
|
|
sha256 cellar: :any, catalina: "f7a2dfc36d15d76318ee9e22277675818b75311f442792c2c979121df7fdd1af"
|
|
sha256 cellar: :any, mojave: "2f865431b367967e1ec77232813930923f3435332972334933cb4a0173a061b6"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "docbook-xsl" => :build
|
|
depends_on "pkg-config" => :test
|
|
|
|
def install
|
|
args = std_cmake_args + %w[
|
|
-Dwaffle_build_examples=1
|
|
-Dwaffle_build_htmldocs=1
|
|
-Dwaffle_build_manpages=1
|
|
]
|
|
|
|
ENV["XML_CATALOG_FILES"] = etc/"xml/catalog"
|
|
mkdir "build" do
|
|
system "cmake", "..", *args
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
cp_r prefix/"share/doc/waffle1/examples", testpath
|
|
cd "examples"
|
|
system "make", "-f", "Makefile.example"
|
|
end
|
|
end
|