void-packages/srcpkgs/v4l-utils/template
2021-12-29 14:17:23 +01:00

40 lines
1.1 KiB
Bash

# Template file for 'v4l-utils'
pkgname=v4l-utils
version=1.22.1
revision=1
build_style=gnu-configure
configure_args="--disable-qv4l2 --with-udevdir=/usr/lib/udev"
hostmakedepends="automake libtool pkg-config gettext-devel"
makedepends="libjpeg-turbo-devel libsysfs-devel eudev-libudev-devel alsa-lib-devel
libX11-devel"
short_desc="Userspace tools and libraries for Video 4 Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://linuxtv.org/"
distfiles="https://linuxtv.org/downloads/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=65c6fbe830a44ca105c443b027182c1b2c9053a91d1e72ad849dfab388b94e31
conf_files="/etc/rc_maps.cfg"
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone"
CFLAGS="-D__off_t=off_t -D__off64_t=off_t"
LDFLAGS="-largp"
;;
esac
CFLAGS+=" -fcommon"
pre_configure() {
autoreconf -if
}
v4l-utils-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}