homebrew-core/Formula/premake.rb
Daniel Holtmann-Rice 8a1278f970 premake: fix Lion build
Uses an inreplace to remove "-lstdc++-static" from the makefile used for
building on Mac OS X, allowing builds to succeed on Lion. Necessary because Lion
doesn't include the stdc++-static library.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-21 06:27:15 -07:00

16 lines
554 B
Ruby

require 'formula'
class Premake < Formula
url 'http://downloads.sourceforge.net/project/premake/Premake/4.3/premake-4.3-src.zip'
md5 '8cfafee76f9665c93b2e9ad15b015eb7'
homepage 'http://industriousone.com/premake'
def install
# Linking against stdc++-static causes a library not found error on 10.7
inreplace 'build/gmake.macosx/Premake4.make', '-lstdc++-static ', ''
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