From d5632c27e29b55b2cd2e7df827c9e10b3d449172 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Mon, 25 Oct 2010 06:18:51 +0000 Subject: Add mkclean 0.6.0, clean and optimize Matroska and WebM files. PR: ports/151679 Submitted by: Peter Johnson --- multimedia/mkclean/Makefile | 33 ++++++++++++++++++++++++++++++ multimedia/mkclean/distinfo | 3 +++ multimedia/mkclean/files/patch-file_libc.c | 11 ++++++++++ multimedia/mkclean/files/patch-root.proj | 10 +++++++++ multimedia/mkclean/pkg-descr | 11 ++++++++++ 5 files changed, 68 insertions(+) create mode 100644 multimedia/mkclean/Makefile create mode 100644 multimedia/mkclean/distinfo create mode 100644 multimedia/mkclean/files/patch-file_libc.c create mode 100644 multimedia/mkclean/files/patch-root.proj create mode 100644 multimedia/mkclean/pkg-descr (limited to 'multimedia/mkclean') diff --git a/multimedia/mkclean/Makefile b/multimedia/mkclean/Makefile new file mode 100644 index 000000000000..2500fe7d9f6a --- /dev/null +++ b/multimedia/mkclean/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: mkclean +# Date created: 2010-10-24 +# Whom: Peter Johnson +# +# $FreeBSD$ +# + +PORTNAME= mkclean +PORTVERSION= 0.6.0 +CATEGORIES= multimedia +MASTER_SITES= SF/matroska/${PORTNAME} + +MAINTAINER= johnson.peter@gmail.com +COMMENT= Clean and optimize Matroska and WebM files + +USE_BZIP2= yes +USE_ICONV= yes +USE_GMAKE= yes + +HAS_CONFIGURE= yes +MAKE_ENV+= CCFLAGS="-I${LOCALBASE}/include" \ + LFLAGS="-L${LOCALBASE}/lib -liconv" + +MAKEFILE= GNUmakefile + +PLIST_FILES= bin/mkclean bin/mkWDclean bin/mkvtree + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/release/*/mkclean ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/release/*/mkWDclean ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/release/*/mkvtree ${PREFIX}/bin + +.include diff --git a/multimedia/mkclean/distinfo b/multimedia/mkclean/distinfo new file mode 100644 index 000000000000..b63f557d1925 --- /dev/null +++ b/multimedia/mkclean/distinfo @@ -0,0 +1,3 @@ +MD5 (mkclean-0.6.0.tar.bz2) = 94489f21d4ae85f9c6ee9f70df32b73b +SHA256 (mkclean-0.6.0.tar.bz2) = 098f7a44c5aafde4a99d64dfccffb4404dc354874693acd05314d6a8c3c23245 +SIZE (mkclean-0.6.0.tar.bz2) = 718736 diff --git a/multimedia/mkclean/files/patch-file_libc.c b/multimedia/mkclean/files/patch-file_libc.c new file mode 100644 index 000000000000..a2f26f8e0080 --- /dev/null +++ b/multimedia/mkclean/files/patch-file_libc.c @@ -0,0 +1,11 @@ +--- corec/helpers/file/file_libc.c.orig 2010-09-26 04:42:30.000000000 -0700 ++++ corec/helpers/file/file_libc.c 2010-10-24 01:44:37.000000000 -0700 +@@ -40,7 +40,7 @@ + #include + #include + #include +-#if defined(TARGET_OSX) ++#if defined(TARGET_OSX) || defined(__FreeBSD__) + #include + #else + #include diff --git a/multimedia/mkclean/files/patch-root.proj b/multimedia/mkclean/files/patch-root.proj new file mode 100644 index 000000000000..6ba18b988d72 --- /dev/null +++ b/multimedia/mkclean/files/patch-root.proj @@ -0,0 +1,10 @@ +--- root.proj.orig 2010-09-26 04:42:30.000000000 -0700 ++++ root.proj 2010-10-24 01:48:34.000000000 -0700 +@@ -12,6 +12,7 @@ + USE matroska2 + USE mkvtests + USE mkclean ++ USE mkWDclean + USE mkvalidator + } + diff --git a/multimedia/mkclean/pkg-descr b/multimedia/mkclean/pkg-descr new file mode 100644 index 000000000000..b35aa1d02e86 --- /dev/null +++ b/multimedia/mkclean/pkg-descr @@ -0,0 +1,11 @@ +mkclean is a command line tool to clean and optimize Matroska (.mkv / .mka / +.mks) and WebM (.webm / .weba) files that have already been muxed. It reorders +the elements with the Cues at the front, so your Matroska files are ready to be +streamed efficiently over the web. It also removes elements not found in the +Matroska specs and the extra Meta Seek list of Clusters that some program add +to their file. It can also optionally remux the Cluster blocks to start each +boundary with a keyframe and the matching audio/subtitle blocks for that +keyframe. + +Also comes with mkWDclean to modify files in a way they can play in +broken/incomplete players. -- cgit v1.2.3