# (c) 2007 Michael Stapelberg, Distributed under GPLv2 # $Header: $ inherit eutils DESCRIPTION="landvb records and streams DVB to the local area network" HOMEPAGE="http://michael.stapelberg.de/landvb.php" SRC_URI="http://michael.stapelberg.de/landvb/${P}-src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="mysql debug dontoptimize" DEPEND="mysql? ( >=virtual/mysql-4.1 ) >=media-tv/linuxtv-dvb-headers-3.1" RDEPEND="${DEPEND}" src_compile() { local myconf="" use !mysql && myconf="${myconf} --disable-mysql-epg" use debug && myconf="${myconf} --enable-debug" use dontoptimize && myconf="${myconf} --dont-optimize" cd ${WORKDIR}/landvb/landvb # econf uses far too much options that are not known/needed for # the makefile, so configure is much more straight-forward here ./configure ${myconf} || die "econf failed" emake || die "emake failed" cd ${WORKDIR}/landvb/vm2edl emake || die "emake failed" } src_install() { cd ${WORKDIR}/landvb/landvb emake DESTDIR="${D}" install || die "emake install failed" cd ${WORKDIR}/landvb/vm2edl emake DESTDIR="${D}" install || die "emake install failed" }