2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-10 18:54:17 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Darwinbuild < Formula
|
2009-10-10 18:54:17 +00:00
|
|
|
homepage 'http://darwinbuild.macosforge.org/'
|
2012-05-10 14:10:12 +00:00
|
|
|
head 'http://svn.macosforge.org/repository/darwinbuild/trunk/'
|
2009-10-10 18:54:17 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2012-08-24 20:40:24 +00:00
|
|
|
depends_on :xcode # For working xcodebuild.
|
|
|
|
|
2009-10-10 18:54:17 +00:00
|
|
|
def install
|
2010-04-18 19:31:15 +00:00
|
|
|
ENV.delete('CC')
|
|
|
|
ENV.delete('LD')
|
2012-04-29 23:51:03 +00:00
|
|
|
system "xcodebuild", "-configuration", "Release", "install", "DSTROOT=/", "PREFIX=#{prefix}", "SYMROOT=build"
|
2009-10-10 18:54:17 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|