diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2008-09-15 13:15:46 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2008-09-15 13:15:46 +0000 |
commit | 3c0cb6bcb8f55ba5fc027be03619ecee8f1d39f1 (patch) | |
tree | a708a8e3bbd295dd60c9b11f5bd47d9e037554e9 | |
parent | 06ddbf13fbfc68ff39d627ac41e0f9337d8a3e1b (diff) | |
download | pkgsrc-3c0cb6bcb8f55ba5fc027be03619ecee8f1d39f1.tar.gz |
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.
-rw-r--r-- | multimedia/tvtime/DESCR | 3 | ||||
-rw-r--r-- | multimedia/tvtime/Makefile | 36 | ||||
-rw-r--r-- | multimedia/tvtime/PLIST | 47 | ||||
-rw-r--r-- | multimedia/tvtime/distinfo | 15 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-aa | 111 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ab | 14 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ac | 26 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ad | 20 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ae | 13 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-af | 31 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ag | 16 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ah | 16 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-ai | 46 | ||||
-rw-r--r-- | multimedia/tvtime/patches/patch-aj | 29 |
14 files changed, 423 insertions, 0 deletions
diff --git a/multimedia/tvtime/DESCR b/multimedia/tvtime/DESCR new file mode 100644 index 00000000000..e59b65d65f9 --- /dev/null +++ b/multimedia/tvtime/DESCR @@ -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 --git a/multimedia/tvtime/Makefile b/multimedia/tvtime/Makefile new file mode 100644 index 00000000000..a232b985983 --- /dev/null +++ b/multimedia/tvtime/Makefile @@ -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 +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 --git a/multimedia/tvtime/PLIST b/multimedia/tvtime/PLIST new file mode 100644 index 00000000000..e80abe8e246 --- /dev/null +++ b/multimedia/tvtime/PLIST @@ -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 --git a/multimedia/tvtime/distinfo b/multimedia/tvtime/distinfo new file mode 100644 index 00000000000..9491072884d --- /dev/null +++ b/multimedia/tvtime/distinfo @@ -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 --git a/multimedia/tvtime/patches/patch-aa b/multimedia/tvtime/patches/patch-aa new file mode 100644 index 00000000000..08d919c4559 --- /dev/null +++ b/multimedia/tvtime/patches/patch-aa @@ -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 --git a/multimedia/tvtime/patches/patch-ab b/multimedia/tvtime/patches/patch-ab new file mode 100644 index 00000000000..942aaf7f358 --- /dev/null +++ b/multimedia/tvtime/patches/patch-ab @@ -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 --git a/multimedia/tvtime/patches/patch-ac b/multimedia/tvtime/patches/patch-ac new file mode 100644 index 00000000000..df925a62eec --- /dev/null +++ b/multimedia/tvtime/patches/patch-ac @@ -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 --git a/multimedia/tvtime/patches/patch-ad b/multimedia/tvtime/patches/patch-ad new file mode 100644 index 00000000000..0ff6c356692 --- /dev/null +++ b/multimedia/tvtime/patches/patch-ad @@ -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; + } ++#endif + + shminfo.shmid = shmget( IPC_PRIVATE, size, IPC_CREAT | 0777 ); + if( shminfo.shmid != -1 ) { diff --git a/multimedia/tvtime/patches/patch-ae b/multimedia/tvtime/patches/patch-ae new file mode 100644 index 00000000000..e3a17dfc598 --- /dev/null +++ b/multimedia/tvtime/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $ + +--- plugins/greedyh.asm.orig 2005-08-14 12:16:43.000000000 -0400 ++++ plugins/greedyh.asm +@@ -18,7 +18,7 @@ + + #include "x86-64_macros.inc" + +-void DScalerFilterGreedyH::FUNCT_NAME(TDeinterlaceInfo* pInfo) ++void FUNCT_NAME(TDeinterlaceInfo* pInfo) + { + int64_t i; + bool InfoIsOdd = (pInfo->PictureHistory[0]->Flags & PICTURE_INTERLACED_ODD) ? 1 : 0; diff --git a/multimedia/tvtime/patches/patch-af b/multimedia/tvtime/patches/patch-af new file mode 100644 index 00000000000..539c4d8c778 --- /dev/null +++ b/multimedia/tvtime/patches/patch-af @@ -0,0 +1,31 @@ +$NetBSD: patch-af,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $ + +--- plugins/tomsmocomp.cpp.orig 2004-10-20 13:38:04.000000000 -0400 ++++ plugins/tomsmocomp.cpp +@@ -31,7 +31,7 @@ public: + + #define IS_MMX + #define SSE_TYPE MMX +-#define FUNCT_NAME DScalerFilterTomsMoComp::filterDScaler_MMX ++#define FUNCT_NAME filterDScaler_MMX + #include "tomsmocomp/TomsMoCompAll.inc" + #undef IS_MMX + #undef SSE_TYPE +@@ -39,7 +39,7 @@ public: + + #define IS_3DNOW + #define SSE_TYPE 3DNOW +-#define FUNCT_NAME DScalerFilterTomsMoComp::filterDScaler_3DNOW ++#define FUNCT_NAME filterDScaler_3DNOW + #include "tomsmocomp/TomsMoCompAll.inc" + #undef IS_3DNOW + #undef SSE_TYPE +@@ -47,7 +47,7 @@ public: + + #define IS_SSE + #define SSE_TYPE SSE +-#define FUNCT_NAME DScalerFilterTomsMoComp::filterDScaler_SSE ++#define FUNCT_NAME filterDScaler_SSE + #include "tomsmocomp/TomsMoCompAll.inc" + #undef IS_SSE + #undef SSE_TYPE diff --git a/multimedia/tvtime/patches/patch-ag b/multimedia/tvtime/patches/patch-ag new file mode 100644 index 00000000000..d1f9e09c9dd --- /dev/null +++ b/multimedia/tvtime/patches/patch-ag @@ -0,0 +1,16 @@ +$NetBSD: patch-ag,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $ + +--- plugins/tomsmocomp/TomsMoCompAll2.inc.orig 2004-10-20 11:31:05.000000000 -0400 ++++ plugins/tomsmocomp/TomsMoCompAll2.inc +@@ -5,9 +5,9 @@ + #endif + + #ifdef USE_STRANGE_BOB +-#define SEARCH_EFFORT_FUNC(n) DScalerFilterTomsMoComp::SEFUNC(n##_SB) ++#define SEARCH_EFFORT_FUNC(n) SEFUNC(n##_SB) + #else +-#define SEARCH_EFFORT_FUNC(n) DScalerFilterTomsMoComp::SEFUNC(n) ++#define SEARCH_EFFORT_FUNC(n) SEFUNC(n) + #endif + + int SEARCH_EFFORT_FUNC(0) // we don't try at all ;-) diff --git a/multimedia/tvtime/patches/patch-ah b/multimedia/tvtime/patches/patch-ah new file mode 100644 index 00000000000..debfa1cfe42 --- /dev/null +++ b/multimedia/tvtime/patches/patch-ah @@ -0,0 +1,16 @@ +$NetBSD: patch-ah,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $ + +--- src/tvtime.c.orig 2005-09-07 22:55:54.000000000 -0400 ++++ src/tvtime.c +@@ -28,7 +28,11 @@ + #include <string.h> + #include <locale.h> + #include <stdlib.h> ++#ifdef __NetBSD__ ++#include <sys/ioctl.h> ++#else + #include <termio.h> ++#endif + #include <ctype.h> + #if defined (__SVR4) && defined (__sun) + # include <sys/int_types.h> diff --git a/multimedia/tvtime/patches/patch-ai b/multimedia/tvtime/patches/patch-ai new file mode 100644 index 00000000000..c9285434cef --- /dev/null +++ b/multimedia/tvtime/patches/patch-ai @@ -0,0 +1,46 @@ +$NetBSD: patch-ai,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $ + +--- configure.ac.orig 2005-09-08 00:08:23.000000000 -0400 ++++ configure.ac +@@ -86,6 +86,41 @@ fi + AC_SUBST(XML2_LIBS) + AC_SUBST(XML2_FLAG) + ++dnl --------------------------------------------- ++dnl librt ++dnl --------------------------------------------- ++dnl Test for librt ++AC_CHECK_LIB([rt],[sched_get_priority_max], ++ [AC_DEFINE([HAVE_LIBRT],,[librt]) ++ RT_LIBS="$RT_LIBS -lrt"],, ++ [$RT_LIBS]) ++if test "$HAVE_LIBRT" = "yes" ; then ++ AC_SUBST(RT_LIBS) ++fi ++ ++dnl --------------------------------------------- ++dnl libossaudio ++dnl --------------------------------------------- ++dnl Test for libossaudio ++AC_CHECK_LIB([ossaudio],[_oss_ioctl], ++ [AC_DEFINE([HAVE_LIBOSSAUDIO],,[libossaudio]) ++ OSS_LIBS="$OSS_LIBS -lossaudio"],, ++ [$OSS_LIBS]) ++if test "$HAVE_LIBOSSAUDIO" = "yes" ; then ++ AC_SUBST(OSS_LIBS) ++fi ++ ++dnl --------------------------------------------- ++dnl libintl ++dnl --------------------------------------------- ++dnl Test for libintl ++AC_CHECK_LIB([intl],[gettext], ++ [AC_DEFINE([HAVE_LIBINTL],,[libintl]) ++ INTL_LIBS="$INTL_LIBS -lintl"],, ++ [$INTL_LIBS]) ++if test "$HAVE_LIBINTL" = "yes" ; then ++ AC_SUBST(INTL_LIBS) ++fi + + dnl --------------------------------------------- + dnl check for gtk+-2.0 diff --git a/multimedia/tvtime/patches/patch-aj b/multimedia/tvtime/patches/patch-aj new file mode 100644 index 00000000000..2cc8392fdc1 --- /dev/null +++ b/multimedia/tvtime/patches/patch-aj @@ -0,0 +1,29 @@ +$NetBSD: patch-aj,v 1.1.1.1 2008/09/15 13:15:46 jmcneill Exp $ + +--- src/Makefile.am.orig 2005-02-08 00:00:16.000000000 -0500 ++++ src/Makefile.am +@@ -77,19 +77,20 @@ tvtime_CFLAGS = $(TTF_CFLAGS) $(PNG_CFLA + $(PLUGIN_CFLAGS) $(X11_CFLAGS) $(XML2_FLAG) \ + $(FONT_CFLAGS) $(AM_CFLAGS) + tvtime_LDFLAGS = $(TTF_LIBS) $(ZLIB_LIBS) $(PNG_LIBS) \ +- $(X11_LIBS) $(XML2_LIBS) -lm -lstdc++ ++ $(X11_LIBS) $(XML2_LIBS) $(OSS_LIBS) $(RT_LIBS) \ ++ $(INTL_LIBS) -lm -lstdc++ + + tvtime_command_SOURCES = utils.h utils.c tvtimeconf.h tvtimeconf.c \ + tvtime-command.c + tvtime_command_CFLAGS = $(OPT_CFLAGS) $(XML2_FLAG) $(AM_CFLAGS) +-tvtime_command_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS) ++tvtime_command_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS) $(INTL_LIBS) + tvtime_configure_SOURCES = utils.h utils.c tvtimeconf.h tvtimeconf.c \ + tvtime-configure.c + tvtime_configure_CFLAGS = $(OPT_CFLAGS) $(XML2_FLAG) $(AM_CFLAGS) +-tvtime_configure_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS) ++tvtime_configure_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS) $(INTL_LIBS) + tvtime_scanner_SOURCES = utils.h utils.c videoinput.h videoinput.c \ + tvtimeconf.h tvtimeconf.c station.h station.c tvtime-scanner.c \ + mixer.h mixer.c + tvtime_scanner_CFLAGS = $(OPT_CFLAGS) $(XML2_FLAG) $(AM_CFLAGS) +-tvtime_scanner_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS) ++tvtime_scanner_LDFLAGS = $(ZLIB_LIBS) $(XML2_LIBS) $(INTL_LIBS) $(OSS_LIBS) + |