summaryrefslogtreecommitdiff
path: root/homebrew/pigz/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/pigz/.make.sh-auto')
-rw-r--r--homebrew/pigz/.make.sh-auto8
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/pigz/.make.sh-auto b/homebrew/pigz/.make.sh-auto
new file mode 100644
index 000000000..2de04bc08
--- /dev/null
+++ b/homebrew/pigz/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+if MacOS.version == :el_capitan && MacOS::Xcode.version >= "8.0"
+inreplace "pigz.c", "ZLIB_VERNUM >= 0x1260", "ZLIB_VERNUM >= 0x9999"
+end
+make CC=${PKG_TARG}-clang CFLAGS=${CFLAGS}
+bin.install "pigz", "unpigz"
+man1.install "pigz.1"
+man1.install_symlink "pigz.1" => "unpigz.1"