summaryrefslogtreecommitdiff
path: root/homebrew/sleepwatcher/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/sleepwatcher/.make.sh-auto')
-rw-r--r--homebrew/sleepwatcher/.make.sh-auto10
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/sleepwatcher/.make.sh-auto b/homebrew/sleepwatcher/.make.sh-auto
new file mode 100644
index 000000000..05f680879
--- /dev/null
+++ b/homebrew/sleepwatcher/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+inreplace "sources/Makefile" do |s|
+s.gsub! /^(CFLAGS)_PPC.*$/, "\\1 = #{ENV.cflags} -prebind"
+s.gsub! /^(CFLAGS_X86)/, "#\\1"
+s.change_make_var! "BINDIR", "$(PREFIX)/sbin"
+s.change_make_var! "MANDIR", "$(PREFIX)/share/man"
+s.gsub! /^(.*?)CFLAGS_PPC(.*?)[.]ppc/, "\\1CFLAGS\\2"
+s.gsub! /^(.*?CFLAGS_X86.*?[.]x86)/, "#\\1"
+s.gsub! /^(\t(lipo|rm).*?[.](ppc|x86))/, "#\\1"
+s.gsub! "-o root -g wheel", ""