homebrew-core/Formula/c10t.rb
Ferdinand Niedermann 662bc48d92 c10t: fixed wrong md5 sum
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-11 09:48:02 -08:00

23 lines
647 B
Ruby

require 'formula'
# Minecraft cartography tool
class C10t <Formula
url 'http://github.com/udoprog/c10t/tarball/1.3'
homepage 'http://github.com/udoprog/c10t'
md5 '50ba408884b14091a6a672f680f29873'
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