Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
EAPI=7 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
inherit desktop qmake-utils xdg |
6 |
inherit desktop multilib-build qmake-utils xdg |
7 |
|
7 |
|
8 |
DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software" |
8 |
DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software" |
9 |
HOMEPAGE="https://wiki.mumble.info" |
9 |
HOMEPAGE="https://wiki.mumble.info" |
Lines 63-68
BDEPEND="
Link Here
|
63 |
virtual/pkgconfig |
63 |
virtual/pkgconfig |
64 |
" |
64 |
" |
65 |
|
65 |
|
|
|
66 |
# NB: qmake does not support multilib but it's fine to configure |
67 |
# for the native ABI here |
66 |
src_configure() { |
68 |
src_configure() { |
67 |
myuse() { |
69 |
myuse() { |
68 |
[[ -n "${1}" ]] || die "myuse: No use option given" |
70 |
[[ -n "${1}" ]] || die "myuse: No use option given" |
Lines 97-112
src_configure() {
Link Here
|
97 |
DEFINES+="PLUGIN_PATH=/usr/$(get_libdir)/mumble" |
99 |
DEFINES+="PLUGIN_PATH=/usr/$(get_libdir)/mumble" |
98 |
} |
100 |
} |
99 |
|
101 |
|
100 |
src_install() { |
102 |
multilib_src_compile() { |
101 |
newdoc README.Linux README |
103 |
local emake_args=( |
102 |
dodoc CHANGES |
104 |
# place libmumble* in a subdirectory |
|
|
105 |
DESTDIR_ADD="/${MULTILIB_ABI_FLAG}" |
106 |
{C,L}FLAGS_ADD="$(get_abi_CFLAGS)" |
107 |
) |
108 |
# build only overlay library for other ABIs |
109 |
multilib_is_native_abi || emake_args+=( -C overlay_gl ) |
110 |
emake "${emake_args[@]}" |
111 |
emake clean |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
multilib_foreach_abi multilib_src_compile |
116 |
} |
103 |
|
117 |
|
104 |
local dir=release |
118 |
multilib_src_install() { |
105 |
if use debug; then |
119 |
local dir=$(usex debug debug release) |
106 |
dir=debug |
120 |
dolib.so "${dir}/${MULTILIB_ABI_FLAG}"/libmumble.so* |
|
|
121 |
if multilib_is_native_abi; then |
122 |
dobin "${dir}"/mumble |
123 |
dolib.so "${dir}"/libcelt0.so* "${dir}"/plugins/lib*.so* |
107 |
fi |
124 |
fi |
|
|
125 |
} |
126 |
|
127 |
src_install() { |
128 |
multilib_foreach_abi multilib_src_install |
108 |
|
129 |
|
109 |
dobin "${dir}"/mumble |
130 |
newdoc README.Linux README |
|
|
131 |
dodoc CHANGES |
110 |
dobin scripts/mumble-overlay |
132 |
dobin scripts/mumble-overlay |
111 |
|
133 |
|
112 |
insinto /usr/share/services |
134 |
insinto /usr/share/services |
Lines 118-125
src_install() {
Link Here
|
118 |
|
140 |
|
119 |
doman man/mumble-overlay.1 |
141 |
doman man/mumble-overlay.1 |
120 |
doman man/mumble.1 |
142 |
doman man/mumble.1 |
121 |
|
|
|
122 |
dolib.so "${dir}"/libmumble.so* "${dir}"/libcelt0.so* "${dir}"/plugins/lib*.so* |
123 |
} |
143 |
} |
124 |
|
144 |
|
125 |
pkg_preinst() { |
145 |
pkg_preinst() { |
126 |
- |
|
|