summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2020-08-29 11:46:10 -0700
committerZac Medico <zmedico@gentoo.org>2020-08-29 11:49:03 -0700
commita15d7caa3306003967173cd9da68466d0d490540 (patch)
tree10082254fe1226c7268f00f309d7bd381dea8031 /net-libs/libslirp
parentmedia-libs/libxspf: Port to EAPI 7 (diff)
downloadgentoo-a15d7caa3306003967173cd9da68466d0d490540.tar.gz
gentoo-a15d7caa3306003967173cd9da68466d0d490540.tar.bz2
gentoo-a15d7caa3306003967173cd9da68466d0d490540.zip
net-libs/libslirp: Support static-libs
Closes: https://bugs.gentoo.org/739512 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'net-libs/libslirp')
-rw-r--r--net-libs/libslirp/libslirp-4.3.1.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/net-libs/libslirp/libslirp-4.3.1.ebuild b/net-libs/libslirp/libslirp-4.3.1.ebuild
index 5883ba4bc271..c06446387f94 100644
--- a/net-libs/libslirp/libslirp-4.3.1.ebuild
+++ b/net-libs/libslirp/libslirp-4.3.1.ebuild
@@ -13,6 +13,7 @@ HOMEPAGE="https://gitlab.freedesktop.org/slirp/libslirp"
LICENSE="BSD"
SLOT="0"
+IUSE="static-libs"
RDEPEND="dev-libs/glib:="
@@ -25,3 +26,10 @@ src_prepare() {
echo "${PV}" > .tarball-version || die
echo -e "#!${BASH}\necho -n \$(cat '${S}/.tarball-version')" > build-aux/git-version-gen || die
}
+
+src_configure() {
+ local emesonargs=(
+ -Ddefault_library=$(usex static-libs both shared)
+ )
+ meson_src_configure
+}