mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
117 lines
3.4 KiB
Bash
117 lines
3.4 KiB
Bash
SUMMARY="Low latency encrypted VoIP client"
|
|
DESCRIPTION="Mumble is a low-latency, high quality voice chat program primarily \
|
|
intended for gaming. \
|
|
Features include a encrypted connection with Public/private-key authentication and \
|
|
noise suppression. \
|
|
To use Mumble, you need a mumble server. You can either join a public existing server \
|
|
or host your own."
|
|
HOMEPAGE="https://www.mumble.info/"
|
|
COPYRIGHT="2005-2022 The Mumble Developers"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/mumble-voip/mumble/releases/download/v$portVersion/mumble-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="904f3633d28ab0e6925caeff2c65802f586abefdf6d20162f20a71805c2c5929"
|
|
PATCHES="mumble-$portVersion.patchset"
|
|
ADDITIONAL_FILES="mumble.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
mumble$secondaryArchSuffix
|
|
app:Mumble
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libexpat$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libopus$secondaryArchSuffix
|
|
lib:libpcre2_posix$secondaryArchSuffix
|
|
lib:libPocoFoundation$secondaryArchSuffix
|
|
lib:libPocoXML$secondaryArchSuffix
|
|
lib:libPocoZip$secondaryArchSuffix
|
|
lib:libportaudio$secondaryArchSuffix
|
|
lib:libprotobuf$secondaryArchSuffix
|
|
lib:libprotoc$secondaryArchSuffix
|
|
lib:libsndfile$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libspeexdsp$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:librnnoise$secondaryArchSuffix
|
|
lib:libX11$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libexpat$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libopus$secondaryArchSuffix
|
|
devel:libpcre2_posix$secondaryArchSuffix
|
|
devel:libPocoFoundation$secondaryArchSuffix
|
|
devel:libPocoXML$secondaryArchSuffix
|
|
devel:libPocoZip$secondaryArchSuffix
|
|
devel:libprotobuf$secondaryArchSuffix
|
|
devel:libprotoc$secondaryArchSuffix
|
|
devel:libsndfile$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix
|
|
devel:libspeexdsp$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:librnnoise$secondaryArchSuffix
|
|
devel:libX11$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cc
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:linguist$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD() {
|
|
cmake -Bbuild \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-Dbundled-opus=OFF \
|
|
-Dbundled-rnnoise=OFF \
|
|
-Dbundled-speex=OFF \
|
|
-Dclient=ON \
|
|
-Ddbus=OFF \
|
|
-Doverlay=OFF \
|
|
-Dplugins=OFF \
|
|
-Dserver=OFF \
|
|
-Dsymbols=ON \
|
|
-Dtracy=OFF \
|
|
-DTRACY_ENABLE=OFF \
|
|
-Dtests=OFF \
|
|
-Dwarnings-as-errors=OFF \
|
|
-Dzeroconf=OFF
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL() {
|
|
mkdir $appsDir
|
|
cp build/mumble $appsDir/Mumble
|
|
|
|
local APP_SIGNATURE="application/x-vnd.mumble"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local SHORT_INFO="$SUMMARY"
|
|
local LONG_INFO="$DESCRIPTION"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@SHORT_INFO@|$SHORT_INFO|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/mumble.rdef.in > $sourceDir/mumble.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/mumble.rdef $appsDir/Mumble
|
|
addAppDeskbarSymlink $appsDir/Mumble
|
|
}
|