summaryrefslogtreecommitdiff
path: root/homebrew/luabind/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/luabind/.make.sh-auto')
-rw-r--r--homebrew/luabind/.make.sh-auto11
1 files changed, 11 insertions, 0 deletions
diff --git a/homebrew/luabind/.make.sh-auto b/homebrew/luabind/.make.sh-auto
new file mode 100644
index 000000000..c9757389b
--- /dev/null
+++ b/homebrew/luabind/.make.sh-auto
@@ -0,0 +1,11 @@
+pkg:setup
+ENV["LUA_PATH"] = Formula["lua@5.1"].opt_prefix
+args = %w[release install]
+if ENV.compiler == :clang
+args << "--toolset=clang"
+elsif ENV.compiler == :gcc
+args << "--toolset=darwin"
+end
+args << "--prefix=#{prefix}"
+bjam *args
+(lib/"pkgconfig/luabind.pc").write pc_file