makensis: build all utils
Closes #13131. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
0097da627b
commit
8d9797d76e
1 changed files with 20 additions and 11 deletions
|
@ -1,16 +1,9 @@
|
|||
class Makensis < Formula
|
||||
desc "System to create Windows installers"
|
||||
homepage "https://nsis.sourceforge.io/"
|
||||
|
||||
stable do
|
||||
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.01/nsis-3.01-src.tar.bz2"
|
||||
sha256 "604c011593be484e65b2141c50a018f1b28ab28c994268e4ecd377773f3ffba1"
|
||||
|
||||
resource "nsis" do
|
||||
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.01/nsis-3.01.zip"
|
||||
sha256 "daa17556c8690a34fb13af25c87ced89c79a36a935bf6126253a9d9a5226367c"
|
||||
end
|
||||
end
|
||||
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.01/nsis-3.01-src.tar.bz2"
|
||||
sha256 "604c011593be484e65b2141c50a018f1b28ab28c994268e4ecd377773f3ffba1"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -19,8 +12,19 @@ class Makensis < Formula
|
|||
sha256 "867cf5c8c0699cc8d3ce570571ef883cd6a2ebf0ac657e5091ed60b4b03ff88b" => :yosemite
|
||||
end
|
||||
|
||||
depends_on "mingw-w64" => :build
|
||||
depends_on "scons" => :build
|
||||
|
||||
resource "nsis" do
|
||||
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.01/nsis-3.01.zip"
|
||||
sha256 "daa17556c8690a34fb13af25c87ced89c79a36a935bf6126253a9d9a5226367c"
|
||||
end
|
||||
|
||||
resource "zlib-win32" do
|
||||
url "https://downloads.sourceforge.net/project/libpng/zlib/1.2.8/zlib128-dll.zip"
|
||||
sha256 "a03fd15af45e91964fb980a30422073bc3f3f58683e9fdafadad3f7db10762b1"
|
||||
end
|
||||
|
||||
# scons appears to have no builtin way to override the compiler selection,
|
||||
# and the only options supported on macOS are 'gcc' and 'g++'.
|
||||
# Use the right compiler by forcibly altering the scons config to set these
|
||||
|
@ -32,8 +36,13 @@ class Makensis < Formula
|
|||
# https://sourceforge.net/p/nsis/bugs/1085/
|
||||
ENV.libstdcxx if ENV.compiler == :clang
|
||||
|
||||
# requires zlib (win32) to build utils
|
||||
resource("zlib-win32").stage do
|
||||
@zlib_path = Dir.pwd
|
||||
end
|
||||
|
||||
# Don't strip, see https://github.com/Homebrew/homebrew/issues/28718
|
||||
scons "STRIP=0", "SKIPUTILS=all", "makensis"
|
||||
scons "STRIP=0", "ZLIB_W32=#{@zlib_path}", "SKIPUTILS=NSIS Menu", "makensis"
|
||||
bin.install "build/urelease/makensis/makensis"
|
||||
(share/"nsis").install resource("nsis")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue