You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
916 B
26 lines
916 B
|
7 years ago
|
class MagnumBindings < Formula
|
||
|
|
desc "`Bindings for the Magnum C++11/C++14 graphics engine"
|
||
|
|
homepage "https://magnum.graphics"
|
||
|
|
# url "https://github.com/mosra/magnum-plugins/archive/v2019.01.tar.gz"
|
||
|
|
# wget https://github.com/mosra/magnum-plugins/archive/v2019.01.tar.gz -O - | sha256sum
|
||
|
|
# sha256 "d3adadc5b6d4f2e5061608d67f0c7fa07f0dd078bab4672dc5604ddbcd11ca80"
|
||
|
|
head "git://github.com/mosra/magnum-bindings.git"
|
||
|
|
|
||
|
|
depends_on "cmake"
|
||
|
|
depends_on "python"
|
||
|
|
depends_on "magnum"
|
||
|
|
depends_on "pybind11" => :build
|
||
|
|
|
||
|
|
def install
|
||
|
|
system "mkdir build"
|
||
|
|
cd "build" do
|
||
|
|
system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_PYTHON=ON", ".."
|
||
|
|
system "cmake", "--build", "."
|
||
|
|
system "cmake", "--build", ".", "--target", "install"
|
||
|
|
cd "src/python" do
|
||
|
|
system "python3", *Language::Python.setup_install_args(prefix)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|