diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2003-06-18 12:02:21 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2003-06-18 12:02:21 +0000 |
commit | 951b712f31eeee53614db9bae4d7a18065fec1b9 (patch) | |
tree | 8d2980cb3dab75b720bb451c0efa45505768cb2c /media-tv/xawtv/xawtv-3.86-r1.ebuild | |
parent | moved to media-tv (diff) | |
download | gentoo-2-951b712f31eeee53614db9bae4d7a18065fec1b9.tar.gz gentoo-2-951b712f31eeee53614db9bae4d7a18065fec1b9.tar.bz2 gentoo-2-951b712f31eeee53614db9bae4d7a18065fec1b9.zip |
moved to media-tv
Diffstat (limited to 'media-tv/xawtv/xawtv-3.86-r1.ebuild')
-rw-r--r-- | media-tv/xawtv/xawtv-3.86-r1.ebuild | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/media-tv/xawtv/xawtv-3.86-r1.ebuild b/media-tv/xawtv/xawtv-3.86-r1.ebuild new file mode 100644 index 000000000000..74f83c59bf96 --- /dev/null +++ b/media-tv/xawtv/xawtv-3.86-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/xawtv-3.86-r1.ebuild,v 1.1 2003/06/18 12:00:02 seemant Exp $ + +inherit virtualx + +IUSE="aalib motif alsa opengl nls quicktime" + +MY_PATCH="xaw-deinterlace-3.76-0.1.1.diff.bz2" +S=${WORKDIR}/${P} +MY_FONT=tv-fonts-1.0 +DESCRIPTION="TV application for the bttv driver" +HOMEPAGE="http://bytesex.org/xawtv/" +SRC_URI="http://bytesex.org/xawtv/${PN}_${PV}.tar.gz + http://bytesex.org/xawtv/${MY_FONT}.tar.bz2 + mirror://gentoo/${MY_PATCH}" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ~ppc" + +DEPEND=">=sys-apps/sed-4.0.5 + >=sys-libs/ncurses-5.1 + >=media-libs/jpeg-6b + media-libs/libpng + media-libs/zvbi + virtual/x11 + alsa? ( media-libs/alsa-lib ) + aalib? ( media-libs/aalib ) + motif? ( virtual/motif + app-text/recode ) + opengl? ( virtual/opengl ) + quicktime? ( media-libs/libquicktime )" + +src_compile() { + local myconf + use motif \ + && myconf="--enable-motif" \ + || myconf="--disable-motif" + + use aalib \ + && myconf="${myconf} --enable-aa" \ + || myconf="${myconf} --disable-aa" + + use quicktime \ + && myconf="${myconf} --enable-quicktime" \ + || myconf="${myconf} --disable-quicktime" + + use alsa \ + && myconf="${myconf} --enable-alsa" \ + || myconf="${myconf} --disable-alsa" + + + use opengl \ + && myconf="${myconf} --enable-gl" \ + || myconf="${myconf} --disable-gl" + + use mmx || \ + sed -i "s:#define MMX::" libng/plugins/linear_blend.c + + econf \ + --with-x \ + --enable-xfree-ext \ + --enable-xvideo \ + --enable-zvbi \ + ${myconf} || die "xawtv failed" + + make || die + + cd ${WORKDIR}/${MY_FONT} + Xmake || die "tvfonts failed" +} + +src_install() { + cd ${S} + einstall \ + libdir=${D}/usr/lib/xawtv \ + resdir=${D}/etc/X11 || die + + dodoc COPYING Changes README* TODO + + if [ -d /home/httpd ] + then + exeinto /home/httpd/cgi-bin + doexe scripts/webcam.cgi + dodoc ${FILESDIR}/webcamrc + fi + + if [ -z "`use nls`" ] + then + rm -f ${D}/usr/share/man/fr + rm -f ${D}/usr/share/man/es + fi + + # The makefile seems to be fubar'd for some data + dodir /usr/share/${PN} + mv ${D}/usr/share/*.list ${D}/usr/share/${PN} + mv ${D}/usr/share/Index* ${D}/usr/share/${PN} + + cd ${WORKDIR}/${MY_FONT} + insinto /usr/X11R6/lib/X11/fonts/xawtv + doins *.gz fonts.alias +} + +pkg_postinst() { + + ebegin "installing teletype fonts into /usr/X11R6/lib/X11/fonts/xawtv" + cd /usr/X11R6/lib/X11/fonts/xawtv + mkfontdir + eend +} |