662bc48d92
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
23 lines
647 B
Ruby
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
|