svn commit: r384023 - in branches/2015Q2/multimedia: mencoder mplayer mplayer/files
Thomas Zander
riggs at FreeBSD.org
Tue Apr 14 19:28:15 UTC 2015
Author: riggs
Date: Tue Apr 14 19:28:12 2015
New Revision: 384023
URL: https://svnweb.freebsd.org/changeset/ports/384023
Log:
MFH: r383871
Fix runtime crash with certain MPEG2 files on pre-10 systems.
PR: 199283
Approved by: ports-secteam (delphij)
Added:
branches/2015Q2/multimedia/mplayer/files/extra-patch-aligned_alloc
- copied unchanged from r383871, head/multimedia/mplayer/files/extra-patch-aligned_alloc
Modified:
branches/2015Q2/multimedia/mencoder/Makefile
branches/2015Q2/multimedia/mplayer/Makefile
branches/2015Q2/multimedia/mplayer/Makefile.options
branches/2015Q2/multimedia/mplayer/files/patch-configure
Directory Properties:
branches/2015Q2/ (props changed)
Modified: branches/2015Q2/multimedia/mencoder/Makefile
==============================================================================
--- branches/2015Q2/multimedia/mencoder/Makefile Tue Apr 14 19:25:03 2015 (r384022)
+++ branches/2015Q2/multimedia/mencoder/Makefile Tue Apr 14 19:28:12 2015 (r384023)
@@ -3,6 +3,7 @@
PORTNAME= mencoder
PORTVERSION= ${MPLAYER_PORT_VERSION}
+PORTREVISION= 1
COMMENT= Convenient video file and movie encoder
Modified: branches/2015Q2/multimedia/mplayer/Makefile
==============================================================================
--- branches/2015Q2/multimedia/mplayer/Makefile Tue Apr 14 19:25:03 2015 (r384022)
+++ branches/2015Q2/multimedia/mplayer/Makefile Tue Apr 14 19:28:12 2015 (r384023)
@@ -3,6 +3,7 @@
PORTNAME= mplayer
PORTVERSION= ${MPLAYER_PORT_VERSION}
+PORTREVISION= 1
COMMENT= High performance media player supporting many formats
Modified: branches/2015Q2/multimedia/mplayer/Makefile.options
==============================================================================
--- branches/2015Q2/multimedia/mplayer/Makefile.options Tue Apr 14 19:25:03 2015 (r384022)
+++ branches/2015Q2/multimedia/mplayer/Makefile.options Tue Apr 14 19:28:12 2015 (r384023)
@@ -84,6 +84,11 @@ CONFIGURE_ARGS+= --disable-tv-v4l1 \
# Build system handling (including OPTIONS)
# =========================================
+# Support for aligned_alloc
+.if ${OSVERSION} >= 1000000
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-aligned_alloc
+.endif
+
# Supported architectures for runtime CPU detection
.if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ppc"
MPLAYER_RTCPU_SUPPORTED_ARCH= yes
Copied: branches/2015Q2/multimedia/mplayer/files/extra-patch-aligned_alloc (from r383871, head/multimedia/mplayer/files/extra-patch-aligned_alloc)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2015Q2/multimedia/mplayer/files/extra-patch-aligned_alloc Tue Apr 14 19:28:12 2015 (r384023, copy of r383871, head/multimedia/mplayer/files/extra-patch-aligned_alloc)
@@ -0,0 +1,27 @@
+--- configure.orig 2014-12-17 22:02:44.000000000 +0100
++++ configure 2015-03-28 13:56:41.340987552 +0100
+@@ -3798,17 +3808,17 @@
+ echores "$aligned_malloc"
+
+
+-echocheck "memalign()"
++echocheck "aligned_alloc()"
+ # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
+-def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
++def_memalign='#define HAVE_MEMALIGN 0'
+ _memalign=no
+-statement_check malloc.h 'memalign(64, sizeof(char))' && _memalign=yes
++statement_check stdlib.h 'aligned_alloc(32, 32*sizeof(char))' && _memalign=yes
+ if test "$_memalign" = yes ; then
+- def_memalign='#define HAVE_MEMALIGN 1'
++ def_map_memalign='#define memalign(a, b) aligned_alloc(a, b)'
++ def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
+ else
+- def_memalign='#define HAVE_MEMALIGN 0'
+ def_map_memalign='#define memalign(a, b) malloc(b)'
+- darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
++ def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
+ fi
+ echores "$_memalign"
+
+
Modified: branches/2015Q2/multimedia/mplayer/files/patch-configure
==============================================================================
--- branches/2015Q2/multimedia/mplayer/files/patch-configure Tue Apr 14 19:25:03 2015 (r384022)
+++ branches/2015Q2/multimedia/mplayer/files/patch-configure Tue Apr 14 19:28:12 2015 (r384023)
@@ -62,30 +62,6 @@
echocheck "softfloat ABI"
softfloat=yes
cpp_condition_check '' 'defined(__ARM_PCS_VFP) || (!defined(__ARM_PCS) && !defined(__SOFTFP__))' && softfloat=no
-@@ -3798,17 +3808,17 @@
- echores "$aligned_malloc"
-
-
--echocheck "memalign()"
-+echocheck "aligned_alloc()"
- # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
--def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
-+def_memalign='#define HAVE_MEMALIGN 0'
- _memalign=no
--statement_check malloc.h 'memalign(64, sizeof(char))' && _memalign=yes
-+statement_check stdlib.h 'aligned_alloc(32, 32*sizeof(char))' && _memalign=yes
- if test "$_memalign" = yes ; then
-- def_memalign='#define HAVE_MEMALIGN 1'
-+ def_map_memalign='#define memalign(a, b) aligned_alloc(a, b)'
-+ def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
- else
-- def_memalign='#define HAVE_MEMALIGN 0'
- def_map_memalign='#define memalign(a, b) malloc(b)'
-- darwin || def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
-+ def_memalign_hack='#define CONFIG_MEMALIGN_HACK 1'
- fi
- echores "$_memalign"
-
@@ -3914,7 +3924,7 @@
if linux ; then
THREAD_CFLAGS=-D_REENTRANT
More information about the svn-ports-branches
mailing list