From 297210a167c0de61658bfedb0b0ffa1a72009e52 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Fri, 5 Nov 2010 22:20:47 +0000 Subject: ivtv-ctl was moved to media-tv/v4l-utils wrt #333291 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64) --- media-tv/ivtv-utils/ChangeLog | 8 +- .../ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch | 145 --------------------- .../ivtv-utils/files/ivtv-utils-1.4.0-gentoo.patch | 4 +- media-tv/ivtv-utils/ivtv-utils-1.3.0-r1.ebuild | 114 ---------------- media-tv/ivtv-utils/ivtv-utils-1.3.0-r2.ebuild | 103 --------------- media-tv/ivtv-utils/ivtv-utils-1.4.0-r1.ebuild | 99 -------------- media-tv/ivtv-utils/ivtv-utils-1.4.0-r2.ebuild | 99 ++++++++++++++ 7 files changed, 108 insertions(+), 464 deletions(-) delete mode 100644 media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch delete mode 100644 media-tv/ivtv-utils/ivtv-utils-1.3.0-r1.ebuild delete mode 100644 media-tv/ivtv-utils/ivtv-utils-1.3.0-r2.ebuild delete mode 100644 media-tv/ivtv-utils/ivtv-utils-1.4.0-r1.ebuild create mode 100644 media-tv/ivtv-utils/ivtv-utils-1.4.0-r2.ebuild (limited to 'media-tv/ivtv-utils') diff --git a/media-tv/ivtv-utils/ChangeLog b/media-tv/ivtv-utils/ChangeLog index 48a205e4371c..6ac5e36d49ad 100644 --- a/media-tv/ivtv-utils/ChangeLog +++ b/media-tv/ivtv-utils/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/ivtv-utils # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ChangeLog,v 1.10 2010/06/29 19:32:00 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ChangeLog,v 1.11 2010/11/05 22:20:46 ssuominen Exp $ + +*ivtv-utils-1.4.0-r2 (05 Nov 2010) + + 05 Nov 2010; Samuli Suominen + +ivtv-utils-1.4.0-r2.ebuild, files/ivtv-utils-1.4.0-gentoo.patch: + ivtv-ctl was moved to media-tv/v4l-utils wrt #333291 29 Jun 2010; Kacper Kowalik ivtv-utils-1.4.0-r1.ebuild, +files/ivtv-utils-1.4.0-gentoo.patch: diff --git a/media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch b/media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch deleted file mode 100644 index d5187ce708ae..000000000000 --- a/media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch +++ /dev/null @@ -1,145 +0,0 @@ ---- ivtv-utils-1.3.0/test/Makefile -+++ ivtv-utils-1.3.0/test/Makefile -@@ -1,5 +1,4 @@ - INSTALLDIR = /usr/local/bin --HEADERDIR = /usr/include/linux - - EXES = vbi wss vbi-passthrough vbi-detect ivtv-pcm-tester \ - mpeg-read-test mpeg-freq-test mpeg-read-sleep-test \ ---- ivtv-utils-1.3.0/utils/linux/ivtvfb.h -+++ /dev/null -@@ -1,37 +0,0 @@ --/* -- On Screen Display cx23415 Framebuffer driver -- -- Copyright (C) 2006, 2007 Ian Armstrong -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program; if not, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- */ -- --#ifndef __LINUX_IVTVFB_H__ --#define __LINUX_IVTVFB_H__ -- --#include -- --/* Framebuffer external API */ -- --struct ivtvfb_dma_frame { -- void __user *source; -- unsigned long dest_offset; -- int count; --}; -- --#define IVTVFB_IOC_DMA_FRAME _IOW('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame) --#define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t) -- --#endif ---- ivtv-utils-1.3.0/utils/linux/ivtv.h -+++ /dev/null -@@ -1,67 +0,0 @@ --/* -- Public ivtv API header -- Copyright (C) 2003-2004 Kevin Thayer -- Copyright (C) 2004-2007 Hans Verkuil -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program; if not, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- */ -- --#ifndef _LINUX_IVTV_H --#define _LINUX_IVTV_H -- --#include -- --/* ivtv knows several distinct output modes: MPEG streaming, -- YUV streaming, YUV updates through user DMA and the passthrough -- mode. -- -- In order to clearly tell the driver that we are in user DMA -- YUV mode you need to call IVTV_IOC_DMA_FRAME with y_source == NULL -- first (althrough if you don't then the first time -- DMA_FRAME is called the mode switch is done automatically). -- -- When you close the file handle the user DMA mode is exited again. -- -- While in one mode, you cannot use another mode (EBUSY is returned). -- -- All this means that if you want to change the YUV interlacing -- for the user DMA YUV mode you first need to do call IVTV_IOC_DMA_FRAME -- with y_source == NULL before you can set the correct format using -- VIDIOC_S_FMT. -- -- Eventually all this should be replaced with a proper V4L2 API, -- but for now we have to do it this way. */ -- --struct ivtv_dma_frame { -- enum v4l2_buf_type type; /* V4L2_BUF_TYPE_VIDEO_OUTPUT */ -- __u32 pixelformat; /* 0 == same as destination */ -- void *y_source; /* if NULL and type == V4L2_BUF_TYPE_VIDEO_OUTPUT, -- then just switch to user DMA YUV output mode */ -- void *uv_source; /* Unused for RGB pixelformats */ -- struct v4l2_rect src; -- struct v4l2_rect dst; -- __u32 src_width; -- __u32 src_height; --}; -- --#define IVTV_IOC_DMA_FRAME _IOW ('V', BASE_VIDIOC_PRIVATE+0, struct ivtv_dma_frame) -- --/* These are the VBI types as they appear in the embedded VBI private packets. */ --#define IVTV_SLICED_TYPE_TELETEXT_B (1) --#define IVTV_SLICED_TYPE_CAPTION_525 (4) --#define IVTV_SLICED_TYPE_WSS_625 (5) --#define IVTV_SLICED_TYPE_VPS (7) -- --#endif /* _LINUX_IVTV_H */ ---- ivtv-utils-1.3.0/utils/Makefile -+++ ivtv-utils-1.3.0/utils/Makefile -@@ -1,6 +1,5 @@ - PREFIX = /usr/local - BINDIR = $(PREFIX)/bin --HDRDIR = /usr/include/linux - - X86 := $(shell if echo - | $(CC) -E -dM - | egrep -e '__i386__|__x86_64__' >/dev/null; \ - then echo y; else echo n; fi) -@@ -14,8 +13,6 @@ - BIN := $(EXES) ivtv-tune/ivtv-tune cx25840ctl/cx25840ctl - - --HEADERS := linux/ivtv.h linux/ivtvfb.h -- - CFLAGS = -D_GNU_SOURCE -O2 -Wall -g -I. - CXXFLAGS = $(CFLAGS) - -@@ -42,8 +39,6 @@ - $(CC) -lpthread -o $@ $^ - - install: all -- install -d $(DESTDIR)/$(HDRDIR) -- install -m 0644 $(HEADERS) $(DESTDIR)/$(HDRDIR) - install -d $(DESTDIR)/$(BINDIR) - install -m 0755 $(BIN) $(DESTDIR)/$(BINDIR) - diff --git a/media-tv/ivtv-utils/files/ivtv-utils-1.4.0-gentoo.patch b/media-tv/ivtv-utils/files/ivtv-utils-1.4.0-gentoo.patch index 512e3c4ff9f0..4b75d177e391 100644 --- a/media-tv/ivtv-utils/files/ivtv-utils-1.4.0-gentoo.patch +++ b/media-tv/ivtv-utils/files/ivtv-utils-1.4.0-gentoo.patch @@ -3,7 +3,7 @@ Fixing multiple QA issues * fix linking order * make job server for install phase -Don't install v4l2-ctl (bug #278255) +Don't install ivtv-ctl (bug #333291) and v4l2-ctl (bug #278255) Don't install duplicate kernel headers (bug #244584) https://bugs.gentoo.org/show_bug.cgi?id=321303 @@ -37,7 +37,7 @@ Patch written by Kacper Kowalik endif -EXES := v4l2-ctl ivtv-ctl ivtv-radio $(X86_EXES) -+EXES := ivtv-ctl ivtv-radio $(X86_EXES) ++EXES := ivtv-radio $(X86_EXES) BIN := $(EXES) ivtv-tune/ivtv-tune cx25840ctl/cx25840ctl diff --git a/media-tv/ivtv-utils/ivtv-utils-1.3.0-r1.ebuild b/media-tv/ivtv-utils/ivtv-utils-1.3.0-r1.ebuild deleted file mode 100644 index edb813773646..000000000000 --- a/media-tv/ivtv-utils/ivtv-utils-1.3.0-r1.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ivtv-utils-1.3.0-r1.ebuild,v 1.4 2009/08/31 22:19:10 ikelos Exp $ - -inherit eutils linux-mod - -DESCRIPTION="IVTV utilities for Hauppauge PVR PCI cards" -HOMEPAGE="http://www.ivtvdriver.org" -SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/1.3.x/${P}.tar.gz" -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="amd64 ppc x86" -IUSE="perl" -RDEPEND=">=sys-fs/udev-103" -DEPEND="app-arch/unzip - >=sys-kernel/linux-headers-2.6.27 - !media-tv/ivtv" -PDEPEND=">=media-tv/ivtv-firmware-20070217 - perl? ( - dev-perl/Video-Frequencies - dev-perl/Video-ivtv - dev-perl/Config-IniFiles - virtual/perl-Getopt-Long - dev-perl/perl-tk )" - -pkg_setup() { - - MODULE_NAMES="saa717x(extra:${S}/i2c-drivers)" - BUILD_TARGETS="all" - CONFIG_CHECK="~EXPERIMENTAL ~KMOD ~HAS_IOMEM ~FW_LOADER ~I2C ~I2C_ALGOBIT - ~VIDEO_DEV ~VIDEO_CAPTURE_DRIVERS ~VIDEO_V4L1 ~VIDEO_V4L2 ~VIDEO_IVTV" - - if ! ( kernel_is ge 2 6 26 ); then - eerror "This package is only for the fully in-kernel" - eerror "IVTV driver shipping with kernel 2.6.26 and higher" - eerror "" - eerror "You will need to either:" - eerror "a) emerge a 2.6.26.x or higher kernel" - eerror "b) emerge media-tv/ivtv" - eerror "" - eerror "See http://ivtvdriver.org/ for more information" - die "This only works on 2.6.26 and newer kernels" - fi - - ewarn "" - ewarn "Make sure that your I2C and V4L kernel drivers are loaded as" - ewarn "modules, and not compiled into the kernel, or IVTV will not" - ewarn "work." - ewarn "" - - linux-mod_pkg_setup - - BUILD_PARAMS="KDIR=${KV_DIR}" -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-2.6.27.patch -} - -src_compile() { - emake || die "failed to build" -} - -src_install() { - make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install" - use perl && dobin utils/perl/*.pl - - cd "${S}" - dodoc README doc/* ChangeLog - use perl && dodoc utils/perl/README.ptune -} - -pkg_postinst() { - elog "" - elog "This version of the IVTV utils supports the following hardware:" - elog "Hauppauge WinTV PVR-250" - elog "Hauppauge WinTV PVR-350" - elog "Hauppauge WinTV PVR-150" - elog "Hauppauge WinTV PVR-500" - elog "AVerMedia M179" - elog "Yuan MPG600/Kuroutoshikou iTVC16-STVLP" - elog "Yuan MPG160/Kuroutoshikou iTVC15-STVLP" - elog "Yuan PG600/DiamondMM PVR-550 (CX Falcon 2)" - elog "Adaptec AVC-2410" - elog "Adaptec AVC-2010" - elog "Nagase Transgear 5000TV" - elog "AOpen VA2000MAX-STN6" - elog "Yuan MPG600GR/Kuroutoshikou CX23416GYC-STVLP" - elog "I/O Data GV-MVP/RX" - elog "I/O Data GV-MVP/RX2E" - elog "Gotview PCI DVD (preliminary support only)" - elog "Gotview PCI DVD2 Deluxe" - elog "Yuan MPC622" - elog "" - ewarn "" - ewarn "IMPORTANT: In case of problems first read this page:" - ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting" - ewarn "" - ewarn "If any of these conditions match your setup, you may want to look at the" - ewarn "README in /usr/share/doc/${PF}/" - ewarn "" - ewarn " - Using MythTV, a PVR-350 and the ivtvfb module" - ewarn " - Using the ivtv X driver and the ivtvfb module" - ewarn " - You want to manually build ivtv against v4l-dvb" - ewarn "" - ewarn "Also, the ivtv package comes with lots of documentation regarding setup," - ewarn "proper use and debugging utilities." - ewarn "They are also located in /usr/share/doc/${PF}/" - ewarn "" - ewarn "For more information, see the IVTV driver homepage at:" - ewarn "http://www.ivtvdriver.org/" -} diff --git a/media-tv/ivtv-utils/ivtv-utils-1.3.0-r2.ebuild b/media-tv/ivtv-utils/ivtv-utils-1.3.0-r2.ebuild deleted file mode 100644 index ea6771a97ca2..000000000000 --- a/media-tv/ivtv-utils/ivtv-utils-1.3.0-r2.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ivtv-utils-1.3.0-r2.ebuild,v 1.1 2010/01/19 05:18:14 cardoe Exp $ - -EAPI=2 - -inherit eutils linux-mod linux-info - -DESCRIPTION="IVTV utilities for Hauppauge PVR PCI cards" -HOMEPAGE="http://www.ivtvdriver.org" -SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/1.3.x/${P}.tar.gz" -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="perl" -RDEPEND=">=sys-fs/udev-103" -DEPEND="app-arch/unzip - =sys-kernel/linux-headers-2.6.26 - !media-tv/ivtv" -PDEPEND=">=media-tv/ivtv-firmware-20070217 - perl? ( - dev-perl/Video-Frequencies - dev-perl/Video-ivtv - dev-perl/Config-IniFiles - virtual/perl-Getopt-Long - dev-perl/perl-tk )" - -pkg_setup() { - linux-info_pkg_setup - - MODULE_NAMES="saa717x(extra:${S}/i2c-drivers)" - BUILD_TARGETS="all" - CONFIG_CHECK="~EXPERIMENTAL ~KMOD ~HAS_IOMEM ~FW_LOADER ~I2C ~I2C_ALGOBIT - ~VIDEO_DEV ~VIDEO_CAPTURE_DRIVERS ~VIDEO_V4L1 ~VIDEO_V4L2 ~VIDEO_IVTV" - - if ! ( kernel_is ge 2 6 26 && kernel_is le 2 6 28 ); then - eerror "This package is only for the fully in-kernel" - eerror "IVTV driver shipping with kernel 2.6.26 - 2.6.28" - eerror "" - eerror "You will need to either:" - eerror "a) emerge a 2.6.26.x - 2.6.28.x kernel" - eerror "b) emerge media-tv/ivtv or media-tv/ivtv-utils for" - eerror "your kernel version" - eerror "" - eerror "See http://ivtvdriver.org/ for more information" - die "This only works on 2.6.26 - 2.6.28 kernels" - fi - - ewarn "" - ewarn "Make sure that your I2C and V4L kernel drivers are loaded as" - ewarn "modules, and not compiled into the kernel, or IVTV will not" - ewarn "work." - ewarn "" - - linux-mod_pkg_setup - - BUILD_PARAMS="KDIR=${KV_DIR}" -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-2.6.27.patch -} - -src_compile() { - emake || die "failed to build" - - linux-mod_src_compile -} - -src_install() { - make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install" - use perl && dobin utils/perl/*.pl - - cd "${S}" - dodoc README doc/* ChangeLog - use perl && dodoc utils/perl/README.ptune - - linux-mod_src_install -} - -pkg_postinst() { - linux-mod_pkg_postinst - - elog "" - elog "This version of the IVTV utils supports hardware listed at:" - elog "http://www.ivtvdriver.org/index.php/Supported_hardware" - ewarn "" - ewarn "IMPORTANT: In case of problems first read the following:" - ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting" - ewarn "/usr/share/doc/${PF}/README.*" - ewarn "" - ewarn " - Using MythTV, a PVR-350 and the ivtvfb module" - ewarn " - Using the ivtv X driver and the ivtvfb module" - ewarn " - You want to manually build ivtv against v4l-dvb" - ewarn "" - ewarn "Also, the ivtv package comes with lots of documentation regarding " - ewarn "setup, proper use and debugging utilities." - ewarn "They are also located in /usr/share/doc/${PF}/" - ewarn "" - elog "For more information, see the IVTV driver homepage at:" - elog "http://www.ivtvdriver.org/" -} diff --git a/media-tv/ivtv-utils/ivtv-utils-1.4.0-r1.ebuild b/media-tv/ivtv-utils/ivtv-utils-1.4.0-r1.ebuild deleted file mode 100644 index fb6f75e04f14..000000000000 --- a/media-tv/ivtv-utils/ivtv-utils-1.4.0-r1.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ivtv-utils-1.4.0-r1.ebuild,v 1.4 2010/06/29 19:32:00 xarthisius Exp $ - -EAPI=2 - -inherit eutils linux-mod linux-info toolchain-funcs - -DESCRIPTION="IVTV utilities for Hauppauge PVR PCI cards" -HOMEPAGE="http://www.ivtvdriver.org" -SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/1.4.x/${P}.tar.gz" -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="perl" -RDEPEND=">=sys-fs/udev-103 - ~media-tv/v4l2-ctl-${PV}" -DEPEND="app-arch/unzip - >=sys-kernel/linux-headers-2.6.29 - !media-tv/ivtv" -PDEPEND=">=media-tv/ivtv-firmware-20070217 - perl? ( - dev-perl/Video-Frequencies - dev-perl/Video-ivtv - dev-perl/Config-IniFiles - virtual/perl-Getopt-Long - dev-perl/perl-tk )" - -pkg_setup() { - linux-info_pkg_setup - - ### Commented out following line because it causes failure and because the module should already be in the kernel - # MODULE_NAMES="saa717x(extra:${S}/i2c-drivers)" - BUILD_TARGETS="all" - CONFIG_CHECK="~EXPERIMENTAL ~MODULES ~HAS_IOMEM ~FW_LOADER ~I2C ~I2C_ALGOBIT - ~VIDEO_DEV ~VIDEO_CAPTURE_DRIVERS ~VIDEO_V4L1 ~VIDEO_V4L2 ~VIDEO_IVTV" - - if ! ( kernel_is ge 2 6 29 ); then - eerror "This package is only for the fully in-kernel" - eerror "IVTV driver shipping with kernel 2.6.29 or newer" - eerror "" - eerror "You will need to either:" - eerror "a) emerge a 2.6.29 or newer kernel" - eerror "b) emerge media-tv/ivtv or media-tv/ivtv-utils for" - eerror "your kernel" - eerror "" - eerror "See http://ivtvdriver.org/ for more information" - die "This only works on 2.6.29 or newer kernels" - fi - - ewarn "Make sure that your I2C and V4L kernel drivers are loaded as" - ewarn "modules, and not compiled into the kernel, or IVTV will not" - ewarn "work." - - linux-mod_pkg_setup - - BUILD_PARAMS="KDIR=${KV_DIR}" -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-gentoo.patch -} - -src_compile() { - tc-export CC CXX - emake || die -} - -src_install() { - emake DESTDIR="${D}" PREFIX="/usr" install || die "failed to install" - dodoc README doc/* ChangeLog || die - if use perl; then - dobin utils/perl/*.pl || die - dodoc utils/perl/README.ptune || die - fi -} - -pkg_postinst() { - linux-mod_pkg_postinst - - elog "" - elog "This version of the IVTV utils supports hardware listed at:" - elog "http://www.ivtvdriver.org/index.php/Supported_hardware" - ewarn "" - ewarn "IMPORTANT: In case of problems first read the following:" - ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting" - ewarn "/usr/share/doc/${PF}/README.*" - ewarn "" - ewarn " - Using MythTV, a PVR-350 and the ivtvfb module" - ewarn " - Using the ivtv X driver and the ivtvfb module" - ewarn " - You want to manually build ivtv against v4l-dvb" - ewarn "" - ewarn "Also, the ivtv package comes with lots of documentation regarding " - ewarn "setup, proper use and debugging utilities." - ewarn "They are also located in /usr/share/doc/${PF}/" - ewarn "" - elog "For more information, see the IVTV driver homepage at:" - elog "http://www.ivtvdriver.org/" -} diff --git a/media-tv/ivtv-utils/ivtv-utils-1.4.0-r2.ebuild b/media-tv/ivtv-utils/ivtv-utils-1.4.0-r2.ebuild new file mode 100644 index 000000000000..2e83594b4c96 --- /dev/null +++ b/media-tv/ivtv-utils/ivtv-utils-1.4.0-r2.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv-utils/ivtv-utils-1.4.0-r2.ebuild,v 1.1 2010/11/05 22:20:46 ssuominen Exp $ + +EAPI=2 + +inherit eutils linux-mod linux-info toolchain-funcs + +DESCRIPTION="IVTV utilities for Hauppauge PVR PCI cards" +HOMEPAGE="http://www.ivtvdriver.org" +SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/1.4.x/${P}.tar.gz" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="perl" +RDEPEND=">=sys-fs/udev-103 + media-tv/v4l-utils" +DEPEND="app-arch/unzip + >=sys-kernel/linux-headers-2.6.29 + !media-tv/ivtv" +PDEPEND=">=media-tv/ivtv-firmware-20070217 + perl? ( + dev-perl/Video-Frequencies + dev-perl/Video-ivtv + dev-perl/Config-IniFiles + virtual/perl-Getopt-Long + dev-perl/perl-tk )" + +pkg_setup() { + linux-info_pkg_setup + + ### Commented out following line because it causes failure and because the module should already be in the kernel + # MODULE_NAMES="saa717x(extra:${S}/i2c-drivers)" + BUILD_TARGETS="all" + CONFIG_CHECK="~EXPERIMENTAL ~MODULES ~HAS_IOMEM ~FW_LOADER ~I2C ~I2C_ALGOBIT + ~VIDEO_DEV ~VIDEO_CAPTURE_DRIVERS ~VIDEO_V4L1 ~VIDEO_V4L2 ~VIDEO_IVTV" + + if ! ( kernel_is ge 2 6 29 ); then + eerror "This package is only for the fully in-kernel" + eerror "IVTV driver shipping with kernel 2.6.29 or newer" + eerror "" + eerror "You will need to either:" + eerror "a) emerge a 2.6.29 or newer kernel" + eerror "b) emerge media-tv/ivtv or media-tv/ivtv-utils for" + eerror "your kernel" + eerror "" + eerror "See http://ivtvdriver.org/ for more information" + die "This only works on 2.6.29 or newer kernels" + fi + + ewarn "Make sure that your I2C and V4L kernel drivers are loaded as" + ewarn "modules, and not compiled into the kernel, or IVTV will not" + ewarn "work." + + linux-mod_pkg_setup + + BUILD_PARAMS="KDIR=${KV_DIR}" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_compile() { + tc-export CC CXX + emake || die +} + +src_install() { + emake DESTDIR="${D}" PREFIX="/usr" install || die "failed to install" + dodoc README doc/* ChangeLog || die + if use perl; then + dobin utils/perl/*.pl || die + dodoc utils/perl/README.ptune || die + fi +} + +pkg_postinst() { + linux-mod_pkg_postinst + + elog "" + elog "This version of the IVTV utils supports hardware listed at:" + elog "http://www.ivtvdriver.org/index.php/Supported_hardware" + ewarn "" + ewarn "IMPORTANT: In case of problems first read the following:" + ewarn "http://www.ivtvdriver.org/index.php/Troubleshooting" + ewarn "/usr/share/doc/${PF}/README.*" + ewarn "" + ewarn " - Using MythTV, a PVR-350 and the ivtvfb module" + ewarn " - Using the ivtv X driver and the ivtvfb module" + ewarn " - You want to manually build ivtv against v4l-dvb" + ewarn "" + ewarn "Also, the ivtv package comes with lots of documentation regarding " + ewarn "setup, proper use and debugging utilities." + ewarn "They are also located in /usr/share/doc/${PF}/" + ewarn "" + elog "For more information, see the IVTV driver homepage at:" + elog "http://www.ivtvdriver.org/" +} -- cgit v1.2.3-65-gdbad