From nobody@FreeBSD.org  Mon Mar  8 19:56:28 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EF39C16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Mar 2004 19:56:28 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E309D43D39
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  8 Mar 2004 19:56:28 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i293uS72053653
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 8 Mar 2004 19:56:28 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i293uS4q053652;
	Mon, 8 Mar 2004 19:56:28 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200403090356.i293uS4q053652@www.freebsd.org>
Date: Mon, 8 Mar 2004 19:56:28 -0800 (PST)
From: michael johnson <ahze@ahze.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New Port: multimedia/y4mscaler -- scales, crops, and shifts Y'CbCr video
X-Send-Pr-Version: www-2.3

>Number:         63962
>Category:       ports
>Synopsis:       New Port: multimedia/y4mscaler -- scales, crops, and shifts Y'CbCr video
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 08 20:00:32 PST 2004
>Closed-Date:    Fri Mar 26 01:04:24 PST 2004
>Last-Modified:  Fri Mar 26 01:04:24 PST 2004
>Originator:     michael johnson
>Release:        5.2-CURRENT && 4.9-STABLE
>Organization:
>Environment:
>Description:
New Port multimedia/y4mscaler

y4mscaler is a general-purpose video scaler which operates on YUV4MPEG2 
streams, as produced and consumed by the MJPEGtools such as lav2yuv and 
mpeg2enc(1).

y4mscaler is meant to be used in a pipeline. Thus, input is from stdin, and 
output is to stdout. The essential function of y4mscaler is to scale a 
specified "active" region of the input stream (the source) into a specified 
active region of the output stream (the target). Pixels outside of the active 
region of the source are ignored; pixels outside of the active region of 
the target are filled with a background color. The source may additionally 
have a matte applied to it; pixels outside the source matte are set to a 
separately specified background color.

y4mscaler correctly handles chroma sampling, and thus it can also perform 
chroma subsampling conversions. The YUV4MPEG2 stream format currently only 
supports 4:2:0 subsampling, although y4mscaler can process 4:1:1, 4:2:2, and 
4:4:4 modes by abusing the YUV4MPEG2 format a bit. 

Includes preset parameters for popular output streams: DVD, SVCD, VCD,  DV, 
CVD, and SVCD/VCD still images.
>How-To-Repeat:
      
