qv4l2: fix cross

This commit is contained in:
Jürgen Buchmüller 2017-01-27 07:48:26 +01:00
parent d57258d1f9
commit a4e60bf639

View file

@ -14,14 +14,18 @@ homepage="https://linuxtv.org/"
license="GPL-2, LGPL-2.1" license="GPL-2, LGPL-2.1"
distfiles="http://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2" distfiles="http://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
checksum=ac9f8c88bfffa3a7e85c0edd04f7d3d54e6a30c214e79f2c6ecc6fbf57cb229d checksum=ac9f8c88bfffa3a7e85c0edd04f7d3d54e6a30c214e79f2c6ecc6fbf57cb229d
nocross=yes
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
LDFLAGS="-lpthread"
fi
CFLAGS="-Wno-error=unused-function" CFLAGS="-Wno-error=unused-function"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone" *-musl) makedepends+=" argp-standalone"
CFLAGS+=" -D__off_t=off_t -D__off64_t=off_t" CFLAGS+=" -D__off_t=off_t -D__off64_t=off_t"
LDFLAGS="-largp" LDFLAGS+=" -largp"
;; ;;
esac esac