homebrew-core/Formula/darwinbuild.rb
Dan Walters 4a71219024 Get darwinbuild working.
- see http://darwinbuild.macosforge.org/trac/ticket/109, must use xcodebuild instead of make, at least on snow leopard
- xcode seems to use cc even for c++ files, which doesn't work, so just removing CC and LD from the environment

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-29 08:49:30 -07:00

35 lines
801 B
Ruby

require 'formula'
class Darwinbuild <Formula
head 'http://svn.macosforge.org/repository/darwinbuild/trunk/', :using => :svn
homepage 'http://darwinbuild.macosforge.org/'
def patches
DATA
end
def install
ENV.delete('CC')
ENV.delete('LD')
system "xcodebuild -configuration Release install DSTROOT=/ PREFIX=#{prefix}"
end
end
__END__
diff --git a/common.mk b/common.mk
index 424109b..56fad54 100644
--- a/common.mk
+++ b/common.mk
@@ -15,9 +15,9 @@ BINDIR=$(DESTDIR)$(PREFIX)/bin
DATDIR=$(DESTDIR)$(PREFIX)/share
INCDIR=$(DESTDIR)$(PREFIX)/include
INSTALL=install
-INSTALL_EXE_FLAGS=-m 0755 -o root -g wheel
+INSTALL_EXE_FLAGS=-m 0755
INSTALL_DIR_FLAGS=$(INSTALL_EXE_FLAGS)
-INSTALL_DOC_FLAGS=-m 0644 -o root -g wheel
+INSTALL_DOC_FLAGS=-m 0644
SED=/usr/bin/sed