>Fix:
# 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:
#
#	multimedia/y4mscaler/
#	multimedia/y4mscaler/pkg-descr
#	multimedia/y4mscaler/distinfo
#	multimedia/y4mscaler/Makefile
#
echo c - multimedia/y4mscaler/
mkdir -p multimedia/y4mscaler/ > /dev/null 2>&1
echo x - multimedia/y4mscaler/pkg-descr
sed 's/^X//' >multimedia/y4mscaler/pkg-descr << 'END-of-multimedia/y4mscaler/pkg-descr'
XFrom y4msclaer(1):
X
Xy4mscaler is a general-purpose video scaler which operates on YUV4MPEG2 
Xstreams, as produced and consumed by the MJPEGtools such as lav2yuv and 
Xmpeg2enc(1).
X
Xy4mscaler is meant to be used in a pipeline. Thus, input is from stdin, and 
Xoutput is to stdout. The essential function of y4mscaler is to scale a 
Xspecified "active" region of the input stream (the source) into a specified 
Xactive region of the output stream (the target). Pixels outside of the active 
Xregion of the source are ignored; pixels outside of the active region of 
Xthe target are filled with a background color. The source may additionally 
Xhave a matte applied to it; pixels outside the source matte are set to a 
Xseparately specified background color.
X
Xy4mscaler correctly handles chroma sampling, and thus it can also perform 
Xchroma subsampling conversions. The YUV4MPEG2 stream format currently only 
Xsupports 4:2:0 subsampling, although y4mscaler can process 4:1:1, 4:2:2, and 
X4:4:4 modes by abusing the YUV4MPEG2 format a bit. 
X
XIncludes preset parameters for popular output streams: DVD, SVCD, VCD,  DV, 
XCVD, and SVCD/VCD still images.
X
XWWW: http://www.mir.com/DMG/y4mscaler.html
END-of-multimedia/y4mscaler/pkg-descr
echo x - multimedia/y4mscaler/distinfo
sed 's/^X//' >multimedia/y4mscaler/distinfo << 'END-of-multimedia/y4mscaler/distinfo'
XMD5 (y4mscaler-0.6.1-src.tgz) = 4f5d1451065f940c80624269ee3cc872
XSIZE (y4mscaler-0.6.1-src.tgz) = 49966
END-of-multimedia/y4mscaler/distinfo
echo x - multimedia/y4mscaler/Makefile
sed 's/^X//' >multimedia/y4mscaler/Makefile << 'END-of-multimedia/y4mscaler/Makefile'
X# New ports collection makefile for:	y4mscaler
X# Date created:		Mon Mar  8 21:36:23 EST 2004
X# Whom:			michael johnson <ahze@ahze.net>
X#
X# $FreeBSD: ports/multimedia/mpeg/Makefile,v 1.5 2003/04/04 01:38:37 lioux Exp $
X#
X
XPORTNAME=	y4mscaler
XPORTVERSION=	0.6.1
XCATEGORIES=	multimedia
XMASTER_SITES=	http://www.mir.com/DMG/Software/
XDISTNAME=	${PKGNAME}-src
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	ahze@ahze.net
XCOMMENT=	Y4mscaler scales, crops, and shifts Y'CbCr video
X
XLIB_DEPENDS=	lavjpeg-1.6.1:${PORTSDIR}/multimedia/mjpegtools
X
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/${PKGNAME}
X
XDOC_FILES=	COPYING ChangeLog INSTALL README TODO
XMAN1=		y4mscaler.1
XPLIST_FILES=	bin/y4mscaler
X
X.include <bsd.port.pre.mk>
X
X.ifndef(PORTDOCS)
X.for plistfile in ${DOC_FILES}
XPLIST_FILES+=	share/doc/${PORTNAME}/${plistfile}
X.endfor
XPLIST_DIRS+=	share/doc/${PORTNAME}
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
X		${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e 's|-march=i686 -mcpu=i686|${CFLAGS}|' \
X		${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e 's|COPT = -O2|#|' \
X		${WRKSRC}/Makefile
X.if ${OSVERSION} < 500000
X	@${REINPLACE_CMD} -e 's|#define HAVE_STDINT_H 1|#undef HAVE_STDINT_H 1|' \
X		${WRKSRC}/y4m-config.h
X.endif
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${PREFIX}/bin/y4mscaler
X	@${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${MANPREFIX}/man/man1/
X.ifndef(PORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for docfile in ${DOC_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-multimedia/y4mscaler/Makefile
exit


>Release-Note:
>Audit-Trail:

From: Michael Johnson <ahze@ahze.net>
To: freebsd-gnats-submit@FreeBSD.org, mike johnson <ahze@ahze.net>
Cc:  
Subject: Re: ports/63962: New Port: multimedia/y4mscaler -- scales, crops, and shifts Y'CbCr video
Date: Thu, 11 Mar 2004 02:21:54 -0500

 Fix PORTDOCS thanks to pav.
 
 diff -ruN multimedia/y4mscaler.orig/Makefile 
 multimedia/y4mscaler/Makefile
 --- multimedia/y4mscaler.orig/Makefile	Thu Mar 11 02:09:47 2004
 +++ multimedia/y4mscaler/Makefile	Thu Mar 11 02:12:32 2004
 @@ -22,19 +22,12 @@
 
   WRKSRC=		${WRKDIR}/${PKGNAME}
 
 -DOC_FILES=	COPYING ChangeLog INSTALL README TODO
 +PORTDOCS=	COPYING ChangeLog INSTALL README TODO
   MAN1=		y4mscaler.1
   PLIST_FILES=	bin/y4mscaler
 
   .include <bsd.port.pre.mk>
 
 -.ifndef(PORTDOCS)
 -.for plistfile in ${DOC_FILES}
 -PLIST_FILES+=	share/doc/${PORTNAME}/${plistfile}
 -.endfor
 -PLIST_DIRS+=	share/doc/${PORTNAME}
 -.endif
 -
   post-patch:
   	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
   		${WRKSRC}/Makefile
 @@ -50,9 +43,9 @@
   do-install:
   	@${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${PREFIX}/bin/y4mscaler
   	@${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${MANPREFIX}/man/man1/
 -.ifndef(PORTDOCS)
 +.if !defined(NOPORTDOCS)
   	@${MKDIR} ${DOCSDIR}
 -.for docfile in ${DOC_FILES}
 +.for docfile in ${PORTDOCS}
   	@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
   .endfor
   .endif
 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Mar 26 01:04:15 PST 2004 
State-Changed-Why:  
New port added, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63962 
>Unformatted:
