Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Created September 23, 2014 07:54
Show Gist options
  • Save tdsmith/bd45e2158a09ca61151c to your computer and use it in GitHub Desktop.
Save tdsmith/bd45e2158a09ca61151c to your computer and use it in GitHub Desktop.
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",
"-DSDL_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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment