summaryrefslogtreecommitdiff
path: root/homebrew/nethack/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nethack/.make.sh-auto')
-rw-r--r--homebrew/nethack/.make.sh-auto10
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/nethack/.make.sh-auto b/homebrew/nethack/.make.sh-auto
new file mode 100644
index 000000000..c3453fd36
--- /dev/null
+++ b/homebrew/nethack/.make.sh-auto
@@ -0,0 +1,10 @@
+pkg:setup
+ENV.deparallelize
+cd "sys/unix"
+if MacOS.version >= :yosemite
+hintfile = "macosx10.10"
+else
+hintfile = "macosx10.7"
+end
+inreplace "hints/#{hintfile}", /^HACKDIR=.*/, "HACKDIR=#{libexec}"
+sh setup.sh hints/#{hintfile}