# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-tv/ivtv/ivtv-0.8.1.ebuild,v 1.1 2006/11/20 04:44:34 beandog Exp $ inherit eutils linux-mod DESCRIPTION="ivtv driver for Hauppauge PVR PCI cards" HOMEPAGE="http://www.ivtvdriver.org" SRC_URI="http://dl.ivtvdriver.org/ivtv/archive/0.8.x/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" RDEPEND="sys-apps/hotplug" DEPEND="app-arch/unzip" PDEPEND="media-tv/pvr-firmware" MODULE_NAMES="ivtv(extra:${S}/driver) \ saa717x(extra:${S}/i2c-drivers)" BUILD_TARGETS="all" CONFIG_CHECK="EXPERIMENTAL KMOD VIDEO_DEV I2C VIDEO_V4L1_COMPAT VIDEO_V4L2 FW_LOADER" CONFIG_CHECK="${CONFIG_CHECK} VIDEO_WM8775 VIDEO_MSP3400 VIDEO_CX25840 VIDEO_TUNER" CONFIG_CHECK="${CONFIG_CHECK} VIDEO_SAA711X VIDEO_CX2341X VIDEO_SAA7127 VIDEO_TVEEPROM" #CONFIG_CHECK="${CONFIG_CHECK} VIDEO_UPD64083" pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6 18; then die "This only works on 2.6.18 kernels" fi linux_chkconfig_present FB && \ MODULE_NAMES="${MODULE_NAMES} ivtv-fb(extra:${S}/driver)" BUILD_PARAMS="KDIR=${KV_DIR}" } src_compile() { cd "${S}/driver" linux-mod_src_compile || die "failed to build driver" cd "${S}/utils" emake INCDIR="${KV_DIR}/include" || die "failed to build utils " } src_install() { cd "${S}/utils" make DESTDIR="${D}" PREFIX="/usr" install || die "failed to install utils" cd "${S}" dodoc README doc/* utils/README.X11 cd "${S}/driver" linux-mod_src_install || die "failed to install modules" # Add the aliases insinto /etc/modules.d newins "${FILESDIR}"/ivtv ivtv }