diff options
Diffstat (limited to 'homebrew/djbdns/.make.sh-auto')
-rw-r--r-- | homebrew/djbdns/.make.sh-auto | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/homebrew/djbdns/.make.sh-auto b/homebrew/djbdns/.make.sh-auto new file mode 100644 index 000000000..accd2dc1a --- /dev/null +++ b/homebrew/djbdns/.make.sh-auto @@ -0,0 +1,14 @@ +pkg:setup +inreplace "hier.c", 'c("/"', "c(auto_home" +inreplace "dnscache-conf.c", "/etc/dnsroots", "#{etc}/dnsroots" +rm %w[conf-home conf-ld conf-cc] +(buildpath/"conf-home").write prefix +(buildpath/"conf-ld").write "gcc" +if MacOS.sdk_path_if_needed +(buildpath/"conf-cc").write "gcc -O2 -include #{MacOS.sdk_path}/usr/include/errno.h" +else +(buildpath/"conf-cc").write "gcc -O2 -include /usr/include/errno.h" +end +bin.mkpath +(prefix/"etc").mkpath +make setup check |