95 lines
2.6 KiB
Ruby
95 lines
2.6 KiB
Ruby
class Wolfssl < Formula
|
|
desc "Embedded SSL Library written in C"
|
|
homepage "https://www.wolfssl.com/wolfSSL/Home.html"
|
|
url "https://github.com/wolfSSL/wolfssl.git",
|
|
:tag => "v4.0.0-stable",
|
|
:revision => "21f2beca9f320199fcea4a96df3e19967804144b"
|
|
sha256 "4e15f494604e41725499f8b708798f8ddc2fcaa8f39b4369bcd000b3cab482d8"
|
|
head "https://github.com/wolfSSL/wolfssl.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "d8d5b004351316943191ffd8af180828775304bc623974fc3f37bc697ff34364" => :mojave
|
|
sha256 "f86e6a7d5695ea4f4e4ac93aa4c885142b6adb58b42819c60143806f33c00acf" => :high_sierra
|
|
sha256 "a2ed01a72536b98855568d255f1acb351ddab05343adfd88af6c3a1da9cb68f1" => :sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
|
|
def install
|
|
# https://github.com/Homebrew/homebrew-core/pull/1046
|
|
# https://github.com/Homebrew/brew/pull/251
|
|
ENV.delete("SDKROOT")
|
|
|
|
args = %W[
|
|
--disable-silent-rules
|
|
--disable-dependency-tracking
|
|
--infodir=#{info}
|
|
--mandir=#{man}
|
|
--prefix=#{prefix}
|
|
--sysconfdir=#{etc}
|
|
--disable-bump
|
|
--disable-examples
|
|
--disable-fortress
|
|
--disable-md5
|
|
--disable-sniffer
|
|
--disable-webserver
|
|
--enable-aesccm
|
|
--enable-aesgcm
|
|
--enable-alpn
|
|
--enable-blake2
|
|
--enable-camellia
|
|
--enable-certgen
|
|
--enable-certreq
|
|
--enable-chacha
|
|
--enable-crl
|
|
--enable-crl-monitor
|
|
--enable-curve25519
|
|
--enable-dtls
|
|
--enable-dh
|
|
--enable-ecc
|
|
--enable-eccencrypt
|
|
--enable-ed25519
|
|
--enable-filesystem
|
|
--enable-hc128
|
|
--enable-hkdf
|
|
--enable-inline
|
|
--enable-ipv6
|
|
--enable-jni
|
|
--enable-keygen
|
|
--enable-ocsp
|
|
--enable-opensslextra
|
|
--enable-poly1305
|
|
--enable-psk
|
|
--enable-rabbit
|
|
--enable-ripemd
|
|
--enable-savesession
|
|
--enable-savecert
|
|
--enable-sessioncerts
|
|
--enable-sha512
|
|
--enable-sni
|
|
--enable-supportedcurves
|
|
--enable-tls13
|
|
--enable-sp
|
|
--enable-fastmath
|
|
--enable-fasthugemath
|
|
]
|
|
|
|
# Extra flag is stated as a needed for the Mac platform.
|
|
# https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-2-building-wolfssl.html
|
|
# Also, only applies if fastmath is enabled.
|
|
ENV.append_to_cflags "-mdynamic-no-pic"
|
|
|
|
system "./autogen.sh"
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "check"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"wolfssl-config", "--cflags", "--libs", "--prefix"
|
|
end
|
|
end
|