summaryrefslogtreecommitdiff
path: root/homebrew/sile/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/sile/.make.sh-auto')
-rw-r--r--homebrew/sile/.make.sh-auto16
1 files changed, 16 insertions, 0 deletions
diff --git a/homebrew/sile/.make.sh-auto b/homebrew/sile/.make.sh-auto
new file mode 100644
index 000000000..4e20f3441
--- /dev/null
+++ b/homebrew/sile/.make.sh-auto
@@ -0,0 +1,16 @@
+pkg:setup
+luapath = libexec/"vendor"
+ENV["LUA_PATH"] = "#{luapath}/share/lua/5.3/?.lua;;#{luapath}/share/lua/5.3/lxp/?.lua"
+ENV["LUA_CPATH"] = "#{luapath}/lib/lua/5.3/?.so"
+resources.each do |r|
+r.stage do
+if r.name == "lua-zlib"
+mv "lua-zlib-1.1-0.rockspec", "lua-zlib-1.2-0.rockspec"
+luarocks make #{r.name}-#{r.version}-0.rockspec --tree=#{luapath} ZLIB_DIR=/usr/local/opt/zlib
+elsif r.name == "luaexpat"
+luarocks build r.name --tree=#{luapath} EXPAT_DIR=/usr/local/opt/expat
+elsif r.name == "luasec"
+luarocks build r.name --tree=#{luapath} OPENSSL_DIR=/usr/local/opt/openssl
+else
+luarocks build r.name --tree=#{luapath}
+end