From f325a5a903514cb2d6f6d584219637f3e00f968a Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 8 Nov 2016 20:35:50 +0100 Subject: [PATCH] telepathy-qt5: fix cross --- common/shlibs | 1 + srcpkgs/telepathy-qt5/template | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/common/shlibs b/common/shlibs index 12a317d27ce..9b0c46de7b6 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2072,6 +2072,7 @@ libphonon4qt5.so.4 phonon-qt5-4.8.3_1 libphonon4qt5experimental.so.4 phonon-qt5-4.8.3_1 libtelepathy-qt5.so.0 telepathy-qt5-0.9.5_1 libtelepathy-qt5-farstream.so.0 telepathy-qt5-farstream-0.9.5_1 +libtelepathy-qt5-service.so.0 telepathy-qt5-farstream-0.9.7_1 libKF5Attica.so.5 attica-qt5-5.6.0_1 libechonest5.so.2.3 libechonest-qt5-2.3.0_1 liblastfm_fingerprint5.so.1 liblastfm-qt5-1.0.9_1 diff --git a/srcpkgs/telepathy-qt5/template b/srcpkgs/telepathy-qt5/template index 65c23b170d6..c832e430955 100644 --- a/srcpkgs/telepathy-qt5/template +++ b/srcpkgs/telepathy-qt5/template @@ -18,6 +18,17 @@ homepage="http://telepathy.freedesktop.org/" distfiles="http://telepathy.freedesktop.org/releases/${pkgname//5/}/${pkgname//5/}-${version}.tar.gz" checksum=21bad30be7ebc4ba667d53d92cd1cec1be23114103f2149404d9740721693d4f +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools qt5-devel" + # cmake/FindPythonLibrary.cmake fails when cross compiling + sed -i CMakeLists.txt -e "/find_package(PythonLibrary ${REQUIRED_PY} REQUIRED)/d" + configure_args+=" -DPYTHON_SHORT_VERSION=2.7" + configure_args+=" -DPYTHON_LONG_VERSION=2.7.3" + configure_args+=" -DPYTHON_SITE_PACKAGES_DIR=${XBPS_CROSS_BASE}/usr/lib/python2.7/site-packages" + configure_args+=" -DPYTHON_INCLUDE_PATH=${XBPS_CROSS_BASE}/usr/include/python2.7" + configure_args+=" -DCMAKE_PYTHON_LIBRARIES=${XBPS_CROSS_BASE}/usr/lib" +fi + CXXFLAGS="-D_DEFAULT_SOURCE" subpackages="telepathy-qt5-farstream telepathy-qt5-devel"