qv4l2: fix cross
This commit is contained in:
parent
d57258d1f9
commit
a4e60bf639
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue