diff options
author | olgeni <olgeni@FreeBSD.org> | 2011-09-18 22:08:28 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2011-09-18 22:08:28 +0800 |
commit | d027fe1d09329254dba8dbd799a7d7570d98092a (patch) | |
tree | cd747764d7b2401fa09b6524e8e1595766a843f0 /multimedia/opencinematools | |
parent | e2ded5dcbe4d69b4725ec4471cc027baf2f0064d (diff) | |
download | freebsd-ports-gnome-d027fe1d09329254dba8dbd799a7d7570d98092a.tar.gz freebsd-ports-gnome-d027fe1d09329254dba8dbd799a7d7570d98092a.tar.zst freebsd-ports-gnome-d027fe1d09329254dba8dbd799a7d7570d98092a.zip |
Add opencinematools: tools for creating multi-reel DCPs from MXF
source material.
Diffstat (limited to 'multimedia/opencinematools')
-rw-r--r-- | multimedia/opencinematools/Makefile | 41 | ||||
-rw-r--r-- | multimedia/opencinematools/distinfo | 2 | ||||
-rw-r--r-- | multimedia/opencinematools/files/patch-build_unix_Makefile | 26 | ||||
-rw-r--r-- | multimedia/opencinematools/files/patch-src_mkcpl.cpp | 14 | ||||
-rw-r--r-- | multimedia/opencinematools/pkg-descr | 6 |
5 files changed, 89 insertions, 0 deletions
diff --git a/multimedia/opencinematools/Makefile b/multimedia/opencinematools/Makefile new file mode 100644 index 000000000000..0aefd8782a94 --- /dev/null +++ b/multimedia/opencinematools/Makefile @@ -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> diff --git a/multimedia/opencinematools/distinfo b/multimedia/opencinematools/distinfo new file mode 100644 index 000000000000..caadaa60aee9 --- /dev/null +++ b/multimedia/opencinematools/distinfo @@ -0,0 +1,2 @@ +SHA256 (opencinematools-1.1.2-src.zip) = 56737d2874c2d33a4a8083b372af8bf39c7b3959e0fd5e14555b27a5ebbf7d0f +SIZE (opencinematools-1.1.2-src.zip) = 5022809 diff --git a/multimedia/opencinematools/files/patch-build_unix_Makefile b/multimedia/opencinematools/files/patch-build_unix_Makefile new file mode 100644 index 000000000000..ac2b9f0046b1 --- /dev/null +++ b/multimedia/opencinematools/files/patch-build_unix_Makefile @@ -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) diff --git a/multimedia/opencinematools/files/patch-src_mkcpl.cpp b/multimedia/opencinematools/files/patch-src_mkcpl.cpp new file mode 100644 index 000000000000..1d37ef16d5b7 --- /dev/null +++ b/multimedia/opencinematools/files/patch-src_mkcpl.cpp @@ -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; diff --git a/multimedia/opencinematools/pkg-descr b/multimedia/opencinematools/pkg-descr new file mode 100644 index 000000000000..b694650ec392 --- /dev/null +++ b/multimedia/opencinematools/pkg-descr @@ -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/ |