diff options
Diffstat (limited to 'media-tv/xawtv/xawtv-3.95-r1.ebuild')
-rw-r--r-- | media-tv/xawtv/xawtv-3.95-r1.ebuild | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/media-tv/xawtv/xawtv-3.95-r1.ebuild b/media-tv/xawtv/xawtv-3.95-r1.ebuild new file mode 100644 index 000000000000..663d2de3b52e --- /dev/null +++ b/media-tv/xawtv/xawtv-3.95-r1.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/xawtv-3.95-r1.ebuild,v 1.1 2006/02/04 23:58:04 hansmi Exp $ + +inherit eutils font autotools flag-o-matic + +PATCHLEVEL="1" + +IUSE="aalib alsa dv lirc mmx motif nls opengl quicktime X xv zvbi xext" + +MY_FONT=tv-fonts-1.1 +DESCRIPTION="TV application for the bttv driver" +HOMEPAGE="http://bytesex.org/xawtv/" +SRC_URI="http://dl.bytesex.org/releases/xawtv/${P}.tar.gz + X? ( http://dl.bytesex.org/releases/tv-fonts/${MY_FONT}.tar.bz2 ) + mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" + +RDEPEND=">=sys-libs/ncurses-5.1 + >=media-libs/jpeg-6b + media-libs/libpng + X? ( || ( ( + media-libs/fontconfig + x11-libs/libFS + x11-libs/libICE + x11-libs/libXpm + x11-libs/libXmu + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXt + x11-libs/libSM + x11-libs/libXft + x11-libs/libXext + x11-libs/libXrender + ) virtual/x11 ) + xext? ( || ( ( + x11-libs/libXinerama + x11-libs/libXxf86dga + x11-libs/libXrandr + x11-libs/libXxf86vm + ) virtual/x11 ) ) + xv? ( || ( x11-libs/libXv virtual/x11 ) ) + ) + motif? ( x11-libs/openmotif + app-text/recode ) + alsa? ( media-libs/alsa-lib ) + aalib? ( media-libs/aalib ) + dv? ( media-libs/libdv ) + lirc? ( app-misc/lirc ) + opengl? ( virtual/opengl ) + quicktime? ( virtual/quicktime ) + zvbi? ( media-libs/zvbi )" + +DEPEND="${RDEPEND} + X? ( || ( ( + x11-proto/videoproto + x11-proto/xproto + x11-proto/xextproto + ) virtual/x11 ) + xinerama? ( || ( x11-proto/xineramaproto virtual/x11 ) ) + )" + +pkg_setup() { + if use X; then + font_pkg_setup + fi +} + +src_unpack() { + unpack ${A} + if use X; then + cd "${WORKDIR}/${MY_FONT}" + epatch "${WORKDIR}/patches/extra/${MY_FONT}-nox.patch" + fi + cd "${S}" + + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + eautoreconf +} + +src_compile() { + econf \ + $(use_with X x) \ + $(use_enable xext xfree-ext) \ + $(use_enable xv xvideo) \ + $(use_enable dv) \ + $(use_enable mmx) \ + $(use_enable motif) \ + $(use_enable quicktime) \ + $(use_enable alsa) \ + $(use_enable lirc) \ + $(use_enable opengl gl) \ + $(use_enable zvbi) \ + $(use_enable aalib aa) \ + || die " xawtv configure failed" + + emake BINDNOW_FLAGS=$(bindnow-flags) verbose=yes || die "Make failed" + + if use X; then + cd ${WORKDIR}/${MY_FONT} + emake DISPLAY= || die "tvfonts failed" + fi +} + +src_install() { + cd ${S} + make install DESTDIR=${D} resdir=${D}/etc/X11 || die "make install failed" + + # v4lctl is only installed automatically if the X USE flag is enabled + use X || \ + dobin x11/v4lctl + + dodoc Changes README* TODO ${FILESDIR}/webcamrc + docinto cgi-bin + dodoc scripts/webcam.cgi + + use X || \ + rm -f ${D}/usr/share/man/man1/{pia,propwatch}.1 \ + ${D}/usr/share/{man,man/fr,man/es}/man1/xawtv.1 \ + ${D}/usr/share/{man,man/es}/man1/{rootv,xawtv-remote}.1 + + use motif || \ + rm -f ${D}/usr/share/man/man1/{motv,mtt}.1 + + use zvbi || \ + rm -f ${D}/usr/share/man/man1/{alevtd,mtt}.1 \ + ${D}/usr/share/{man,man/es}/man1/scantv.1 + + use nls || \ + rm -f ${D}/usr/share/man/fr \ + ${D}/usr/share/man/es + + # 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} + + if use X; then + cd ${WORKDIR}/${MY_FONT} + insinto /usr/share/fonts/xawtv + doins *.gz fonts.alias + + font_xfont_config + font_xft_config + fi +} + +pkg_postinst() { + if use X; then + ebegin "installing teletype fonts into /usr/share/fonts/xawtv" + cd /usr/share/fonts/xawtv + mkfontdir + eend + fi +} |