1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Add opencinematools: tools for creating multi-reel DCPs from MXF

source material.
This commit is contained in:
Jimmy Olgeni 2011-09-18 14:08:28 +00:00
parent 758ccf8692
commit 516400410e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281945
6 changed files with 90 additions and 0 deletions

View File

@ -230,6 +230,7 @@
SUBDIR += oggvideotools
SUBDIR += ogmrip
SUBDIR += ogmtools
SUBDIR += opencinematools
SUBDIR += openmovieeditor
SUBDIR += openquicktime
SUBDIR += openshot

View File

@ -0,0 +1,41 @@
# New ports collection makefile for: opencinematools
# Date created: 2011-09-18
# Whom: Jimmy Olgeni <olgeni@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= opencinematools
PORTVERSION= 1.1.2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Tools for creating multi-reel DCPs from MXF source material
LIB_DEPENDS= openjpeg.2:${PORTSDIR}/graphics/openjpeg \
expat.6:${PORTSDIR}/textproc/expat2 \
asdcp.0:${PORTSDIR}/multimedia/asdcplib
USE_DOS2UNIX= yes
USE_ZIP= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
PLIST_FILES= bin/mkcpl bin/mkpkl bin/mkmap
do-build:
@cd ${WRKSRC}/build/unix && ${MAKE} ${MAKE_ENV}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/mkcpl ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/mkpkl ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/mkmap ${PREFIX}/bin
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (opencinematools-1.1.2-src.zip) = 56737d2874c2d33a4a8083b372af8bf39c7b3959e0fd5e14555b27a5ebbf7d0f
SIZE (opencinematools-1.1.2-src.zip) = 5022809

View File

@ -0,0 +1,26 @@
$FreeBSD$
--- build/unix/Makefile.orig
+++ build/unix/Makefile
@@ -1,13 +1,15 @@
CC = g++
-LIBS = -lm -lopenjpeg -lexpat -lasdcp -lkumu -crypto
+LIBS = -lm -lopenjpeg -lexpat -lasdcp -lkumu -lcrypto
SRCS = ../../src/
BINS = ../../bin/
+all : mkcpl mkpkl mkmap
+
mkcpl : $(SRCS)mkcpl.cpp
- $(CC) -o $(BINS)mkcpl $(SRCS)mkcpl.cpp $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINS)mkcpl $(SRCS)mkcpl.cpp $(LIBS)
mkpkl : $(SRCS)mkpkl.cpp
- $(CC) -o $(BINS)mkpkl $(SRCS)mkpkl.cpp $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINS)mkpkl $(SRCS)mkpkl.cpp $(LIBS)
mkmap : $(SRCS)mkmap.cpp
- $(CC) -o $(BINS)mkmap $(SRCS)mkmap.cpp $(LIBS)
\ No newline at end of file
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINS)mkmap $(SRCS)mkmap.cpp $(LIBS)

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- src/mkcpl.cpp.orig
+++ src/mkcpl.cpp
@@ -589,7 +589,7 @@
PCMReader.FillWriterInfo(WInfo);
AAssets.push_back(Asset());
- sprintf(buff, "%u %u", ADesc.SampleRate.Numerator, ADesc.SampleRate.Denominator);
+ sprintf(buff, "%u %u", ADesc.AudioSamplingRate.Numerator, ADesc.AudioSamplingRate.Denominator);
AAssets.back().EditRate = buff;
AAssets.back().IntrinsicDuration = ADesc.ContainerDuration;

View File

@ -0,0 +1,6 @@
The goals for Open Cinema Tools are:
* Creation of DCP from source files
* Support for multi-reel DCPs with several audio and subtitle tracks
WWW: http://www.opencinematools.org/