summaryrefslogtreecommitdiff
path: root/homebrew/djbdns/.make.sh-auto
blob: accd2dc1ac4743d6bc5cd0b39cf6b9d485dd94f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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