1a42f893ab
Anything that calls `xcodebuild` needs a full install of XCode.app. Two formulae ommitted from this patch: - `fuse4x_kext`: Everything that depends on the kernel extension can be compiled by the CLT. Therefore, this formula is bottled and XCode is only needed to produce the bottles. - `graphviz`: XCode is only used to create GraphViz.app which is not used by any of the things which depend on `graphviz`. Creating the app should be made into an option.
37 lines
865 B
Ruby
37 lines
865 B
Ruby
require 'formula'
|
|
|
|
class Darwinbuild < Formula
|
|
homepage 'http://darwinbuild.macosforge.org/'
|
|
head 'http://svn.macosforge.org/repository/darwinbuild/trunk/'
|
|
|
|
def patches
|
|
DATA
|
|
end
|
|
|
|
depends_on :xcode # For working xcodebuild.
|
|
|
|
def install
|
|
ENV.delete('CC')
|
|
ENV.delete('LD')
|
|
system "xcodebuild", "-configuration", "Release", "install", "DSTROOT=/", "PREFIX=#{prefix}", "SYMROOT=build"
|
|
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
|
|
|
|
|