From 8abc4389d7b6e33fbaa3b1c1c2e9547ee550da2b Mon Sep 17 00:00:00 2001 From: John Date: Wed, 23 Aug 2017 16:43:24 +0200 Subject: [PATCH] New package: linphone-3.12.0 --- common/shlibs | 2 + srcpkgs/linphone-console | 1 + srcpkgs/linphone-daemon | 1 + srcpkgs/linphone-devel | 1 + srcpkgs/linphone-gui | 1 + srcpkgs/linphone-tools | 1 + srcpkgs/linphone/template | 82 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 89 insertions(+) create mode 120000 srcpkgs/linphone-console create mode 120000 srcpkgs/linphone-daemon create mode 120000 srcpkgs/linphone-devel create mode 120000 srcpkgs/linphone-gui create mode 120000 srcpkgs/linphone-tools create mode 100644 srcpkgs/linphone/template diff --git a/common/shlibs b/common/shlibs index ab2810c5aab..3105e6a7633 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3393,3 +3393,5 @@ libbzrtp.so.0 bzrtp-1.0.6_1 libbellesip.so.0 belle-sip-1.5.0_1 libmediastreamer_base.so.10 mediastreamer-2.16.1_1 libmediastreamer_voip.so.10 mediastreamer-2.16.1_1 +liblinphone.so.9 linphone-3.12.0_1 +liblinphone++.so.9 linphone-3.12.0_1 diff --git a/srcpkgs/linphone-console b/srcpkgs/linphone-console new file mode 120000 index 00000000000..722c87cfe15 --- /dev/null +++ b/srcpkgs/linphone-console @@ -0,0 +1 @@ +linphone \ No newline at end of file diff --git a/srcpkgs/linphone-daemon b/srcpkgs/linphone-daemon new file mode 120000 index 00000000000..722c87cfe15 --- /dev/null +++ b/srcpkgs/linphone-daemon @@ -0,0 +1 @@ +linphone \ No newline at end of file diff --git a/srcpkgs/linphone-devel b/srcpkgs/linphone-devel new file mode 120000 index 00000000000..722c87cfe15 --- /dev/null +++ b/srcpkgs/linphone-devel @@ -0,0 +1 @@ +linphone \ No newline at end of file diff --git a/srcpkgs/linphone-gui b/srcpkgs/linphone-gui new file mode 120000 index 00000000000..722c87cfe15 --- /dev/null +++ b/srcpkgs/linphone-gui @@ -0,0 +1 @@ +linphone \ No newline at end of file diff --git a/srcpkgs/linphone-tools b/srcpkgs/linphone-tools new file mode 120000 index 00000000000..722c87cfe15 --- /dev/null +++ b/srcpkgs/linphone-tools @@ -0,0 +1 @@ +linphone \ No newline at end of file diff --git a/srcpkgs/linphone/template b/srcpkgs/linphone/template new file mode 100644 index 00000000000..8419c0747d1 --- /dev/null +++ b/srcpkgs/linphone/template @@ -0,0 +1,82 @@ +# Template file for 'linphone' +pkgname=linphone +version=3.12.0 +revision=1 +build_style="cmake" +configure_args="-DENABLE_STRICT=0 -DENABLE_GTK_UI=$(vopt_if gui true false)" +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 + libupnp-devel libsrtp-devel belcard-devel $(vopt_if gui gtk+-devel)" +short_desc="Voice-over-IP phone" +maintainer="John " +license="GPL-2.0-or-later" +homepage="https://www.linphone.org" +distfiles="https://www.linphone.org/releases/sources/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=3da4fa55c01aa4a04923a8f028eb7fadeaed094614594e1a12cfb75e4a9f105e + +build_options="gui" +build_options_default="gui" +subpackages="linphone-daemon linphone-console linphone-tools + linphone-devel $(vopt_if gui linphone-gui)" + + +pre_build() { + echo "#define MS2_GIT_VERSION=unknown" > coreapi/gitversion.h + echo "#define MS2_GIT_VERSION=unknown" > gtk/liblinphone_gitversion.h +} + +linphone-daemon_package() { + short_desc+=" - daemon" + pkg_install() { + vmove usr/bin/linphone-daemon + } +} + +linphone-gui_package() { + short_desc+=" - gtk based gui" + depends="${sourcepkg}>=${version}_${revision} hicolor-icon-theme + desktop-file-utils" + pkg_install() { + vmove usr/bin/linphone + vmove usr/share/applications + vmove usr/share/icons + vmove usr/share/pixmaps + vmove "usr/share/linphone/*.ui" + vmove usr/share/locale + } +} + +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 buddy_status chatroom filetransfer helloworld lp-auto-answer\ + lp-sendmsg lp-test-ecc lpc2xml_test notify realtimetext_receiver\ + realtimetext_sender registration 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 + } + +}