0
0
Fork 0
haikuports/net-voip/yate/yate-6.1.1~git.recipe

76 lines
2.2 KiB
Bash

SUMMARY="Universal telephony client"
DESCRIPTION="Yate stands for Yet Another Telephony Engine, and like the name \
states it is mainly a telephony engine; while currently focused on Voice over \
Internet Protocol (VoIP) and PSTN, its power lies in its ability to be easily \
extended. Voice, video, data and instant messenging can all be unified under \
Yate's flexible routing engine, maximizing communications efficiency and \
minimizing infrastructure costs for businesses."
HOMEPAGE="http://www.yate.ro/"
COPYRIGHT="2010-2020 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
srcGitRev="8505d691922a3df3545d9b4196170d6084467e37"
SOURCE_URI="https://github.com/keepitsimpletech/yate/archive/$srcGitRev.zip"
CHECKSUM_SHA256="2891f8a128421acbf059a72b103c8b9ad10f65052bd0d1c8ed223250e8945b55"
SOURCE_DIR="yate-$srcGitRev"
PATCHES="yate-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
yate$secondaryArchSuffix = $portVersion
app:YateClient$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:g++$secondaryArchSuffix
cmd:make
cmd:qmake
"
BUILD()
{
./autogen.sh
./configure
make yatepaths.h
qmake -o Makefile.qmake Yate.pro
make $jobArgs -f Makefile.qmake
}
INSTALL()
{
mkdir -p $appsDir/Yate
cp build/* $appsDir/Yate
cp -r client-conf.d $appsDir/Yate
local APP_SIGNATURE="application/x-vnd.qt5-yate"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/yate.rdef.in > yate.rdef
addResourcesToBinaries yate.rdef $appsDir/Yate/YateClient
addAppDeskbarSymlink $appsDir/Yate/YateClient
}