Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

kernellabs version of tvtime

  • Loading branch information...
commit 3ae680b360780c0156439753d9ca198f2e109917 1 parent 7369e64
@wired authored
View
5 media-tv/tvtime/Manifest
@@ -0,0 +1,5 @@
+AUX tvtime-1.0.2-xinerama.patch 1292 RMD160 1c725852d9c692786614b0e3710a5c38682c1f5e SHA1 39c51a9f264111b6ca400778113d008231613551 SHA256 8177203fe7109782e9d20afa66456e4c21fc973d1fafaa160409b9be29570e5b
+AUX tvtime-pic.patch 254 RMD160 31f3fb8937ae15c28ade1f55a1a6947bf31766cf SHA1 3d90369da57861933b7cb99597d85de60416a358 SHA256 db033fc267bf72034f49705680ced9d086b413efc9f947bd94b4e9117f808d41
+DIST tvtime_kernellabs-1.0.2_p20110405.tar.bz2 3800555 RMD160 64d15f09f3ebfe4399115168d355689470a6d03a SHA1 71fddd2624debb719faa3dd03aa827e93d8eb6db SHA256 37f8f87b52519f80e3d49c7a619706da2c45b526f67e13cdda21fbdf17e1c583
+EBUILD tvtime-1.0.2_p20110405.ebuild 2070 RMD160 5831ebf21a09ceb2abf2875408be175da2a26d2c SHA1 7d47c4ace99aff3c9c9314285784fae8d4529c6e SHA256 b1189c16e164625c59f35ee8fe830ac03e8fd8b83da81957e648442c5c3c2476
+MISC metadata.xml 247 RMD160 db24b49a7164924e61359226858b150e441c3623 SHA1 ea9fed4e81caf4eee3f8024c7b80ffd410877c8a SHA256 a059bafdc1c0cc323ed7e5debb814fe0abd4fe68e681ddb0743e7397e8147707
View
32 media-tv/tvtime/files/tvtime-1.0.2-xinerama.patch
@@ -0,0 +1,32 @@
+Index: tvtime-1.0.2/configure.ac
+===================================================================
+--- tvtime-1.0.2.orig/configure.ac
++++ tvtime-1.0.2/configure.ac
+@@ -99,6 +99,8 @@ dnl ------------------------------------
+ dnl check for X11, Xv and XF86VidModeExtension
+ dnl ---------------------------------------------
+ AC_PATH_XTRA
++AC_ARG_WITH([xinerama],
++ [AS_HELP_STRING([--without-xinerama], [Disable Xinerama extension support (default: check)])])
+ if test x"$no_x" != x"yes"; then
+ dnl check for Xshm
+ AC_CHECK_LIB([Xext],[XShmCreateImage],
+@@ -112,11 +114,13 @@ if test x"$no_x" != x"yes"; then
+ X11_LIBS="$X11_LIBS -lXv"],,
+ [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
+
+- dnl check for Xinerama
+- AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
+- [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
+- X11_LIBS="$X11_LIBS -lXinerama"],,
+- [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
++ if test "x$with_xinerama" != "xno"; then
++ dnl check for Xinerama
++ AC_CHECK_LIB([Xinerama],[XineramaQueryScreens],
++ [AC_DEFINE([HAVE_XINERAMA],,[Xinerama support])
++ X11_LIBS="$X11_LIBS -lXinerama"],,
++ [$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS -lXext])
++ fi
+
+ dnl check for XTest
+ AC_CHECK_LIB([Xtst],[XTestFakeKeyEvent],
View
11 media-tv/tvtime/files/tvtime-pic.patch
@@ -0,0 +1,11 @@
+--- tvtime/src/cpu_accel.c
++++ tvtime/src/cpu_accel.c
+@@ -35,7 +35,7 @@
+ int AMD;
+ uint32_t caps;
+
+-#ifndef PIC
++#if !defined(__PIC__) || defined(__x86_64__)
+ #define cpuid(op,eax,ebx,ecx,edx) \
+ __asm__ ("cpuid" \
+ : "=a" (eax), \
View
9 media-tv/tvtime/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>wired@gentoo.org</email>
+<name>Alex Alexander</name>
+</maintainer>
+</pkgmetadata>
View
83 media-tv/tvtime/tvtime-1.0.2_p20110405.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvtime/tvtime-1.0.2-r2.ebuild,v 1.7 2010/12/01 05:10:42 flameeyes Exp $
+
+EAPI=4
+
+inherit eutils autotools
+
+MY_PN="tvtime_kernellabs"
+DESCRIPTION="High quality television application for use with video capture cards"
+HOMEPAGE="http://tvtime.sourceforge.net/"
+SRC_URI="http://linuxized.com/distfiles/${MY_PN}-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls xinerama"
+
+RDEPEND="x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXv
+ x11-libs/libXxf86vm
+ xinerama? ( x11-libs/libXinerama )
+ x11-libs/libXtst
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ >=media-libs/freetype-2
+ >=sys-libs/zlib-1.1.4
+ >=media-libs/libpng-1.2
+ >=dev-libs/libxml2-2.5.11
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ dev-util/pkgconfig"
+
+src_unpack() {
+ default_src_unpack
+ mv tvtime-* ${PF}
+}
+
+src_prepare() {
+ # use 'tvtime' for the application icon see bug #66293
+ sed -i -e "s/tvtime.png/tvtime/" docs/net-tvtime.desktop
+
+ # patch to adapt to PIC or __PIC__ for pic support
+ epatch "${FILESDIR}"/${PN}-pic.patch #74227
+
+ epatch "${FILESDIR}/${PN}-1.0.2-xinerama.patch"
+
+ # Remove linux headers and patch to build with 2.6.18 headers
+ # rm -f "${S}"/src/{videodev.h,videodev2.h}
+
+ # this is broken, but it allows us to install for now
+ sed -i "s:^mkinstalldirs = .*:mkinstalldirs = /usr/bin/install -d:" po/Makefile.in.in ||
+ die "sed failed"
+
+ AT_M4DIR="m4" eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls) \
+ $(use_with xinerama) || die "econf failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dohtml docs/html/*
+ dodoc ChangeLog AUTHORS NEWS README
+}
+
+pkg_postinst() {
+ elog "A default setup for ${PN} has been saved as"
+ elog "/etc/tvtime/tvtime.xml. You may need to modify it"
+ elog "for your needs."
+ elog
+ elog "Detailed information on ${PN} setup can be"
+ elog "found at ${HOMEPAGE}help.html"
+ echo
+}
Please sign in to comment.
Something went wrong with that request. Please try again.