summaryrefslogtreecommitdiff
path: root/net-voip/re/re-4.11.0.ebuild
blob: da36d874418880f3f414f10dcba501a9f019607b (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
33
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Generic library for real-time communications with async IO support"
HOMEPAGE="https://github.com/baresip/re"
SRC_URI="https://github.com/baresip/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"

IUSE="static-libs"

DEPEND="
	dev-libs/openssl:0=
	virtual/zlib:=
	"

RDEPEND="${DEPEND}"

src_configure() {
	# Fix #981529. Will be fixed upstream next release
	sed -i 's/^libdir=.*/libdir=\${prefix}\/@CMAKE_INSTALL_LIBDIR@/' packaging/libre.pc.in

	local mycmakeargs=(
		-DLIBRE_BUILD_STATIC=$(usex static-libs ON OFF)
	)
	cmake_src_configure
}