aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ffmpeg-devel
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2011-06-29 22:16:13 +0800
committermm <mm@FreeBSD.org>2011-06-29 22:16:13 +0800
commit3979450862e2e54cd822dea12d5ba02af1fab6ff (patch)
treeb5e9cc1d32fff6898ebdf8d0e7197104c3ff189e /multimedia/ffmpeg-devel
parent1cf74589aaf2295102fd11482bb38717dc563757 (diff)
downloadfreebsd-ports-gnome-3979450862e2e54cd822dea12d5ba02af1fab6ff.tar.gz
freebsd-ports-gnome-3979450862e2e54cd822dea12d5ba02af1fab6ff.tar.zst
freebsd-ports-gnome-3979450862e2e54cd822dea12d5ba02af1fab6ff.zip
Reintroduce OPENCV and FREI0R options and enable by default
Remove SSSE3 and CPUDETECT options (now always on) PR: ports/149889, ports/156803, ports/158289, ports/158331
Diffstat (limited to 'multimedia/ffmpeg-devel')
-rw-r--r--multimedia/ffmpeg-devel/Makefile30
1 files changed, 12 insertions, 18 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile
index c208a9963295..4ed0ac28701a 100644
--- a/multimedia/ffmpeg-devel/Makefile
+++ b/multimedia/ffmpeg-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ffmpeg
DISTVERSION= 2011-06-25
+PORTREVISION= 1
CATEGORIES= multimedia audio ipv6 net
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mm
@@ -15,7 +16,8 @@ DISTNAME= ffmpeg-${GIT_SUFFIX}
MAINTAINER= mm@FreeBSD.org
COMMENT= Realtime audio/video encoder/converter and streaming server
-BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm
+BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm \
+ ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
CONFLICTS= ffmpeg-0.*
@@ -35,22 +37,20 @@ OPTIONS= ALSA "Enable alsa input/output device" off \
AMR_NB "AMR Narrow Band audio encoder (opencore)" off \
AMR_WB "AMR Wide Band audio decoder (opencore)" off \
CELT "Enable CELT/Opus decoding via libcelt" off \
- CPUDETECT "Enable runtime CPU detection" on \
DIRAC "Dirac codec via libdirac" off \
FAAC "FAAC mp4/aac audio encoder" off \
FFSERVER "Build and install ffserver" on \
FREETYPE "Text on top of video frames (freetype2)" on \
- FREI0R "Frei0r wrapper filter" off \
+ FREI0R "Frei0r wrapper filter" on \
GSM "GSM audio codec" off \
LAME "LAME MP3 encoder" off \
- OPENCV "OpenCV video filtering support" off \
+ OPENCV "OpenCV video filtering support" on \
OPENJPEG "JPEG 2000 decoder" off \
OPTIMIZED_CFLAGS "Additional optimizations" off \
RTMP "RTMP[E] support via librtmp" off \
SCHROEDINGER "Dirac codec via libschroedinger" on \
SDL "SDL support (build ffplay)" off \
SPEEX "Speex audio decoder" off \
- SSSE3 "Use binutils from ports (SSSE3 support)" on \
THEORA "Theora encoder (implies OGG)" on \
VAAPI "GPU acceleration support (libva)" off \
VDPAU "Nvidia vdpau support" off \
@@ -89,6 +89,9 @@ COMPAT_HEADERS=libavcodec/avcodec.h \
.include <bsd.port.pre.mk>
+CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
+MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
+
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.elif ${ARCH} == "i386"
@@ -126,16 +129,6 @@ CONFIGURE_ARGS+= --disable-debug
CONFIGURE_ARGS+= --disable-stripping
.endif
-.if !defined(WITHOUT_CPUDETECT)
-CONFIGURE_ARGS+= --enable-runtime-cpudetect
-.endif
-
-.if !defined(WITHOUT_SSSE3)
-BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
-CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
-MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
-.endif
-
.if !defined(WITHOUT_FFSERVER)
USE_RC_SUBR= ffserver
.endif
@@ -241,7 +234,7 @@ CONFIGURE_ARGS+= --disable-libfreetype
.endif
# frei0r
-.if defined(WITH_FREI0R)
+.if !defined(WITHOUT_FREI0R)
BUILD_DEPENDS+= ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
CONFIGURE_ARGS+= --enable-frei0r
.else
@@ -265,8 +258,8 @@ CONFIGURE_ARGS+= --disable-libmp3lame
.endif
# opencv
-.if defined(WITH_OPENCV)
-LIB_DEPENDS+= cv.2:${PORTSDIR}/graphics/opencv
+.if !defined(WITHOUT_OPENCV)
+LIB_DEPENDS+= opencv_imgproc.2:${PORTSDIR}/graphics/opencv
CONFIGURE_ARGS+= --enable-libopencv
.else
CONFIGURE_ARGS+= --disable-libopencv
@@ -422,6 +415,7 @@ post-patch:
s|gsm/gsm.h|gsm.h|g" \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \
+ -e 's|opencv opencv/cxcore.h|opencv-core opencv2/core/core_c.h|g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(WITH_SDL)
@${REINPLACE_CMD} -E \