From 584f3864d5e9789c677523a75ae0c9922a8a44c9 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 6 Feb 2017 10:26:58 +0000 Subject: [PATCH] openclonk: import from homebrew/games. --- Formula/openclonk.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Formula/openclonk.rb diff --git a/Formula/openclonk.rb b/Formula/openclonk.rb new file mode 100644 index 0000000000..b19ca7a4ce --- /dev/null +++ b/Formula/openclonk.rb @@ -0,0 +1,40 @@ +class Openclonk < Formula + desc "Multiplayer action game" + homepage "http://www.openclonk.org" + url "http://www.openclonk.org/builds/release/7.0/openclonk-7.0-src.tar.bz2" + sha256 "bc1a231d72774a7aa8819e54e1f79be27a21b579fb057609398f2aa5700b0732" + head "https://github.com/openclonk/openclonk", :using => :git + + bottle do + cellar :any + sha256 "b3f749b8945c227bfd7de499d873ce3185e5aa6f208b5e6dea77050807344418" => :el_capitan + sha256 "875ecfd0eb6ea4fa93943b5dea6dd166e8cb3f1672b82f2346906b0c6a082fef" => :yosemite + end + + # Requires some C++14 features missing in Mavericks + depends_on :macos => :yosemite + depends_on "cmake" => :build + depends_on "jpeg" + depends_on "libpng" + depends_on "freetype" + depends_on "glew" + depends_on "libogg" + depends_on "libvorbis" + depends_on "boost" + depends_on "freealut" + + needs :cxx11 + + def install + ENV.cxx11 + system "cmake", ".", *std_cmake_args + system "make" + system "make", "install" + bin.write_exec_script "#{prefix}/openclonk.app/Contents/MacOS/openclonk" + bin.install Dir[prefix/"c4*"] + end + + test do + system bin/"c4group" + end +end