Skip to content

Commit b9c8d47

Browse files
committed
Merge pull request #11 from jaym/master
Add openssl 1.0.1m
2 parents e8fb6df + ced4af8 commit b9c8d47

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

openssl/openssl-1.0.1m.knapfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
recipe "openssl", "1.0.1m" do
2+
use :autotools
3+
4+
fetch "https://www.openssl.org/source/openssl-1.0.1m.tar.gz",
5+
:md5 => "d143d1555d842a069cb7cc34ba745a06"
6+
depends_on "zlib"
7+
8+
before :extract do
9+
# ignore symlink errors from package
10+
if platform.mingw?
11+
options.ignore_extract_errors = true
12+
end
13+
end
14+
15+
action :configure do
16+
cmd = ["perl"]
17+
if platform.posix?
18+
cmd << "config"
19+
else
20+
cmd << "Configure"
21+
end
22+
23+
if platform.mingw?
24+
if platform.x64?
25+
cmd << "mingw64"
26+
else
27+
cmd << "mingw"
28+
end
29+
end
30+
31+
cmd << "zlib-dynamic shared"
32+
cmd << "--prefix=#{install_path}"
33+
34+
run cmd.join(" ")
35+
end
36+
end

0 commit comments

Comments
 (0)