pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/tvtime tvtime is a high quality television ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d6490f50f741
branches:  trunk
changeset: 547337:d6490f50f741
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Mon Sep 15 13:15:46 2008 +0000

description:
tvtime is a high quality television application for use with video capture
cards. tvtime processes the input from a capture card and displays it on a
computer monitor or projector.

diffstat:

 multimedia/tvtime/DESCR            |    3 +
 multimedia/tvtime/Makefile         |   36 ++++++++++++
 multimedia/tvtime/PLIST            |   47 +++++++++++++++
 multimedia/tvtime/distinfo         |   15 +++++
 multimedia/tvtime/patches/patch-aa |  111 +++++++++++++++++++++++++++++++++++++
 multimedia/tvtime/patches/patch-ab |   14 ++++
 multimedia/tvtime/patches/patch-ac |   26 ++++++++
 multimedia/tvtime/patches/patch-ad |   20 ++++++
 multimedia/tvtime/patches/patch-ae |   13 ++++
 multimedia/tvtime/patches/patch-af |   31 ++++++++++
 multimedia/tvtime/patches/patch-ag |   16 +++++
 multimedia/tvtime/patches/patch-ah |   16 +++++
 multimedia/tvtime/patches/patch-ai |   46 +++++++++++++++
 multimedia/tvtime/patches/patch-aj |   29 +++++++++
 14 files changed, 423 insertions(+), 0 deletions(-)

diffs (truncated from 479 to 300 lines):

diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/DESCR   Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,3 @@
+tvtime is a high quality television application for use with video capture
+cards. tvtime processes the input from a capture card and displays it on a
+computer monitor or projector.
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/Makefile        Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+
+DISTNAME=      tvtime-1.0.1
+CATEGORIES=    multimedia x11
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tvtime/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://tvtime.sourceforge.net/
+COMMENT=       High quality television application
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+GNU_CONFIGURE=         yes
+USE_LANGUAGES=         c c++
+USE_LIBTOOL=           yes
+USE_TOOLS+=            msgfmt aclocal automake autoconf
+
+pre-configure:
+       (cd ${WRKSRC} && autoreconf -vif)
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXtst/buildlink3.mk"
+.include "../../x11/libXv/buildlink3.mk"
+.include "../../x11/libXxf86vm/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/PLIST   Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,47 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+bin/tvtime
+bin/tvtime-command
+bin/tvtime-configure
+bin/tvtime-scanner
+@comment etc/tvtime/tvtime.xml
+man/de/man1/tvtime-command.1
+man/de/man1/tvtime-configure.1
+man/de/man1/tvtime-scanner.1
+man/de/man1/tvtime.1
+man/de/man5/stationlist.xml.5
+man/de/man5/tvtime.xml.5
+man/es/man1/tvtime-command.1
+man/es/man1/tvtime-configure.1
+man/es/man1/tvtime-scanner.1
+man/es/man1/tvtime.1
+man/es/man5/stationlist.xml.5
+man/es/man5/tvtime.xml.5
+man/man1/tvtime-command.1
+man/man1/tvtime-configure.1
+man/man1/tvtime-scanner.1
+man/man1/tvtime.1
+man/man5/stationlist.xml.5
+man/man5/tvtime.xml.5
+share/applications/net-tvtime.desktop
+share/icons/hicolor/16x16/apps/tvtime.png
+share/icons/hicolor/32x32/apps/tvtime.png
+share/icons/hicolor/48x48/apps/tvtime.png
+share/locale/cs/LC_MESSAGES/tvtime.mo
+share/locale/de/LC_MESSAGES/tvtime.mo
+share/locale/es/LC_MESSAGES/tvtime.mo
+share/locale/fi/LC_MESSAGES/tvtime.mo
+share/locale/hu/LC_MESSAGES/tvtime.mo
+share/locale/pl/LC_MESSAGES/tvtime.mo
+share/locale/pt/LC_MESSAGES/tvtime.mo
+share/locale/sv/LC_MESSAGES/tvtime.mo
+share/pixmaps/tvtime.png
+share/pixmaps/tvtime.xpm
+share/tvtime/FreeMonoBold.ttf
+share/tvtime/filmstrip_0000.png
+share/tvtime/filmstrip_0001.png
+share/tvtime/filmstrip_0002.png
+share/tvtime/filmstrip_0003.png
+share/tvtime/filmstrip_0004.png
+share/tvtime/infoicon_0000.png
+share/tvtime/tvtimeSansBold.ttf
+@dirrm share/tvtime
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/distinfo        Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+
+SHA1 (tvtime-1.0.1.tar.gz) = 0f5785803049877d35d4648abb3bb182799fa34c
+RMD160 (tvtime-1.0.1.tar.gz) = 854daa7dabc8b17c09acac362e8d7eb2ea11a977
+Size (tvtime-1.0.1.tar.gz) = 1570194 bytes
+SHA1 (patch-aa) = dd2f2dbda25704ed249f8da8c2d6e5832d09826e
+SHA1 (patch-ab) = 94adf60aa7ebc1eb20934542fc6a0a6aadcb4caa
+SHA1 (patch-ac) = 817366537bab0364e7fa994b96f6591b8208f1ce
+SHA1 (patch-ad) = f1e8bc7deb6638676ff24ad9ab85ff9e2749adbc
+SHA1 (patch-ae) = 8abb4a7cc0cbaa41da060c89d3c230b1b0c2a005
+SHA1 (patch-af) = 4aef2ec42fe627b108e5565db5337c4f01e99bb1
+SHA1 (patch-ag) = 1872b404615f54736b5cc143fb4f783d3f2e6709
+SHA1 (patch-ah) = eba4315dc77956fcbe648c0d3b2ee1c6e9046334
+SHA1 (patch-ai) = 3b8519579d1afe2f73ca70a30a640c43a27f3c2a
+SHA1 (patch-aj) = 4200e919df91d2a29e577459a9056203b2074254
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/patches/patch-aa        Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,111 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+
+--- src/rtctimer.c.orig        2003-10-27 09:49:39.000000000 -0500
++++ src/rtctimer.c
+@@ -27,7 +27,9 @@
+ #include <fcntl.h>
+ #include <math.h>
+ #include <sys/ioctl.h>
++#ifdef __linux__
+ #include <linux/rtc.h>
++#endif
+ #include "rtctimer.h"
+ 
+ struct rtctimer_s
+@@ -41,6 +43,7 @@ struct rtctimer_s
+ 
+ rtctimer_t *rtctimer_new( int verbose )
+ {
++#ifdef __linux__
+     rtctimer_t *rtctimer = malloc( sizeof( rtctimer_t ) );
+     if( !rtctimer ) return 0;
+ 
+@@ -74,17 +77,23 @@ rtctimer_t *rtctimer_new( int verbose )
+     rtctimer->current_hz = 0;
+     rtctimer->usecs = 0;
+     return rtctimer;
++#else
++    return NULL;
++#endif
+ }
+ 
+ void rtctimer_delete( rtctimer_t *rtctimer )
+ {
++#ifdef __linux__
+     rtctimer_stop_clock( rtctimer );
+     close( rtctimer->rtc_fd );
+     free( rtctimer );
++#endif
+ }
+ 
+ int rtctimer_next_tick( rtctimer_t *rtctimer )
+ {
++#ifdef __linux__
+     unsigned long rtc_data;
+     struct pollfd pfd;
+     pfd.fd = rtctimer->rtc_fd;
+@@ -108,11 +117,13 @@ again:
+     }
+ 
+     read( rtctimer->rtc_fd, &rtc_data, sizeof( rtc_data ) );
++#endif
+     return 1;
+ }
+ 
+ int rtctimer_set_interval( rtctimer_t *rtctimer, int hz )
+ {
++#ifdef __linux__
+     int restart;
+ 
+     if( hz == rtctimer->current_hz ) {
+@@ -136,11 +147,13 @@ int rtctimer_set_interval( rtctimer_t *r
+         rtctimer_start_clock( rtctimer );
+     }
+ 
++#endif
+     return 1;
+ }
+ 
+ int rtctimer_start_clock( rtctimer_t *rtctimer )
+ {
++#ifdef __linux__
+     if( !rtctimer->rtc_running ) {
+         if( ioctl( rtctimer->rtc_fd, RTC_PIE_ON, 0 ) < 0 ) {
+             if( rtctimer->verbose ) {
+@@ -152,10 +165,12 @@ int rtctimer_start_clock( rtctimer_t *rt
+         rtctimer->rtc_running = 1;
+     }
+     return rtctimer->rtc_running;
++#endif
+ }
+ 
+ int rtctimer_stop_clock( rtctimer_t *rtctimer )
+ {
++#ifdef __linux__
+     int was_running = rtctimer->rtc_running;
+ 
+     if( rtctimer->rtc_running ) {
+@@ -170,16 +185,23 @@ int rtctimer_stop_clock( rtctimer_t *rtc
+     }
+ 
+     return was_running;
++#else
++    return 0;
++#endif
+ }
+ 
+ int rtctimer_get_resolution( rtctimer_t *rtctimer )
+ {
++#ifdef __linux__
+     return rtctimer->current_hz;
++#endif
+ }
+ 
+ int rtctimer_get_usecs( rtctimer_t *rtctimer )
+ {
++#ifdef __linux__
+     return rtctimer->usecs;
++#endif
+ }
+ 
+ int set_realtime_priority( int max )
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/patches/patch-ab        Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+
+--- src/videodev.h.orig        2003-07-15 18:46:18.000000000 -0400
++++ src/videodev.h
+@@ -1,7 +1,9 @@
+ #ifndef __LINUX_VIDEODEV_H
+ #define __LINUX_VIDEODEV_H
+ 
++#ifdef __linux__
+ #include <linux/types.h>
++#endif
+ 
+ #define VID_TYPE_CAPTURE      1       /* Can capture */
+ #define VID_TYPE_TUNER                2       /* Can tune */
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/patches/patch-ac        Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+
+--- src/videoinput.c.orig      2005-09-07 23:13:37.000000000 -0400
++++ src/videoinput.c
+@@ -35,8 +35,13 @@
+ #ifdef HAVE_CONFIG_H
+ # include "config.h"
+ #endif
++#ifdef __NetBSD__
++#include <sys/videoio.h>
++#include "videodev.h"
++#else
+ #include "videodev.h"
+ #include "videodev2.h"
++#endif
+ #include "videoinput.h"
+ #include "mixer.h"
+ 
+@@ -377,6 +382,7 @@ uint8_t *videoinput_next_frame( videoinp
+         wait_for_frame_v4l2( vidin );
+  
+         cur_buf.type = vidin->capbuffers[ 0 ].vidbuf.type;
++      cur_buf.memory = vidin->capbuffers[ 0 ].vidbuf.memory;
+         if( ioctl( vidin->grab_fd, VIDIOC_DQBUF, &cur_buf ) < 0 ) {
+             /* some drivers return EIO when there is no signal */
+             if( errno != EIO ) {
diff -r f7dfeca5bcee -r d6490f50f741 multimedia/tvtime/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/tvtime/patches/patch-ad        Mon Sep 15 13:15:46 2008 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ad,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $
+
+--- src/xvoutput.c.orig        2005-08-14 13:35:50.000000000 -0400
++++ src/xvoutput.c
+@@ -181,6 +181,7 @@ static void *create_shm( int size )
+         return 0;
+     }
+ 
++#ifdef SHM_INFO
+     maxid = shmctl( 0, SHM_INFO, &shm_info );
+     if( maxid < 0 ) {
+         fprintf( stderr, "\n"
+@@ -189,6 +190,7 @@ static void *create_shm( int size )
+           "    tvtime.\n\n" );
+         return 0;
+     }



Home | Main Index | Thread Index | Old Index