From owner-svn-ports-head@freebsd.org Wed Jul 22 16:32:12 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 173AF9A7428; Wed, 22 Jul 2015 16:32:12 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org (repo.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 00B3E10DC; Wed, 22 Jul 2015 16:32:12 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6MGWBQU029912; Wed, 22 Jul 2015 16:32:11 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6MGW6ZH029890; Wed, 22 Jul 2015 16:32:06 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201507221632.t6MGW6ZH029890@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Wed, 22 Jul 2015 16:32:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r392684 - in head/multimedia: . libde265 libde265/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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 16:32:12 -0000 Author: kwm Date: Wed Jul 22 16:32:05 2015 New Revision: 392684 URL: https://svnweb.freebsd.org/changeset/ports/392684 Log: Add libde265 Opensource h.265 video codec. Added: head/multimedia/libde265/ head/multimedia/libde265/Makefile (contents, props changed) head/multimedia/libde265/distinfo (contents, props changed) head/multimedia/libde265/files/ head/multimedia/libde265/files/patch-configure.ac (contents, props changed) head/multimedia/libde265/files/patch-libde265_Makefile.am (contents, props changed) head/multimedia/libde265/files/patch-libde265_fallback-dct.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_fallback-motion.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_image.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_motion.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_pps.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_refpic.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_threads.cc (contents, props changed) head/multimedia/libde265/files/patch-libde265_util.h (contents, props changed) head/multimedia/libde265/pkg-descr (contents, props changed) head/multimedia/libde265/pkg-plist (contents, props changed) Modified: head/multimedia/Makefile Modified: head/multimedia/Makefile ============================================================================== --- head/multimedia/Makefile Wed Jul 22 15:01:32 2015 (r392683) +++ head/multimedia/Makefile Wed Jul 22 16:32:05 2015 (r392684) @@ -168,6 +168,7 @@ SUBDIR += libcec SUBDIR += libdc1394 SUBDIR += libdca + SUBDIR += libde265 SUBDIR += libdv SUBDIR += libdvbcsa SUBDIR += libdvbpsi Added: head/multimedia/libde265/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/Makefile Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,22 @@ +# Created by: Koop Mast +# $FreeBSD$ + +PORTNAME= libde265 +PORTVERSION= 1.0.2 +CATEGORIES= multimedia +DISTVERSIONPREFIX= v + +MAINTAINER= kwm@FreeBSD.org +COMMENT= Open source h.265 video codec + +USE_GITHUB= yes +GH_ACCOUNT= strukturag +GH_PROJECT= libde265 + +USES= autoreconf compiler:c++11-lib libtool pathfix pkgconfig +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --disable-sherlock265 --disable-dec265 + +PATHFIX_MAKEFILEIN= Makefile.am + +.include Added: head/multimedia/libde265/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/distinfo Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,2 @@ +SHA256 (strukturag-libde265-v1.0.2_GH0.tar.gz) = c9769a621d568bf5d1e687453cb5d996d7a813476813edb4752ce0fea437fca8 +SIZE (strukturag-libde265-v1.0.2_GH0.tar.gz) = 381737 Added: head/multimedia/libde265/files/patch-configure.ac ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-configure.ac Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,60 @@ +--- configure.ac.orig 2015-07-14 13:51:51.000000000 +0200 ++++ configure.ac 2015-07-22 16:42:42.854395000 +0200 +@@ -36,8 +36,8 @@ + # Initialize automake stuff + AM_INIT_AUTOMAKE + +-CFLAGS+=" -std=c99" +-CXXFLAGS+=" -Werror=return-type -Werror=unused-result -Werror=reorder" ++CFLAGS="$CFLAGS -std=c99" ++CXXFLAGS="$CXXFLAGS -Werror=return-type -Werror=unused-result -Werror=reorder" + AX_CXX_COMPILE_STDCXX_11() + + dnl Use -Wall if we have gcc. +@@ -101,8 +101,8 @@ + ],[],[need_strict_ansi=no],[need_strict_ansi=yes]); + AC_LANG_POP(C++) + if eval "test x$need_strict_ansi = xyes"; then +- CFLAGS+=" -D__STRICT_ANSI__" +- CXXFLAGS+=" -D__STRICT_ANSI__" ++ CFLAGS="$CFLAGS -D__STRICT_ANSI__" ++ CXXFLAGS="$CXXFLAGS -D__STRICT_ANSI__" + fi + AC_MSG_RESULT([$need_strict_ansi]) + +@@ -180,7 +180,7 @@ + [enable_log_error=$enableval], + [enable_log_error=yes]) + if eval "test $enable_log_error = yes"; then +- CXXFLAGS+=" -DDE265_LOG_ERROR" ++ CXXFLAGS="$CXXFLAGS -DDE265_LOG_ERROR" + fi + + AC_ARG_ENABLE(log-info, +@@ -189,7 +189,7 @@ + [enable_log_info=$enableval], + [enable_log_info=no]) + if eval "test $enable_log_info = yes"; then +- CXXFLAGS+=" -DDE265_LOG_INFO" ++ CXXFLAGS="$CXXFLAGS -DDE265_LOG_INFO" + fi + + AC_ARG_ENABLE(log-debug, +@@ -198,7 +198,7 @@ + [enable_log_debug=$enableval], + [enable_log_debug=no]) + if eval "test $enable_log_debug = yes"; then +- CXXFLAGS+=" -DDE265_LOG_DEBUG" ++ CXXFLAGS="$CXXFLAGS -DDE265_LOG_DEBUG" + fi + + AC_ARG_ENABLE(log-trace, +@@ -207,7 +207,7 @@ + [enable_log_trace=$enableval], + [enable_log_trace=no]) + if eval "test $enable_log_trace = yes"; then +- CXXFLAGS+=" -DDE265_LOG_TRACE" ++ CXXFLAGS="$CXXFLAGS -DDE265_LOG_TRACE" + fi + + Added: head/multimedia/libde265/files/patch-libde265_Makefile.am ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_Makefile.am Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,19 @@ +--- libde265/Makefile.am.orig 2015-07-22 17:41:19.854783000 +0200 ++++ libde265/Makefile.am 2015-07-22 17:41:35.651508000 +0200 +@@ -19,7 +19,6 @@ + endif + + libde265_la_LDFLAGS = -version-info $(LIBDE265_CURRENT):$(LIBDE265_REVISION):$(LIBDE265_AGE) +-libde265_la_LIBADD = -lstdc++ + + libde265_la_SOURCES = \ + acceleration.h \ +@@ -92,7 +91,7 @@ + vui.h + + SUBDIRS = encoder +-libde265_la_LIBADD += encoder/libde265_encoder.la ++libde265_la_LIBADD = encoder/libde265_encoder.la + + if ENABLE_SSE_OPT + SUBDIRS += x86 Added: head/multimedia/libde265/files/patch-libde265_fallback-dct.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_fallback-dct.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/fallback-dct.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/fallback-dct.cc 2015-07-22 17:24:55.690743000 +0200 +@@ -22,7 +22,7 @@ + + #if defined(_MSC_VER) || defined(__MINGW32__) + # include +-#else ++#elif defined(HAVE_ALLOCA_H) + # include + #endif + Added: head/multimedia/libde265/files/patch-libde265_fallback-motion.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_fallback-motion.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/fallback-motion.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/fallback-motion.cc 2015-07-22 17:25:04.707534000 +0200 +@@ -23,7 +23,7 @@ + + #if defined(_MSC_VER) || defined(__MINGW32__) + # include +-#else ++#elif defined(HAVE_ALLOCA_H) + # include + #endif + Added: head/multimedia/libde265/files/patch-libde265_image.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_image.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/image.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/image.cc 2015-07-22 17:32:34.455583000 +0200 +@@ -47,7 +47,7 @@ + #elif _WIN32 + #define ALLOC_ALIGNED(alignment, size) _aligned_malloc((size), (alignment)) + #define FREE_ALIGNED(mem) _aligned_free((mem)) +-#elif __APPLE__ ++#elif defined(HAVE_POSIX_MEMALIGN) + static inline void *ALLOC_ALIGNED(size_t alignment, size_t size) { + void *mem = NULL; + if (posix_memalign(&mem, alignment, size) != 0) { Added: head/multimedia/libde265/files/patch-libde265_motion.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_motion.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/motion.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/motion.cc 2015-07-22 17:25:26.140610000 +0200 +@@ -31,7 +31,7 @@ + + #if defined(_MSC_VER) || defined(__MINGW32__) + # include +-#else ++#elif defined(HAVE_ALLOCA_H) + # include + #endif + Added: head/multimedia/libde265/files/patch-libde265_pps.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_pps.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/pps.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/pps.cc 2015-07-22 17:25:38.546345000 +0200 +@@ -27,7 +27,7 @@ + #include + #if defined(_MSC_VER) || defined(__MINGW32__) + # include +-#else ++#elif defined(HAVE_ALLOCA_H) + # include + #endif + Added: head/multimedia/libde265/files/patch-libde265_refpic.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_refpic.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/refpic.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/refpic.cc 2015-07-22 17:25:52.916195000 +0200 +@@ -26,7 +26,7 @@ + #include + #if defined(_MSC_VER) || defined(__MINGW32__) + # include +-#else ++#elif defined(HAVE_ALLOCA_H) + # include + #endif + Added: head/multimedia/libde265/files/patch-libde265_threads.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_threads.cc Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/threads.cc.orig 2015-07-14 13:51:51.000000000 +0200 ++++ libde265/threads.cc 2015-07-22 17:26:03.712606000 +0200 +@@ -24,7 +24,7 @@ + + #if defined(_MSC_VER) || defined(__MINGW32__) + # include +-#else ++#elif defined(HAVE_ALLOCA_H) + # include + #endif + Added: head/multimedia/libde265/files/patch-libde265_util.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/files/patch-libde265_util.h Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,11 @@ +--- libde265/util.h.orig 2015-07-22 16:48:18.032493000 +0200 ++++ libde265/util.h 2015-07-22 16:48:43.439129000 +0200 +@@ -70,7 +70,7 @@ + namespace std { using namespace std::tr1; } + #endif + +-#if __GNUC__ && GCC_VERSION < 40600 ++#if __GNUC__ && GCC_VERSION < 40600 && !defined(__clang__) + // nullptr was introduced in gcc 4.6, a simple alias should be fine for our use case + #define nullptr NULL + #endif Added: head/multimedia/libde265/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/pkg-descr Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,9 @@ +libde265 is an open source implementation of the h.265 video codec. It is +written from scratch and has a plain C API to enable a simple integration +into other software. + +libde265 supports WPP and tile-based multithreading and includes SSE +optimizations. The decoder includes all features of the Main profile +and correctly decodes almost all conformance streams. + +WWW: http://www.libde265.org Added: head/multimedia/libde265/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libde265/pkg-plist Wed Jul 22 16:32:05 2015 (r392684) @@ -0,0 +1,14 @@ +bin/bjoentegaard +bin/block-rate-estim +bin/enc265 +bin/gen-enc-table +bin/rd-curves +bin/tests +bin/yuv-distortion +include/libde265/de265-version.h +include/libde265/de265.h +lib/libde265.a +lib/libde265.so +lib/libde265.so.0 +lib/libde265.so.0.0.10 +libdata/pkgconfig/libde265.pc