summaryrefslogtreecommitdiff
path: root/homebrew/lsof/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/lsof/.make.sh-auto')
-rw-r--r--homebrew/lsof/.make.sh-auto12
1 files changed, 12 insertions, 0 deletions
diff --git a/homebrew/lsof/.make.sh-auto b/homebrew/lsof/.make.sh-auto
new file mode 100644
index 000000000..74a907e7e
--- /dev/null
+++ b/homebrew/lsof/.make.sh-auto
@@ -0,0 +1,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