2009-11-30 14:01:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Premake < Formula
|
2013-01-28 05:37:02 +00:00
|
|
|
homepage 'http://industriousone.com/premake'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/premake/Premake/4.3/premake-4.3-src.zip'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8f37a3599121580f18b578811162b9b49a2e122f'
|
2009-11-30 14:01:59 +00:00
|
|
|
|
|
|
|
def install
|
2011-06-09 19:52:21 +00:00
|
|
|
# Linking against stdc++-static causes a library not found error on 10.7
|
|
|
|
inreplace 'build/gmake.macosx/Premake4.make', '-lstdc++-static ', ''
|
2009-11-30 14:01:59 +00:00
|
|
|
system "make -C build/gmake.macosx"
|
|
|
|
|
|
|
|
# Premake has no install target, but its just a single file that is needed
|
|
|
|
bin.install "bin/release/premake4"
|
|
|
|
end
|
|
|
|
end
|