2 changed files with 52 additions and 0 deletions
@ -0,0 +1,25 @@
|
||||
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 |
||||
Loading…
Reference in new issue