forked from Lainports/freebsd-ports
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. PR: ports/119082 Submitted by: Jason W. Bacon <bacon (at) smithers.neuro.mcw.edu>
This commit is contained in:
parent
032479b8cd
commit
67bfbdb8f5
6 changed files with 135 additions and 0 deletions
|
|
@ -232,6 +232,7 @@
|
|||
SUBDIR += vlc-devel
|
||||
SUBDIR += vodcatcher
|
||||
SUBDIR += vstream-client
|
||||
SUBDIR += vtkmpeg2encode
|
||||
SUBDIR += win32-codecs
|
||||
SUBDIR += x264
|
||||
SUBDIR += x264-gtk
|
||||
|
|
|
|||
75
multimedia/vtkmpeg2encode/Makefile
Normal file
75
multimedia/vtkmpeg2encode/Makefile
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
# New ports collection makefile for: vtkmpeg2encode
|
||||
# Date created: 2007-12-20
|
||||
# Whom: Jason W. Bacon <bacon@smithers.neuro.mcw.edu>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= vtkmpeg2encode
|
||||
PORTVERSION= 5.0.3
|
||||
CATEGORIES= multimedia math
|
||||
MASTER_SITES= http://www.vtk.org/files/support/ \
|
||||
http://www.neuro.mcw.edu/Ports/distfiles/VTK5/
|
||||
DISTNAME= vtkmpeg2encode
|
||||
|
||||
MAINTAINER= bacon@smithers.neuro.mcw.edu
|
||||
COMMENT= VTK MPEG2 encoding library
|
||||
|
||||
BUILD_DEPENDS= cmake>=2.2:${PORTSDIR}/devel/cmake
|
||||
|
||||
NO_CDROM= the MPEG2 format and all software that uses it is subject to patent restrictions
|
||||
NO_PACKAGE= ${NO_CDROM}
|
||||
|
||||
CMAKE?= ${LOCALBASE}/bin/cmake
|
||||
CMAKE_DEFS+= -DCMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
|
||||
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
|
||||
-DBUILD_SHARED_LIBS:BOOL=ON
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
MAN3= vtkmpeg2encode.3
|
||||
|
||||
SUB_FILES= vtkmpeg2encode.3
|
||||
|
||||
MPEGLIB= libvtkMPEG2Encode
|
||||
|
||||
PLIST_DIRS= include/vtk-5.0
|
||||
PLIST_FILES= lib/${MPEGLIB}.so.${PORTVERSION} \
|
||||
lib/${MPEGLIB}.so.5.0 \
|
||||
lib/${MPEGLIB}.so.5 \
|
||||
lib/${MPEGLIB}.so \
|
||||
include/vtk-5.0/mpeg2encDllConfig.h \
|
||||
include/vtk-5.0/mpeg2enc_global.h \
|
||||
include/vtk-5.0/mpeg2enc.h \
|
||||
include/vtk-5.0/mpeg2enc_config.h \
|
||||
include/vtk-5.0/vlc.h
|
||||
|
||||
do-configure:
|
||||
cd ${WRKSRC} && ${CMAKE} . ${CMAKE_DEFS}
|
||||
|
||||
post-build:
|
||||
${MV} ${WRKSRC}/${MPEGLIB}.so ${WRKSRC}/${MPEGLIB}.so.${PORTVERSION}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/include/vtk-5.0
|
||||
${INSTALL_DATA} ${WRKSRC}/${MPEGLIB}.so.${PORTVERSION} ${PREFIX}/lib
|
||||
${LN} -s ${PREFIX}/lib/${MPEGLIB}.so.${PORTVERSION} \
|
||||
${PREFIX}/lib/${MPEGLIB}.so.5.0
|
||||
${LN} -s ${PREFIX}/lib/${MPEGLIB}.so.${PORTVERSION} \
|
||||
${PREFIX}/lib/${MPEGLIB}.so.5
|
||||
${LN} -s ${PREFIX}/lib/${MPEGLIB}.so.${PORTVERSION} \
|
||||
${PREFIX}/lib/${MPEGLIB}.so
|
||||
${INSTALL_DATA} ${WRKSRC}/mpeg2encDllConfig.h \
|
||||
${WRKSRC}/mpeg2enc_global.h \
|
||||
${WRKSRC}/mpeg2enc.h \
|
||||
${WRKSRC}/mpeg2enc_config.h \
|
||||
${WRKSRC}/vlc.h \
|
||||
${PREFIX}/include/vtk-5.0
|
||||
${INSTALL_MAN} ${WRKDIR}/vtkmpeg2encode.3 ${MANPREFIX}/man/man3
|
||||
|
||||
post-install:
|
||||
@${ECHO_MSG}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_MSG}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
multimedia/vtkmpeg2encode/distinfo
Normal file
3
multimedia/vtkmpeg2encode/distinfo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
MD5 (vtkmpeg2encode.tar.gz) = 88106f118344dc60e5c2aef5a9aee935
|
||||
SHA256 (vtkmpeg2encode.tar.gz) = 4875494be01095377f86b1ad7427cab9a2cd886b2b2b959c96ff742cdda96a2b
|
||||
SIZE (vtkmpeg2encode.tar.gz) = 44737
|
||||
50
multimedia/vtkmpeg2encode/files/vtkmpeg2encode.3.in
Normal file
50
multimedia/vtkmpeg2encode/files/vtkmpeg2encode.3.in
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
.TH VTKMPEG2ENCODE 3
|
||||
.SH NAME \" Section header
|
||||
.PP
|
||||
|
||||
vtkmpeg2encode - VTK MPEG encoder library
|
||||
|
||||
.SH SYNOPSIS
|
||||
.PP
|
||||
.nf
|
||||
.na
|
||||
#include <mpeg2enc.h>
|
||||
|
||||
-I%%PREFIX%%/include
|
||||
|
||||
-L%%PREFIX%%/lib -lvtkMPEG2Encode
|
||||
.ad
|
||||
.fi
|
||||
|
||||
\" Optional sections
|
||||
.SH "DESCRIPTION"
|
||||
|
||||
This is the VTK MPEG2 encoder library for the Visualization Tool Kit.
|
||||
|
||||
vtkmpeg2encode has been removed from VTK due to patent issues with the
|
||||
MPEG format.
|
||||
|
||||
For those who don't mind dealing with the issues related to patented code,
|
||||
vtkmpeg2encode is now available as a separate download. Go to
|
||||
http://www.vtk.org and click on the "Download" link and look for links to
|
||||
archives of the vtkmpeg2encode source tree. It is buildable with CMake. See
|
||||
the comments in vtkMPEG2Writer class documentation or in VTK's
|
||||
CMakeLists.txt near the VTK_USE_MPEG2_ENCODER option for more info.
|
||||
|
||||
FreeBSD ports users can simply install the vtkmpeg2encode port and read
|
||||
the license terms.
|
||||
|
||||
Those of you using vtkMPEG2Writer will have to build vtkmpeg2encode
|
||||
separately and link it in to VTK to keep using it... assuming the
|
||||
responsibility for using patented code properly yourselves. Otherwise, you
|
||||
will have to discontinue use of the vtkMPEG2Writer class.
|
||||
|
||||
.SH "SEE ALSO"
|
||||
vtk(3)
|
||||
|
||||
.SH AUTHOR
|
||||
.nf
|
||||
.na
|
||||
Kitware, Inc.
|
||||
http://vtk.org
|
||||
|
||||
3
multimedia/vtkmpeg2encode/pkg-descr
Normal file
3
multimedia/vtkmpeg2encode/pkg-descr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
VTK5 MPEG2 Encoder
|
||||
|
||||
WWW: http://www.vtk.org/get-software.php#addons
|
||||
3
multimedia/vtkmpeg2encode/pkg-message
Normal file
3
multimedia/vtkmpeg2encode/pkg-message
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
The MPEG2 format and all software that uses it is subject to patent
|
||||
restrictions. Please see http://www.mpegla.com/m2/m2-agreement.cfm
|
||||
for more information.
|
||||
Loading…
Add table
Reference in a new issue