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