void-packages/srcpkgs/qv4l2/template
2017-02-20 11:24:27 +00:00

35 lines
1,001 B
Bash

# Template file for 'qv4l2'
pkgname=qv4l2
version=1.12.3
revision=1
wrksrc="v4l-utils-${version}"
build_style=gnu-configure
configure_args="--enable-qv4l2 --with-udevdir=/usr/lib/udev"
hostmakedepends="pkg-config perl"
makedepends="libjpeg-turbo-devel libsysfs-devel alsa-lib-devel qt5-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Qt v4l2 control panel application"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://linuxtv.org/"
license="GPL-2, LGPL-2.1"
distfiles="http://linuxtv.org/downloads/v4l-utils/v4l-utils-${version}.tar.bz2"
checksum=5a47dd6f0e7dfe902d94605c01d385a4a4e87583ff5856d6f181900ea81cf46e
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
}