Bug 88248 - New Port: multimedia/streamanalyze, a shrink-factor calculator
Summary: New Port: multimedia/streamanalyze, a shrink-factor calculator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jean-Yves Lefort
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-30 18:30 UTC by Heiner
Modified: 2005-11-01 13:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiner 2005-10-30 18:30:14 UTC
StreamAnalyze is a little helper for people using StreamDVD to backup movies.
Giving the video/audio/subpicture tracks you want to save StreamAnalyze will
calculate if the backup would fit on a dvd-r and, if not, prints a shrink 
factor
to reduce the video size.
Before using StreamAnalyze you should call 'lsdvd' or 'tcprobe' to get an 
overview
what's available on the video dvd you want to backup.

WWW: http://www.badabum.de/streamdvd.html

Fix: --Boundary-00=_9+QZDjVS7FypaMU
Content-Type: text/plain;
  charset="iso-8859-1";
  name="streamanalyze.port"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="streamanalyze.port"



--Boundary-00=_9+QZDjVS7FypaMU----KJzk5sWvDG8RDzr6VTQBBr6s2OMiLFfXozK1E0qngbtklOQl
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	streamanalyze
#	streamanalyze/pkg-descr
#	streamanalyze/distinfo
#	streamanalyze/Makefile
#	streamanalyze/files
#	streamanalyze/files/patch-streamanalyze.c
#	streamanalyze/pkg-plist
#
echo c - streamanalyze
mkdir -p streamanalyze > /dev/null 2>&1
echo x - streamanalyze/pkg-descr
sed 's/^X//' >streamanalyze/pkg-descr << 'END-of-streamanalyze/pkg-descr'
XStreamAnalyze is a little helper for people using StreamDVD to backup movies.
XGiving the video/audio/subpicture tracks you want to save StreamAnalyze will
Xcalculate if the backup would fit on a dvd-r and, if not, prints a shrink factor
Xto reduce the video size.
XBefore using StreamAnalyze you should call 'lsdvd' or 'tcprobe' to get an overview
Xwhat's available on the video dvd you want to backup.
X
XWWW: http://www.badabum.de/streamdvd.html
END-of-streamanalyze/pkg-descr
echo x - streamanalyze/distinfo
sed 's/^X//' >streamanalyze/distinfo << 'END-of-streamanalyze/distinfo'
XMD5 (streamanalyze-0.4.tar.gz) = c17b27f0b92c0478e63e067d8f8e359c
XSIZE (streamanalyze-0.4.tar.gz) = 13287
END-of-streamanalyze/distinfo
echo x - streamanalyze/Makefile
sed 's/^X//' >streamanalyze/Makefile << 'END-of-streamanalyze/Makefile'
X# New ports collection makefile for:	streamanalyze
X# Date created:				2005-10-30	
X# Whom:					Heiner Eichmann
X#
X# $FreeBSD: $
X#
X
XPORTNAME=	streamanalyze
XPORTVERSION=	0.4
XCATEGORIES=	multimedia
XMASTER_SITES=	http://www.badabum.de/down/
X
XMAINTAINER=	h.eichmann@gmx.de
XCOMMENT=	Shrink-factor calculator for StreamDVD
X
XLIB_DEPENDS=	dvdread:${PORTSDIR}/multimedia/libdvdread
X
XWRKSRC=		${WRKDIR}/StreamAnalyze
XUSE_REINPLACE=	yes
X
XPLIST_FILES=	bin/streamanalyze
XPORTDOCS=	README
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's|gcc -g -Wall|${CXX} ${CXXFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib|' ${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/streamanalyze ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-streamanalyze/Makefile
echo c - streamanalyze/files
mkdir -p streamanalyze/files > /dev/null 2>&1
echo x - streamanalyze/files/patch-streamanalyze.c
sed 's/^X//' >streamanalyze/files/patch-streamanalyze.c << 'END-of-streamanalyze/files/patch-streamanalyze.c'
X--- streamanalyze.c.orig	Thu Sep  8 21:56:10 2005
X+++ streamanalyze.c	Thu Sep  8 21:57:07 2005
X@@ -212,7 +212,7 @@
X             }
X          }
X          if( !found ) {                                                        // unknown stream, add to list
X-            new_data = malloc(sizeof(struct streamdata));
X+            new_data = (streamdata*)malloc(sizeof(struct streamdata));
X             if( new_data == NULL ) {
X                fprintf(stderr, "Out of memory\n");
X                exit(1);
END-of-streamanalyze/files/patch-streamanalyze.c
echo x - streamanalyze/pkg-plist
sed 's/^X//' >streamanalyze/pkg-plist << 'END-of-streamanalyze/pkg-plist'
Xbin/streamanalyze
Xshare/doc/streamanalyze/README
X@dirrm share/doc/streamanalyze
END-of-streamanalyze/pkg-plist
exit
Comment 1 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-10-30 23:02:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jylefort

Take.
Comment 2 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-11-01 13:03:29 UTC
State Changed
From-To: open->closed

Committed with a few modifications, thanks!