diff --git a/srcpkgs/v4l-utils-devel b/srcpkgs/v4l-utils-devel new file mode 120000 index 00000000000..a70f3394887 --- /dev/null +++ b/srcpkgs/v4l-utils-devel @@ -0,0 +1 @@ +v4l-utils \ No newline at end of file diff --git a/srcpkgs/v4l-utils/depends b/srcpkgs/v4l-utils/depends new file mode 100644 index 00000000000..cc44b7ef8ad --- /dev/null +++ b/srcpkgs/v4l-utils/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.8.5" +api_depends="${abi_depends}" diff --git a/srcpkgs/v4l-utils/template b/srcpkgs/v4l-utils/template new file mode 100644 index 00000000000..c178c31aec9 --- /dev/null +++ b/srcpkgs/v4l-utils/template @@ -0,0 +1,50 @@ +# Template file for 'v4l-utils' +pkgname=v4l-utils +version=0.8.5 +distfiles="http://linuxtv.org/downloads/$pkgname/$pkgname-$version.tar.bz2" +build_style=custom-install +short_desc="Userspace tools and libraries for Video 4 Linux" +maintainer="Juan RP " +homepage="http://freshmeat.net/projects/libv4l" +license="GPL-2, LGPL-2.1" +checksum=c205848fbaf3489b97519dae04da31be4998bbc170a2ca9791357a8a549e594c +long_desc=" + v4l-utils is a collection of various video4linux (V4L) and DVB utilities. + + libv4l is an accompanying collection of libraries that adds a thin abstraction + layer on top of video4linux2 (V4L2) devices. The purpose of this layer is to + make it easy for application writers to support a wide variety of devices + without having to write separate code for different devices in the same class. + It consists of 3 different libraries. libv4lconvert offers functions to convert + from any (known) pixel format to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420. + + libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent + of the drivers for those devices supporting v4l1 compatibility (which many + v4l2 drivers do not). + + libv4l2 offers the v4l2 API on top of v4l2 devices, while adding support for + the application transparent libv4lconvert conversion where necessary." + +conf_files="/etc/rc_maps.cfg" +subpackages="$pkgname-devel" + +Add_dependency run libgcc +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run jpeg +Add_dependency run sysfsutils + +Add_dependency build jpeg-devel +Add_dependency build libsysfs-devel + +do_build() +{ + sed -i 's|CFLAGS :=|CFLAGS ?=|' Make.rules + make PREFIX=/usr ${makejobs} +} + +do_install() +{ + make PREFIX=/usr DESTDIR=${DESTDIR} install + rm -f ${DESTDIR}/usr/bin/ivtv-ctl +} diff --git a/srcpkgs/v4l-utils/v4l-utils-devel.template b/srcpkgs/v4l-utils/v4l-utils-devel.template new file mode 100644 index 00000000000..e0e6759c055 --- /dev/null +++ b/srcpkgs/v4l-utils/v4l-utils-devel.template @@ -0,0 +1,17 @@ +# Template file for 'libv4l-devel'. +# +short_desc="${short_desc} - development files" +long_desc=" + ${long_desc} + + This package contains development files: headers, static libs, etc." + +Add_dependency run jpeg-devel +Add_dependency run libsysfs-devel +Add_dependency run v4l-utils + +do_install() +{ + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib +} diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index e6fce5b580e..c802c00cd13 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -825,3 +825,6 @@ libwebp.so libwebp libwebp-devel libva-x11.so libva libva-devel libva.so libva libva-devel libva-glx.so libva libva-devel +libv4l2.so v4l-utils v4l-utils-devel +libv4lconvert.so v4l-utils v4l-utils-devel +libv4l1.so v4l-utils v4l-utils-devel