mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 03:19:46 -05:00
Adjust configure arguments. The bump and fortress options are application specific, and libz isn't standard DEFLATE behavior. Also note that several of the enable options have changed case from the earlier release of the library. This wasn't causing any problems due to the bump and fortress options, but they are incorrect and needed updating. Closes #19553. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
64 lines
1.8 KiB
Ruby
64 lines
1.8 KiB
Ruby
require 'formula'
|
|
|
|
class Cyassl < Formula
|
|
homepage 'http://yassl.com/yaSSL/Products-cyassl.html'
|
|
url 'https://github.com/cyassl/cyassl/archive/v2.6.0.tar.gz'
|
|
sha256 '61735c47e14065162986579d866ea7bd98af30e0e6bb5ac34367122ba1959b62'
|
|
|
|
head 'https://github.com/cyassl/cyassl.git'
|
|
|
|
depends_on 'autoconf' => :build
|
|
depends_on 'automake' => :build
|
|
depends_on 'libtool' => :build
|
|
|
|
fails_with :clang
|
|
|
|
def install
|
|
args = %W[--infodir=#{info}
|
|
--mandir=#{man}
|
|
--prefix=#{prefix}
|
|
--enable-aesccm
|
|
--enable-aesgcm
|
|
--enable-camellia
|
|
--enable-certgen
|
|
--enable-crl
|
|
--enable-crl-monitor
|
|
--enable-dtls
|
|
--disable-fortress
|
|
--enable-hc128
|
|
--enable-keygen
|
|
--enable-ocsp
|
|
--enable-opensslextra
|
|
--enable-psk
|
|
--enable-rabbit
|
|
--enable-ripemd
|
|
--enable-sha512
|
|
--disable-sniffer
|
|
--enable-ecc
|
|
--enable-filesystem
|
|
--enable-inline
|
|
--disable-ntru
|
|
--disable-webserver
|
|
--disable-bump
|
|
]
|
|
|
|
if MacOS.prefer_64_bit?
|
|
args << '--enable-fastmath' << '--enable-fasthugemath'
|
|
else
|
|
args << '--disable-fastmath' << '--disable-fasthugemath'
|
|
end
|
|
|
|
# Extra flag is stated as a needed for the Mac platform.
|
|
# http://yassl.com/yaSSL/Docs-cyassl-manual-2-building-cyassl.html
|
|
# Also, only applies if fastmath is enabled.
|
|
ENV.append_to_cflags '-mdynamic-no-pic' if MacOS.prefer_64_bit?
|
|
|
|
# No public release available, Git tag is therefore used.
|
|
system "autoreconf --verbose --install --force"
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|