0640b82896
Closes #13667. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
37 lines
1 KiB
Bash
37 lines
1 KiB
Bash
# Template file for 'qv4l2'
|
|
pkgname=qv4l2
|
|
version=1.14.2
|
|
revision=1
|
|
wrksrc="v4l-utils-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-qv4l2 --with-udevdir=/usr/lib/udev"
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="alsa-lib-devel libjpeg-turbo-devel libsysfs-devel qt5-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Qt v4l2 control panel application"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://linuxtv.org/"
|
|
distfiles="https://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
|
|
checksum=e6b962c4b1253cf852c31da13fd6b5bb7cbe5aa9e182881aec55123bae680692
|
|
|
|
nocross="detects X11/GL support incorrectly"
|
|
|
|
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"
|
|
;;
|
|
esac
|
|
|
|
do_install() {
|
|
cd utils/qv4l2
|
|
make DESTDIR=${DESTDIR} install
|
|
}
|