65 lines
1.7 KiB
Bash
65 lines
1.7 KiB
Bash
# Template file for 'linphone'
|
|
pkgname=linphone
|
|
version=4.4.0
|
|
revision=1
|
|
build_style="cmake"
|
|
wrksrc="liblinphone-${version}"
|
|
configure_args="-DENABLE_STRICT=0 -DENABLE_GTK_UI=$(vopt_if gui true false)
|
|
-DENABLE_ADVANCED_IM=FALSE -DENABLE_DB_STORAGE=FALSE
|
|
-DENABLE_LIME=NO -DENABLE_LIME_X3DH=NO -DENABLE_UNIT_TESTS=NO"
|
|
hostmakedepends="doxygen graphviz python-pystache python-six"
|
|
makedepends="sqlite-devel readline-devel mediastreamer-devel
|
|
belle-sip-devel speex-devel libxml2-devel libnotify-devel
|
|
bctoolbox-devel ortp-devel bzrtp-devel gettext-devel ortp-devel
|
|
libupnp-devel libsrtp-devel belcard-devel libxerces-c-devel"
|
|
short_desc="Voice-over-IP phone"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.linphone.org"
|
|
distfiles="https://gitlab.linphone.org/BC/public/liblinphone/-/archive/${version}/liblinphone-${version}.tar.gz"
|
|
checksum=a9a468e7e15ad59062d6460b7d2f6b1f1cd74c15d54a7b5dae6bad28a489cf40
|
|
|
|
pre_build() {
|
|
echo "#define MS2_GIT_VERSION=unknown" > coreapi/gitversion.h
|
|
}
|
|
|
|
linphone-daemon_package() {
|
|
short_desc+=" - daemon"
|
|
pkg_install() {
|
|
vmove usr/bin/linphone-daemon
|
|
}
|
|
}
|
|
|
|
linphone-console_package() {
|
|
short_desc+=" - console interface"
|
|
pkg_install() {
|
|
vmove usr/bin/linphonec
|
|
vmove usr/bin/linphonecsh
|
|
}
|
|
}
|
|
|
|
linphone-tools_package() {
|
|
short_desc+=" - tools"
|
|
pkg_install() {
|
|
for i in lp-auto-answer\
|
|
lp-sendmsg lp-test-ecc lpc2xml_test \
|
|
xml2lpc_test; do
|
|
vmove usr/bin/$i;
|
|
done
|
|
vmove "usr/bin/*test"
|
|
}
|
|
}
|
|
|
|
linphone-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} libxml2-devel ortp-devel"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/include
|
|
vmove usr/share/LinphoneCxx/cmake
|
|
vmove usr/share/Linphone/cmake
|
|
}
|
|
|
|
}
|