summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-06-19 16:50:49 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-06-19 17:03:42 +0200
commitf523cdc975e9726f259f5f661332e57e9e499b26 (patch)
tree7155fff8f33c00093e38449d856ce3d7feab9433 /media-sound/mumble
parentapp-emulation/diskimage-builder: 2.24.0 bump (diff)
downloadgentoo-f523cdc975e9726f259f5f661332e57e9e499b26.tar.gz
gentoo-f523cdc975e9726f259f5f661332e57e9e499b26.tar.bz2
gentoo-f523cdc975e9726f259f5f661332e57e9e499b26.zip
media-sound/mumble: Build multilib libmumble.so*
Closes: https://bugs.gentoo.org/267441 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-sound/mumble')
-rw-r--r--media-sound/mumble/mumble-9999.ebuild40
1 files changed, 30 insertions, 10 deletions
diff --git a/media-sound/mumble/mumble-9999.ebuild b/media-sound/mumble/mumble-9999.ebuild
index d15c4124e796..30b2055c37fb 100644
--- a/media-sound/mumble/mumble-9999.ebuild
+++ b/media-sound/mumble/mumble-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit desktop qmake-utils xdg
+inherit desktop multilib-build qmake-utils xdg
DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software"
HOMEPAGE="https://wiki.mumble.info"
@@ -63,6 +63,8 @@ BDEPEND="
virtual/pkgconfig
"
+# NB: qmake does not support multilib but it's fine to configure
+# for the native ABI here
src_configure() {
myuse() {
[[ -n "${1}" ]] || die "myuse: No use option given"
@@ -97,16 +99,36 @@ src_configure() {
DEFINES+="PLUGIN_PATH=/usr/$(get_libdir)/mumble"
}
-src_install() {
- newdoc README.Linux README
- dodoc CHANGES
+multilib_src_compile() {
+ local emake_args=(
+ # place libmumble* in a subdirectory
+ DESTDIR_ADD="/${MULTILIB_ABI_FLAG}"
+ {C,L}FLAGS_ADD="$(get_abi_CFLAGS)"
+ )
+ # build only overlay library for other ABIs
+ multilib_is_native_abi || emake_args+=( -C overlay_gl )
+ emake "${emake_args[@]}"
+ emake clean
+}
+
+src_compile() {
+ multilib_foreach_abi multilib_src_compile
+}
- local dir=release
- if use debug; then
- dir=debug
+multilib_src_install() {
+ local dir=$(usex debug debug release)
+ dolib.so "${dir}/${MULTILIB_ABI_FLAG}"/libmumble.so*
+ if multilib_is_native_abi; then
+ dobin "${dir}"/mumble
+ dolib.so "${dir}"/libcelt0.so* "${dir}"/plugins/lib*.so*
fi
+}
+
+src_install() {
+ multilib_foreach_abi multilib_src_install
- dobin "${dir}"/mumble
+ newdoc README.Linux README
+ dodoc CHANGES
dobin scripts/mumble-overlay
insinto /usr/share/services
@@ -118,8 +140,6 @@ src_install() {
doman man/mumble-overlay.1
doman man/mumble.1
-
- dolib.so "${dir}"/libmumble.so* "${dir}"/libcelt0.so* "${dir}"/plugins/lib*.so*
}
pkg_preinst() {