summaryrefslogtreecommitdiff
path: root/homebrew/supertux/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/supertux/.make.sh-auto')
-rw-r--r--homebrew/supertux/.make.sh-auto12
1 files changed, 12 insertions, 0 deletions
diff --git a/homebrew/supertux/.make.sh-auto b/homebrew/supertux/.make.sh-auto
new file mode 100644
index 000000000..0493307fa
--- /dev/null
+++ b/homebrew/supertux/.make.sh-auto
@@ -0,0 +1,12 @@
+pkg:setup
+ENV.cxx11
+args = std_cmake_args
+args << "-DINSTALL_SUBDIR_BIN=bin"
+args << "-DINSTALL_SUBDIR_SHARE=share/supertux"
+args << "-DPNG_PNG_INCLUDE_DIR=#{Formula["libpng"].opt_include}"
+cmake . *args
+make DESTDIR=${PKG_DEST} install
+(share/"appdata").rmtree
+(share/"applications").rmtree
+(share/"pixmaps").rmtree
+(prefix/"MacOS").rmtree