This repository has been archived by the owner on Mar 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid-libressl.rb
59 lines (51 loc) · 1.99 KB
/
android-libressl.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class AndroidLibressl < Formula
desc "Version of the SSL/TLS protocol forked from OpenSSL"
homepage "https://www.libressl.org/"
# Please ensure when updating version the release is from stable branch.
url "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.1.3.tar.gz"
mirror "https://mirrorservice.org/pub/OpenBSD/LibreSSL/libressl-3.1.3.tar.gz"
sha256 "c76b0316acf612ecb62f5cb014a20d972a663bd9e40abf952a86f3b998b69fa0"
bottle do
root_url "https://dl.bintray.com/measurement-kit/homebrew"
sha256 "581298794bf5a3c3deb44ee75e99a4fbe6bbb4c28495bc77ff0ade48adb2c7fb" => :catalina
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "cross" => :build
keg_only "this is an Android build that we should not install system wide"
patch :DATA
def install
ENV['ANDROID_NDK_ROOT'] = '/usr/local/share/android-sdk/ndk-bundle'
ENV['PATH'] = '/usr/local/bin:/usr/bin:/bin'
system "autoreconf", "-vif"
[ "x86", "x86_64", "armeabi-v7a", "arm64-v8a" ].each do |arch|
mkdir "build-#{arch}" do
system "cross-android", "#{arch}", "../configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-shared",
"--prefix=#{prefix}/#{arch}",
"--with-openssldir=#{etc}/libressl",
"--sysconfdir=#{etc}/libressl"
system "make", "install"
end
end
end
end
__END__
From f9e21798fb795188a21ac7dd5ed0d9b6adf29f8c Mon Sep 17 00:00:00 2001
From: AntonioLangiu <[email protected]>
Date: Fri, 22 Apr 2016 16:29:36 +0200
Subject: [PATCH 505/505] build just needed subdir
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 48da18b..9164e20 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = crypto ssl tls include apps man
+SUBDIRS = crypto ssl include
if ENABLE_TESTS
SUBDIRS += tests
endif