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