From owner-svn-ports-head@FreeBSD.ORG Sat Nov 9 12:21:07 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 66B4439E; Sat, 9 Nov 2013 12:21:07 +0000 (UTC) (envelope-from mva@FreeBSD.org) 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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3AFF32ABB; Sat, 9 Nov 2013 12:21:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rA9CL7fr061849; Sat, 9 Nov 2013 12:21:07 GMT (envelope-from mva@svn.freebsd.org) Received: (from mva@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rA9CL6JB061847; Sat, 9 Nov 2013 12:21:06 GMT (envelope-from mva@svn.freebsd.org) Message-Id: <201311091221.rA9CL6JB061847@svn.freebsd.org> From: Marcus von Appen Date: Sat, 9 Nov 2013 12:21:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333283 - in head/multimedia/libav: . 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.14 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: Sat, 09 Nov 2013 12:21:07 -0000 Author: mva Date: Sat Nov 9 12:21:06 2013 New Revision: 333283 URL: http://svnweb.freebsd.org/changeset/ports/333283 Log: - Unbreak build on 10.x and -CURRENT - Use a modern GCC toolchain to unbreak the build on 8.x - Force 32-bit mode on i386 - Enhance default OPTIONs for a better usability of the port Supported by: John Van Sickle Added: head/multimedia/libav/files/ head/multimedia/libav/files/patch-libavutil_x86_asm.h (contents, props changed) Modified: head/multimedia/libav/Makefile Modified: head/multimedia/libav/Makefile ============================================================================== --- head/multimedia/libav/Makefile Sat Nov 9 12:18:45 2013 (r333282) +++ head/multimedia/libav/Makefile Sat Nov 9 12:21:06 2013 (r333283) @@ -2,6 +2,7 @@ PORTNAME= libav PORTVERSION= 9.10 +PORTREVISION= 1 CATEGORIES= multimedia audio ipv6 net MASTER_SITES= http://libav.org/releases/ @@ -26,6 +27,8 @@ CONFIGURE_ARGS+= --prefix="${PREFIX}" \ --enable-pthreads \ --enable-shared \ --enable-runtime-cpudetect \ + --disable-debug \ + --cc="${CC}" \ --disable-avserver OPTIONS_DEFINE= ALSA AMR_NB AMR_WB BZIP2 CDIO FAAC FDK_AAC FREETYPE FREI0R \ @@ -34,7 +37,7 @@ OPTIONS_DEFINE= ALSA AMR_NB AMR_WB BZIP2 VO_AACENC VO_AMRWBENC VORBIS VPX X264 XVID ZLIB OPTIONS_DEFAULT= BZIP2 FREETYPE FREI0R GNUTLS OPENCV SCHROEDINGER \ - THEORA VPX X264 XVID + THEORA VO_AACENC VORBIS VPX X264 XVID ZLIB FDK_AAC_DESC= AAC audio encoding via Fraunhofer FDK ILBC_DESC= iLBC en/decoding via libilbc @@ -150,6 +153,14 @@ USE_OPENSSL= yes .include +.if ${ARCH} == "i386" +CONFIGURE_ARGS+= --extra-cflags=-m32 +.endif + +.if ${OSVERSION} < 900000 +USE_GCC= 4.6+ +.endif + .if ${HAVE_SDL:Msdl} USE_SDL+= sdl MAN1+= avplay.1 Added: head/multimedia/libav/files/patch-libavutil_x86_asm.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libav/files/patch-libavutil_x86_asm.h Sat Nov 9 12:21:06 2013 (r333283) @@ -0,0 +1,11 @@ +--- libavutil/x86/asm.h.orig 2013-11-07 22:15:35.000000000 +0100 ++++ libavutil/x86/asm.h 2013-11-07 22:15:52.000000000 +0100 +@@ -68,7 +68,7 @@ + typedef int x86_reg; + #endif + +-#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE)) ++#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE && !defined(__clang__))) + #define HAVE_6REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE || HAVE_EBP_AVAILABLE)) + + #if ARCH_X86_64 && defined(PIC)