Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2007 18:18:09 -0600 (CST)
From:      Jason Bacon <bacon@smithers.neuro.mcw.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/119082: New port: math/vtkmpeg2encode VTK MPEG encoder library
Message-ID:  <200712280018.lBS0I9nO061336@smithers.neuro.mcw.edu>
Resent-Message-ID: <200712280020.lBS0K1Pd050346@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         119082
>Category:       ports
>Synopsis:       New port: math/vtkmpeg2encode VTK MPEG encoder library
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 28 00:20:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Jason Bacon
>Release:        FreeBSD 6.1-RELEASE-p17 i386
>Organization:
Medical College of Wisconsin
>Environment:
System: FreeBSD smithers.neuro.mcw.edu 6.1-RELEASE-p17 FreeBSD 6.1-RELEASE-p17 #0: Mon Jul 2 15:25:34 CDT 2007 bacon@pcbsd:/usr/obj/usr/src/sys/MCWPCBSD i386


>Description:

This is the VTK MPEG2 encoder library, which has been removed from the
main VTK distribution due to MPEG patent issues.  This port is an optional
dependency for the new vtk5 port.

>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:
#
#	math/vtkmpeg2encode
#	math/vtkmpeg2encode/pkg-descr
#	math/vtkmpeg2encode/Makefile
#	math/vtkmpeg2encode/distinfo
#	math/vtkmpeg2encode/files
#	math/vtkmpeg2encode/files/vtkmpeg2encode.3.in
#
echo c - math/vtkmpeg2encode
mkdir -p math/vtkmpeg2encode > /dev/null 2>&1
echo x - math/vtkmpeg2encode/pkg-descr
sed 's/^X//' >math/vtkmpeg2encode/pkg-descr << 'END-of-math/vtkmpeg2encode/pkg-descr'
XVTK5 MPEG2 Encoder
X
XWWW:	http://www.vtk.org/get-software.php#addons
END-of-math/vtkmpeg2encode/pkg-descr
echo x - math/vtkmpeg2encode/Makefile
sed 's/^X//' >math/vtkmpeg2encode/Makefile << 'END-of-math/vtkmpeg2encode/Makefile'
X# New ports collection makefile for:	vtkmpeg2encode
X# Date created:		2007-12-20
X# Whom:			Jason W. Bacon <bacon@smithers.neuro.mcw.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	vtkmpeg2encode
XPORTVERSION=	5.0.3
XCATEGORIES=	math
XMASTER_SITES=	http://www.vtk.org/files/support/ \
X		http://www.neuro.mcw.edu/Ports/distfiles/VTK5/
XDISTNAME=	vtkmpeg2encode
X
XMAINTAINER=	bacon@smithers.neuro.mcw.edu
XCOMMENT=	VTK MPEG2 encoding library
X
XCMAKE?=		${LOCALBASE}/bin/cmake
XCMAKE_DEFS+=	-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX}
X
XUSE_LDCONFIG=	yes
X
XMAN3=		vtkmpeg2encode.3
X
XSUB_FILES=	vtkmpeg2encode.3
X
XMPEGLIB=	libvtkMPEG2Encode
X
XPLIST_FILES=	lib/${MPEGLIB}.so.${PORTVERSION} \
X		lib/${MPEGLIB}.so.5.0 \
X		lib/${MPEGLIB}.so.5 \
X		lib/${MPEGLIB}.so \
X		include/vtk-5.0/mpeg2encDllConfig.h \
X		include/vtk-5.0/mpeg2enc_global.h \
X		include/vtk-5.0/mpeg2enc.h \
X		include/vtk-5.0/mpeg2enc_config.h \
X		include/vtk-5.0/vlc.h
X
Xdo-configure:
X	cd ${WRKSRC} && ${CMAKE} .
X
X# The CMAKE config doesn't have an option for shared libs, so we'll do
X# it manually.
Xpost-build:
X	(cd ${WRKSRC}; ${CC} -o ${MPEGLIB}.so.${PORTVERSION} -shared CMakeFiles/vtkMPEG2Encode.dir/*.o)
X
Xdo-install:
X	${MKDIR} ${PREFIX}/include/vtk-5.0
X	${INSTALL_DATA} ${WRKSRC}/${MPEGLIB}.so.${PORTVERSION} ${PREFIX}/lib
X	${LN} -s ${PREFIX}/lib/${MPEGLIB}.so.${PORTVERSION} \
X			${PREFIX}/lib/${MPEGLIB}.so.5.0
X	${LN} -s ${PREFIX}/lib/${MPEGLIB}.so.${PORTVERSION} \
X			${PREFIX}/lib/${MPEGLIB}.so.5
X	${LN} -s ${PREFIX}/lib/${MPEGLIB}.so.${PORTVERSION} \
X			${PREFIX}/lib/${MPEGLIB}.so
X	${INSTALL_DATA} ${WRKSRC}/mpeg2encDllConfig.h \
X			${WRKSRC}/mpeg2enc_global.h \
X			${WRKSRC}/mpeg2enc.h \
X			${WRKSRC}/mpeg2enc_config.h \
X			${WRKSRC}/vlc.h \
X			${PREFIX}/include/vtk-5.0
X	${INSTALL_MAN}	${WRKDIR}/vtkmpeg2encode.3 ${MANPREFIX}/man/man3
X
X.include <bsd.port.mk>
END-of-math/vtkmpeg2encode/Makefile
echo x - math/vtkmpeg2encode/distinfo
sed 's/^X//' >math/vtkmpeg2encode/distinfo << 'END-of-math/vtkmpeg2encode/distinfo'
XMD5 (vtkmpeg2encode.tar.gz) = 88106f118344dc60e5c2aef5a9aee935
XSHA256 (vtkmpeg2encode.tar.gz) = 4875494be01095377f86b1ad7427cab9a2cd886b2b2b959c96ff742cdda96a2b
XSIZE (vtkmpeg2encode.tar.gz) = 44737
END-of-math/vtkmpeg2encode/distinfo
echo c - math/vtkmpeg2encode/files
mkdir -p math/vtkmpeg2encode/files > /dev/null 2>&1
echo x - math/vtkmpeg2encode/files/vtkmpeg2encode.3.in
sed 's/^X//' >math/vtkmpeg2encode/files/vtkmpeg2encode.3.in << 'END-of-math/vtkmpeg2encode/files/vtkmpeg2encode.3.in'
X.TH VTKMPEG2ENCODE 3
X.SH NAME    \" Section header
X.PP
X 
Xvtkmpeg2encode - VTK MPEG encoder library
X
X.SH SYNOPSIS
X.PP
X.nf 
X.na 
X#include <mpeg2enc.h>
X
X-I%%PREFIX%%/include
X
X-L%%PREFIX%%/lib -lvtkMPEG2Encode
X.ad
X.fi
X
X\" Optional sections
X.SH "DESCRIPTION"
X
XThis is the VTK MPEG2 encoder library for the Visualization Tool Kit.
X
Xvtkmpeg2encode has been removed from VTK due to patent issues with the
XMPEG format.
X
XFor those who don't mind dealing with the issues related to patented code,
Xvtkmpeg2encode is now available as a separate download. Go to
Xhttp://www.vtk.org and click on the "Download" link and look for links to
Xarchives of the vtkmpeg2encode source tree. It is buildable with CMake. See
Xthe comments in vtkMPEG2Writer class documentation or in VTK's
XCMakeLists.txt near the VTK_USE_MPEG2_ENCODER option for more info.
X
XFreeBSD ports users can simply install the vtkmpeg2encode port and read
Xthe license terms.
X
XThose of you using vtkMPEG2Writer will have to build vtkmpeg2encode
Xseparately and link it in to VTK to keep using it... assuming the
Xresponsibility for using patented code properly yourselves. Otherwise, you
Xwill have to discontinue use of the vtkMPEG2Writer class.
X
X.SH "SEE ALSO"
Xvtk(3)
X
X.SH AUTHOR
X.nf
X.na
XKitware, Inc.
Xhttp://vtk.org
X
END-of-math/vtkmpeg2encode/files/vtkmpeg2encode.3.in
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712280018.lBS0I9nO061336>