diff options
Diffstat (limited to 'homebrew/widelands/.make.sh-auto')
-rw-r--r-- | homebrew/widelands/.make.sh-auto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/homebrew/widelands/.make.sh-auto b/homebrew/widelands/.make.sh-auto new file mode 100644 index 000000000..1d6808305 --- /dev/null +++ b/homebrew/widelands/.make.sh-auto @@ -0,0 +1,10 @@ +pkg:setup +ENV.append "CXXFLAGS", "-DU_USING_ICU_NAMESPACE=1" +ENV.cxx11 +mkdir "build" && cd build +cmake .. -DPNG_PNG_INCLUDE_DIR:PATH=#{Formula[libpng"].opt_include}" -DWL_INSTALL_DATADIR=${PKG_TAPF}/share/data -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} +make DESTDIR=${PKG_DEST} install +(bin/"widelands").write <<~EOS +#!/bin/sh +exec #{prefix}/widelands "$@" +EOS |