--- mumble-1.1.8.ebuild 2009-04-25 18:58:43.000000000 +0200 +++ mumble-1.1.8.ebuild 2009-04-25 18:19:56.000000000 +0200 @@ -54,6 +54,22 @@ src_configure() { || die "eqmake4 failed." } +src_compile() { + emake || die "emake failed" + + if use amd64 && has_multilib_profile; then + einfo "Building 32-bit overlay lib" + local oldabi="${ABI}" + multilib_toolchain_setup x86 + + cd overlay_gl + emake clean + emake DESTDIR_ADD="/32" || die "emake for 32-bit overlay failed" + + multilib_toolchain_setup "${oldabi}" + fi +} + src_install() { newdoc README.Linux README || die "Installing docs failed." dodoc CHANGES || die "Installing docs failed." @@ -67,8 +83,15 @@ src_install() { dobin "${dir}"/mumble || die "Installing mumble binary failed." - CONF_LIBDIR="$(get_libdir)/mumble" dolib.so "${dir}"/lib*.so* || die "Installing libraries failed." - CONF_LIBDIR="$(get_libdir)/mumble" dolib.so "${dir}"/plugins/lib*.so* || die "Installing libraries failed." + export LIBDIR_${ABI}="$(get_libdir)/mumble" + + dolib.so "${dir}"/lib*.so* || die "Installing libraries failed." + dolib.so "${dir}"/plugins/lib*.so* || die "Installing libraries failed." + + if use amd64 && has_multilib_profile; then + LIBDIR_x86="$(get_abi_LIBDIR x86)/mumble" \ + ABI=x86 dolib.so "${dir}"/32/lib*.so* || die "Installing libraries failed." + fi insinto /usr/share/services doins scripts/mumble.protocol || die "Installing mumble.protocol file failed."