homebrew-core/Formula/c10t.rb
Edward George 3fcdf29ba2 add c10t - A minecraft cartography tool.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-21 10:37:54 -07:00

23 lines
647 B
Ruby

require 'formula'
# Minecraft cartography tool
class C10t <Formula
url 'http://github.com/udoprog/c10t/tarball/1.1'
homepage 'http://github.com/udoprog/c10t'
md5 'e03316bd5554a32a65979ff8785b8a44'
depends_on 'cmake' => :build
depends_on 'libpng'
depends_on 'boost'
def install
inreplace 'src/global.h', "font.ttf", "#{prefix}/font.ttf"
inreplace 'CMakeLists.txt', 'boost_thread', 'boost_thread-mt'
inreplace 'test/CMakeLists.txt', 'boost_unit_test_framework', 'boost_unit_test_framework-mt'
system "cmake . #{std_cmake_parameters}"
system "make"
bin.install "c10t"
prefix.install "font.ttf"
end
end