2011-08-25 08:48:36 +00:00
|
|
|
# Template file for 'v4l-utils'
|
|
|
|
pkgname=v4l-utils
|
2013-01-08 21:19:14 +00:00
|
|
|
version=0.8.9
|
2013-04-14 14:51:01 +00:00
|
|
|
revision=2
|
2013-01-08 09:10:40 +00:00
|
|
|
makedepends="which libjpeg-turbo-devel libsysfs-devel qt-devel libstdc++-devel"
|
2011-08-25 08:48:36 +00:00
|
|
|
short_desc="Userspace tools and libraries for Video 4 Linux"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://freshmeat.net/projects/libv4l"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
2012-07-09 21:40:55 +00:00
|
|
|
distfiles="http://linuxtv.org/downloads/$pkgname/$pkgname-$version.tar.bz2"
|
2013-01-08 21:19:14 +00:00
|
|
|
checksum=3e5511c252b3c320d0b03418f7ee19b42d00ed0871c6b525779007416e46d08e
|
2011-08-25 08:48:36 +00:00
|
|
|
|
2012-07-09 21:40:55 +00:00
|
|
|
do_build() {
|
2011-08-25 08:48:36 +00:00
|
|
|
sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules
|
|
|
|
make PREFIX=/usr ${makejobs}
|
|
|
|
}
|
|
|
|
|
2012-07-09 21:40:55 +00:00
|
|
|
do_install() {
|
2011-08-25 08:48:36 +00:00
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
rm -f ${DESTDIR}/usr/bin/ivtv-ctl
|
2011-10-08 06:15:21 +00:00
|
|
|
chmod 0755 ${DESTDIR}/usr/lib/libv4l
|
2012-07-09 21:40:55 +00:00
|
|
|
|
|
|
|
vmkdir usr/lib
|
2013-04-15 22:39:43 +00:00
|
|
|
mv ${DESTDIR}/lib/* ${DESTDIR}/usr/lib
|
2011-08-25 08:48:36 +00:00
|
|
|
}
|
2013-04-14 14:51:01 +00:00
|
|
|
|
|
|
|
v4l-utils-devel_package() {
|
|
|
|
depends="libjpeg-turbo-devel libsysfs-devel v4l-utils>=${version}"
|
|
|
|
short_desc="${short_desc} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
qv4l2_package() {
|
|
|
|
short_desc="QT v4l2 control panel application"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/qv4l2
|
|
|
|
vmove usr/share/applications
|
|
|
|
vmove usr/share/icons
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
v4l-utils_package() {
|
|
|
|
depends="sysfsutils"
|
|
|
|
conf_files="/etc/rc_maps.cfg"
|
|
|
|
pkg_install() {
|
|
|
|
vmove etc
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|