summaryrefslogtreecommitdiff
path: root/dev-libs/wolfssl/wolfssl-5.9.1.ebuild
blob: 747c1ee17f7ec5cdf4f83a98a2b56cfab16db705 (plain)
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
# Copyright 2022-2026 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools

DESCRIPTION="Embedded SSL library."
HOMEPAGE="https://www.wolfssl.com/ https://github.com/wolfSSL/wolfssl"
SRC_URI="https://github.com/wolfSSL/wolfssl/archive/refs/tags/v${PV}-stable.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug cpu_flags_x86_aes sniffer"

DEPEND="sniffer? ( net-libs/libpcap )"
RDEPEND="${DEPEND}"

S=${WORKDIR}/${P}-stable

src_prepare() {
	eautoreconf
	default
}

src_configure() {
	econf \
		$(use_enable cpu_flags_x86_aes aesni) \
		$(use_enable sniffer) \
		$(use_enable debug) \
		--enable-distro \
		--enable-writedup # Needed for RPCS3
}