2010-10-20 23:18:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
# Minecraft cartography tool
|
|
|
|
|
|
|
|
class C10t <Formula
|
2010-11-10 18:16:28 +00:00
|
|
|
url 'https://github.com/udoprog/c10t/tarball/1.4'
|
|
|
|
homepage 'https://github.com/udoprog/c10t'
|
|
|
|
md5 '27ff806400602726e45679d444c4489d'
|
2010-10-20 23:18:57 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'libpng'
|
|
|
|
depends_on 'boost'
|
|
|
|
|
|
|
|
def install
|
2010-11-19 05:45:02 +00:00
|
|
|
inreplace 'src/global.hpp', "font.ttf", "#{prefix}/font.ttf"
|
2010-10-20 23:18:57 +00:00
|
|
|
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
|