Skip to content

Commit 99c144a

Browse files
committed
makensis 3.11
1 parent 2eb9a57 commit 99c144a

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

Formula/m/makensis.rb

+16-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Makensis < Formula
22
desc "System to create Windows installers"
33
homepage "https://nsis.sourceforge.net/"
4-
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.10/nsis-3.10-src.tar.bz2"
5-
sha256 "11b54a6307ab46fef505b2700aaf6f62847c25aa6eebaf2ae0aab2f17f0cb297"
4+
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.11/nsis-3.11-src.tar.bz2"
5+
sha256 "19e72062676ebdc67c11dc032ba80b979cdbffd3886c60b04bb442cdd401ff4b"
66
license "Zlib"
77

88
bottle do
@@ -22,11 +22,20 @@ class Makensis < Formula
2222
uses_from_macos "zlib"
2323

2424
resource "nsis" do
25-
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.09/nsis-3.09.zip"
26-
sha256 "f5dc52eef1f3884230520199bac6f36b82d643d86b003ce51bd24b05c6ba7c91"
25+
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.11/nsis-3.11.zip"
26+
sha256 "c7d27f780ddb6cffb4730138cd1591e841f4b7edb155856901cdf5f214394fa1"
27+
28+
livecheck do
29+
formula :parent
30+
end
2731
end
2832

2933
def install
34+
if OS.linux?
35+
ENV.append_to_cflags "-I#{Formula["zlib"].opt_include}"
36+
ENV.append "LDFLAGS", "-Wl,-rpath,#{rpath}"
37+
end
38+
3039
args = [
3140
"CC=#{ENV.cc}",
3241
"CXX=#{ENV.cxx}",
@@ -36,8 +45,10 @@ def install
3645
# Don't strip, see https://github.com/Homebrew/homebrew/issues/28718
3746
"STRIP=0",
3847
"VERSION=#{version}",
48+
# Scons dependency disables superenv in brew
49+
"APPEND_CCFLAGS=#{ENV.cflags}",
50+
"APPEND_LINKFLAGS=#{ENV.ldflags}",
3951
]
40-
args << "APPEND_LINKFLAGS=-Wl,-rpath,#{rpath}" if OS.linux?
4152

4253
system "scons", "makensis", *args
4354
bin.install "build/urelease/makensis/makensis"

0 commit comments

Comments
 (0)