summaryrefslogtreecommitdiff
path: root/homebrew/lsof/.make.sh-auto
blob: 74a907e7e312537d719b3d05828d21218ca6c045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pkg:setup
tar xf lsof_#{version}_src.tar
cd "lsof_#{version}_src" 
inreplace "dialects/darwin/libproc/dfile.c", "#extern\tstruct pff_tab\tPgf_tab[];", "extern\tstruct pff_tab\tPgf_tab[];"
ENV["LSOF_INCLUDE"] = "#{MacOS.sdk_path}/usr/include"
inreplace %w[dialects/darwin/kmem/dlsof.h dialects/darwin/kmem/machine.h dialects/darwin/libproc/machine.h ], "/usr/include", "#{MacOS.sdk_path}/usr/include"
mv "00README", "README"
./Configure -n darwin
make
bin.install "lsof"
man8.install "lsof.8"
prefix.install_metafiles