From a4e60bf639e50be7697000514a71f0150da1c829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 27 Jan 2017 07:48:26 +0100 Subject: [PATCH] qv4l2: fix cross --- srcpkgs/qv4l2/template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/qv4l2/template b/srcpkgs/qv4l2/template index 4614870331..a15bb9725b 100644 --- a/srcpkgs/qv4l2/template +++ b/srcpkgs/qv4l2/template @@ -14,14 +14,18 @@ homepage="https://linuxtv.org/" license="GPL-2, LGPL-2.1" distfiles="http://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2" checksum=ac9f8c88bfffa3a7e85c0edd04f7d3d54e6a30c214e79f2c6ecc6fbf57cb229d -nocross=yes + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" qt5-host-tools qt5-devel" + LDFLAGS="-lpthread" +fi CFLAGS="-Wno-error=unused-function" case "$XBPS_TARGET_MACHINE" in *-musl) makedepends+=" argp-standalone" CFLAGS+=" -D__off_t=off_t -D__off64_t=off_t" - LDFLAGS="-largp" + LDFLAGS+=" -largp" ;; esac