-
Notifications
You must be signed in to change notification settings - Fork 116
/
mapcrafter.rb
41 lines (33 loc) · 1.06 KB
/
mapcrafter.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class Mapcrafter < Formula
homepage "http://mapcrafter.org"
url "https://github.com/mapcrafter/mapcrafter/archive/v.1.5.4.tar.gz"
sha1 "ffe7d17a57099506b572bb6866ea76c8ad5f0564"
bottle do
root_url "https://downloads.sf.net/project/machomebrew/Bottles/games"
cellar :any
sha1 "ac8fd25b80cb3afda8e6efbdbea1a6d09a010771" => :yosemite
sha1 "23a458a7763f44d020ff5a5ef97152455573c607" => :mavericks
sha1 "a50194903b88e00f4550996c83f1c083dbaf2689" => :mountain_lion
end
needs :cxx11
depends_on "cmake" => :build
depends_on "jpeg-turbo"
depends_on "libpng"
if MacOS.version < :mavericks
depends_on "boost" => "c 11"
else
depends_on "boost"
end
def install
ENV.cxx11
args = std_cmake_args
args << "-DJPEG_INCLUDE_DIR=#{Formula["jpeg-turbo"].opt_include}"
args << "-DJPEG_LIBRARY=#{Formula["jpeg-turbo"].opt_lib}/libjpeg.dylib"
system "cmake", ".", *args
system "make", "install"
end
test do
output = shell_output("#{bin}/mapcrafter --version")
assert output.include?("Mapcrafter")
end
end