From 7bd84681e169355ab0dd138644bb2fd618a50b51 Mon Sep 17 00:00:00 2001 From: Ion-Mihai Tetcu Date: Mon, 1 Jan 2007 21:07:25 +0000 Subject: [PATCH] This software converts a .TiVo file (produced by the TiVoToGo functionality on recent TiVo software releases) to a normal MPEG file. This has the same functionality as using TiVo's supplied DirectShow DLL on Windows with a tool such as DirectShowDump, but is portable to different architectures and operating systems, and runs on the command line using files or pipes. The conversion still requires the valid MAK of the TiVo which recorded the file, so it cannot be used to circumvent their protection, simply to provide the same level of access as is already available on Windows. WWW: http://tivodecode.sourceforge.net/ PR: ports/107409 Submitted by: Yi-Hsuan Hsin --- multimedia/Makefile | 1 + multimedia/tivodecode/Makefile | 35 +++++++++++++++++++ multimedia/tivodecode/distinfo | 3 ++ .../tivodecode/files/extra-patch-tivo-parse.c | 10 ++++++ multimedia/tivodecode/pkg-descr | 10 ++++++ multimedia/tivodecode/pkg-plist | 4 +++ 6 files changed, 63 insertions(+) create mode 100644 multimedia/tivodecode/Makefile create mode 100644 multimedia/tivodecode/distinfo create mode 100644 multimedia/tivodecode/files/extra-patch-tivo-parse.c create mode 100644 multimedia/tivodecode/pkg-descr create mode 100644 multimedia/tivodecode/pkg-plist diff --git a/multimedia/Makefile b/multimedia/Makefile index 7f3a28733379..f152e873b9b4 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -211,6 +211,7 @@ SUBDIR += subtitleripper SUBDIR += subtools SUBDIR += tcmplex-panteltje + SUBDIR += tivodecode SUBDIR += tkxanim SUBDIR += tosvcd SUBDIR += totem diff --git a/multimedia/tivodecode/Makefile b/multimedia/tivodecode/Makefile new file mode 100644 index 000000000000..a046f2eadba1 --- /dev/null +++ b/multimedia/tivodecode/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: tivodecode +# Date created: 2007-01-01 +# Whom: Yi-Hsuan Hsin +# +# $FreeBSD$ +# + +PORTNAME= tivodecode +DISTVERSION= 0.1.4 +CATEGORIES= multimedia +MASTER_SITES= SF + +MAINTAINER= mhsin@mhsin.org +COMMENT= Converts .TiVo files to normal MPEG files + +USE_GMAKE= yes + +.include + +.if ${OSVERSION} < 500000 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-tivo-parse.c +.endif + +post-patch: + ${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS+=/' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/objects.dir/tivodecode ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include diff --git a/multimedia/tivodecode/distinfo b/multimedia/tivodecode/distinfo new file mode 100644 index 000000000000..6f333568aa79 --- /dev/null +++ b/multimedia/tivodecode/distinfo @@ -0,0 +1,3 @@ +MD5 (tivodecode-0.1.4.tar.gz) = b0131ce1de4f2c2057f31a29f7f13c45 +SHA256 (tivodecode-0.1.4.tar.gz) = b48855ab01f6bb75d77036f08b9774cc60564af68493abcd726023db03381037 +SIZE (tivodecode-0.1.4.tar.gz) = 25456 diff --git a/multimedia/tivodecode/files/extra-patch-tivo-parse.c b/multimedia/tivodecode/files/extra-patch-tivo-parse.c new file mode 100644 index 000000000000..c831be3be48d --- /dev/null +++ b/multimedia/tivodecode/files/extra-patch-tivo-parse.c @@ -0,0 +1,10 @@ +--- tivo-parse.c.orig Tue Jan 2 02:30:58 2007 ++++ tivo-parse.c Tue Jan 2 02:31:12 2007 +@@ -8,6 +8,7 @@ + #ifdef WIN32 + # include + #else ++# include + # include + #endif + #include "sha1.h" diff --git a/multimedia/tivodecode/pkg-descr b/multimedia/tivodecode/pkg-descr new file mode 100644 index 000000000000..b95a6636d114 --- /dev/null +++ b/multimedia/tivodecode/pkg-descr @@ -0,0 +1,10 @@ +This software converts a .TiVo file (produced by the TiVoToGo functionality +on recent TiVo software releases) to a normal MPEG file. This has the same +functionality as using TiVo's supplied DirectShow DLL on Windows with a tool +such as DirectShowDump, but is portable to different architectures and +operating systems, and runs on the command line using files or pipes. The +conversion still requires the valid MAK of the TiVo which recorded the file, +so it cannot be used to circumvent their protection, simply to provide the +same level of access as is already available on Windows. + +WWW: http://tivodecode.sourceforge.net/ diff --git a/multimedia/tivodecode/pkg-plist b/multimedia/tivodecode/pkg-plist new file mode 100644 index 000000000000..e165bd563698 --- /dev/null +++ b/multimedia/tivodecode/pkg-plist @@ -0,0 +1,4 @@ +bin/tivodecode +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%%