Files
haikuports/net-voip/yate/yate-6.0.0.recipe
Jerome Duval 51ee6bc944 code style.
remove old patches.
2018-08-14 10:42:32 +02:00

72 lines
2.0 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-2017 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="http://yate.null.ro/tarballs/yate6/yate-$portVersion-1.tar.gz"
CHECKSUM_SHA256="0ab76015651db8076031277b2003c23bd5d9eb940491801f30a6dc3c226c1817"
SOURCE_DIR="yate"
PATCHES="yate-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 !x86_64"
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:which
"
BUILD()
{
export CXXFLAGS="-std=c++11"
export CFLAGS="-std=c++11"
./autogen.sh
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
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
}