linphone-desktop: fix cross
This commit is contained in:
parent
e22d1a4b71
commit
54788b6f47
|
@ -4,7 +4,6 @@ version=5.0.4
|
||||||
revision=1
|
revision=1
|
||||||
build_wrksrc="linphone-app" # The root cmake is glue code for their vendored libs
|
build_wrksrc="linphone-app" # The root cmake is glue code for their vendored libs
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DFULL_VERSION=$version"
|
|
||||||
hostmakedepends="qt5-qmake qt5-host-tools qt5-declarative"
|
hostmakedepends="qt5-qmake qt5-host-tools qt5-declarative"
|
||||||
makedepends="bctoolbox-devel belcard-devel belle-sip-devel linphone-devel
|
makedepends="bctoolbox-devel belcard-devel belle-sip-devel linphone-devel
|
||||||
mediastreamer-devel qt5-declarative-devel qt5-quickcontrols2-devel
|
mediastreamer-devel qt5-declarative-devel qt5-quickcontrols2-devel
|
||||||
|
@ -18,6 +17,18 @@ distfiles="https://gitlab.linphone.org/BC/public/linphone-desktop/-/archive/${ve
|
||||||
checksum=0399b32100dd555ab503b0f8856f6a632cd704672805301c7c753b8a1183a445
|
checksum=0399b32100dd555ab503b0f8856f6a632cd704672805301c7c753b8a1183a445
|
||||||
replaces="linphone-gui>=0"
|
replaces="linphone-gui>=0"
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
IFS=. read _major _minor _patch <<<"$version"
|
||||||
|
vsed -e "s/set(FULL_VERSION )/set(FULL_VERSION $version)/g" -i CMakeLists.txt
|
||||||
|
vsed -e "s/set(version_major )/set(version_major $_major)/g" -i CMakeLists.txt
|
||||||
|
vsed -e "s/set(version_minor )/set(version_minor $_minor)/g" -i CMakeLists.txt
|
||||||
|
vsed -e "s/set(version_patch )/set(version_patch $_patch)/g" -i CMakeLists.txt
|
||||||
|
vsed -e "/bc_compute_full_version/d" -i CMakeLists.txt
|
||||||
|
vsed -e "/bc_parse_full_version/d" -i CMakeLists.txt
|
||||||
|
vsed -e "/find_package(bctoolbox CONFIG)/d" -i CMakeLists.txt
|
||||||
|
vsed -e "/project(/ a find_package(bctoolbox CONFIG)" -i CMakeLists.txt
|
||||||
|
}
|
||||||
|
|
||||||
linphone-gui_package() {
|
linphone-gui_package() {
|
||||||
short_desc+=" - (transitional dummy package)"
|
short_desc+=" - (transitional dummy package)"
|
||||||
depends="linphone-desktop"
|
depends="linphone-desktop"
|
||||||
|
|
Loading…
Reference in New Issue