forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhatari.rb
24 lines (20 loc) · 819 Bytes
/
hatari.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
require "formula"
class Hatari < Formula
homepage "http://hatari.tuxfamily.org"
head "http://hg.tuxfamily.org/mercurialroot/hatari/hatari", :using => :hg, :branch => "default"
url "http://download.tuxfamily.org/hatari/1.8.0/hatari-1.8.0.tar.bz2"
sha1 "08d950c3156c764b87ac0ae03c4f350febff9567"
depends_on :x11
depends_on "cmake" => :build
depends_on "libpng"
depends_on "sdl"
def install
sdl = Formula["sdl"].opt_prefix
system "cmake", "-DENABLE_OSX_BUNDLE:BOOL=0",
"-DSDLMAIN_LIBRARY:FILEPATH=#{sdl}/lib/libSDLmain.a",
"-DSDL_INCLUDE_DIR:PATH=#{sdl}/include/SDL",
"-DSDL_LIBRARY:STRING=#{sdl}/lib/libSDLmain.a;#{sdl}/lib/libSDL.dylib;-framework Cocoa",
*std_cmake_args
system "make", "install"
end
end