aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-11-11 06:24:48 +0800
committerjbeich <jbeich@FreeBSD.org>2015-11-11 06:24:48 +0800
commit80bcfbb7e41d28d18553cb27150ac270c0b8d721 (patch)
tree879770405f2d7b8241b7f4c8ddf3203e2a867ebf /multimedia
parentc14615bc50ff46bcb0de6c666f14936ea414d486 (diff)
downloadfreebsd-ports-graphics-80bcfbb7e41d28d18553cb27150ac270c0b8d721.tar.gz
freebsd-ports-graphics-80bcfbb7e41d28d18553cb27150ac270c0b8d721.tar.zst
freebsd-ports-graphics-80bcfbb7e41d28d18553cb27150ac270c0b8d721.zip
multimedia/libvpx: bring more Chromium defaults
- Add SIZE_LIMIT to work around CVE-2015-4506 - Add MULTIRES and extend POSTPROC - Sort options PR: 203410 Approved by: maintainer timeout (6 weeks) MFH: 2015Q4 Security: 6ca7eddd-d436-486a-b169-b948436bcf14
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libvpx/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
index 845fcee9c7f..47f51369a82 100644
--- a/multimedia/libvpx/Makefile
+++ b/multimedia/libvpx/Makefile
@@ -5,6 +5,7 @@ PORTNAME= libvpx
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.0-488 # tracking www/firefox
DISTVERSIONSUFFIX= -ge67d45d
+PORTREVISION= 1
CATEGORIES= multimedia
MAINTAINER= ashish@FreeBSD.org
@@ -24,12 +25,14 @@ HAS_CONFIGURE= yes
USE_PERL5= build
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DEBUG POSTPROC RUNTIME THREADS SHARED
-OPTIONS_DEFAULT= POSTPROC RUNTIME THREADS SHARED
+OPTIONS_DEFINE= DEBUG MULTIRES POSTPROC RUNTIME SHARED SIZE_LIMIT THREADS
+OPTIONS_DEFAULT=MULTIRES POSTPROC RUNTIME SHARED SIZE_LIMIT THREADS
OPTIONS_EXCLUDE_armv6= RUNTIME
+MULTIRES_DESC= Enable multi-resolution encoding
POSTPROC_DESC= Enable postprocessing
RUNTIME_DESC= Enable runtime CPU detection
SHARED_DESC= Enable shared-library support
+SIZE_LIMIT_DESC=Maximum size allowed by decoder: ${SIZE_LIMIT}
ALL_TARGET=
CONFIGURE_ARGS+=--prefix=${PREFIX} \
@@ -44,10 +47,14 @@ MAKE_ENV= LC_ALL=C
OPTIONS_SUB= SHARED
DEBUG_CONFIGURE_ON= --enable-debug
-POSTPROC_CONFIGURE_ON= --enable-postproc
+MULTIRES_CONFIGURE_ON= --enable-multi-res-encoding
+POSTPROC_CONFIGURE_ON= --enable-postproc --enable-vp9-postproc \
+ --enable-vp9-temporal-denoising
RUNTIME_CONFIGURE_ON= --enable-runtime-cpu-detect
-THREADS_CONFIGURE_OFF= --disable-multithread
SHARED_CONFIGURE_ON= --enable-shared
+SIZE_LIMIT_CONFIGURE_ON=--size-limit=${SIZE_LIMIT}
+SIZE_LIMIT?= 16384x16384 # Chromium; Firefox has 4000x3000
+THREADS_CONFIGURE_OFF= --disable-multithread
SHEBANG_FILES= build/make/ads2gas.pl