From owner-svn-ports-all@FreeBSD.ORG Sat Apr 19 23:11:37 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 47806AAE; Sat, 19 Apr 2014 23:11:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 334FB1C01; Sat, 19 Apr 2014 23:11:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3JNBbWH096759; Sat, 19 Apr 2014 23:11:37 GMT (envelope-from nox@svn.freebsd.org) Received: (from nox@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3JNBZXo096748; Sat, 19 Apr 2014 23:11:35 GMT (envelope-from nox@svn.freebsd.org) Message-Id: <201404192311.s3JNBZXo096748@svn.freebsd.org> From: Juergen Lock Date: Sat, 19 Apr 2014 23:11:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351609 - in head/multimedia: . naludump naludump/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2014 23:11:37 -0000 Author: nox Date: Sat Apr 19 23:11:35 2014 New Revision: 351609 URL: http://svnweb.freebsd.org/changeset/ports/351609 QAT: https://qat.redports.org/buildarchive/r351609/ Log: Add new port multimedia/naludump: Naludump is a tool to delete NALU fill data from h.264 streams embedded into TS files. The overall file structure isn't modified, only complete TS packets of NALU fill data are removed. Naludump contains lots of code of Klaus Schmidinger's VDR, and is based on cocepts from Marten Richter's Nalustripper. Usage: naludump inputfile.ts [outputfile.ts] WWW: http://www.udo-richter.de/vdr/naludump.en.html Added: head/multimedia/naludump/ head/multimedia/naludump/Makefile (contents, props changed) head/multimedia/naludump/distinfo (contents, props changed) head/multimedia/naludump/files/ head/multimedia/naludump/files/patch-Makefile (contents, props changed) head/multimedia/naludump/files/patch-libsi-headers.h (contents, props changed) head/multimedia/naludump/files/patch-libsi-si.c (contents, props changed) head/multimedia/naludump/files/patch-tools.c (contents, props changed) head/multimedia/naludump/pkg-descr (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Sat Apr 19 20:21:10 2014 (r351608) +++ head/multimedia/Makefile Sat Apr 19 23:11:35 2014 (r351609) @@ -241,6 +241,7 @@ SUBDIR += mxflib SUBDIR += mythtv SUBDIR += mythtv-frontend + SUBDIR += naludump SUBDIR += nxtvepg SUBDIR += oggvideotools SUBDIR += ogmrip Added: head/multimedia/naludump/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/Makefile Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,26 @@ +# Created by: Juergen Lock +# $FreeBSD$ + +PORTNAME= naludump +PORTVERSION= 0.1.1 +CATEGORIES= multimedia +MASTER_SITES= http://www.udo-richter.de/vdr/files/ + +MAINTAINER= nox@FreeBSD.org +COMMENT= Delete NALU fill data from h.264 TS files + +LICENSE= GPLv2 + +USES= gmake iconv:wchar_t tar:tgz +PATCH_STRIP= -p1 +CFLAGS+= "-I${LOCALBASE}/include" +CFLAGS+= "-L${LOCALBASE}/lib" +CFLAGS+= ${ICONV_LIB} +MAKE_ARGS+= CC="${CC}" CXX="${CXX}" +MAKE_ARGS+= CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" +PLIST_FILES+= bin/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include Added: head/multimedia/naludump/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/distinfo Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,2 @@ +SHA256 (naludump-0.1.1.tgz) = b6bd1899b4e4aad8f850b6892b06f9b639e576a5801d2fa63a6a593a022fd2ca +SIZE (naludump-0.1.1.tgz) = 50459 Added: head/multimedia/naludump/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-Makefile Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -8,6 +8,8 @@ OBJS = naludump.o remux.o tools.o libsi/ + + DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + ++DEFINES += -DO_LARGEFILE=0 ++ + all: naludump + + # Implicit rules: Added: head/multimedia/naludump/files/patch-libsi-headers.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-libsi-headers.h Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,14 @@ +--- a/libsi/headers.h ++++ b/libsi/headers.h +@@ -17,7 +17,11 @@ + #ifndef LIBSI_HEADERS_H + #define LIBSI_HEADERS_H + ++#ifdef __FreeBSD__ ++#include ++#else + #include ++#endif + + namespace SI { + Added: head/multimedia/naludump/files/patch-libsi-si.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-libsi-si.c Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,24 @@ +--- a/libsi/si.c ++++ b/libsi/si.c +@@ -13,7 +13,9 @@ + #include "si.h" + #include + #include ++#ifndef __FreeBSD__ + #include ++#endif + #include // for broadcaster stupidity workaround + #include + #include "descriptor.h" +@@ -381,7 +383,11 @@ bool convertCharacterTable(const char *f + if (SystemCharacterTable) { + iconv_t cd = iconv_open(SystemCharacterTable, fromCode); + if (cd != (iconv_t)-1) { ++#ifdef __FreeBSD__ ++ const char *fromPtr = from; ++#else + char *fromPtr = (char *)from; ++#endif + while (fromLength > 0 && toLength > 1) { + if (iconv(cd, &fromPtr, &fromLength, &to, &toLength) == size_t(-1)) { + if (errno == EILSEQ) { Added: head/multimedia/naludump/files/patch-tools.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/files/patch-tools.c Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,15 @@ +--- a/tools.c ++++ b/tools.c +@@ -14,7 +14,12 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#include ++#else + #include ++#endif + #include + #include + #include Added: head/multimedia/naludump/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/naludump/pkg-descr Sat Apr 19 23:11:35 2014 (r351609) @@ -0,0 +1,11 @@ +Naludump is a tool to delete NALU fill data from h.264 streams embedded into +TS files. The overall file structure isn't modified, only complete TS packets +of NALU fill data are removed. + +Naludump contains lots of code of Klaus Schmidinger's VDR, and is based on +cocepts from Marten Richter's Nalustripper. + +Usage: +naludump inputfile.ts [outputfile.ts] + +WWW: http://www.udo-richter.de/vdr/naludump.en.html