diff options
Diffstat (limited to 'multimedia/ffmpeg/Makefile')
-rw-r--r-- | multimedia/ffmpeg/Makefile | 69 |
1 files changed, 21 insertions, 48 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index 684f032bad7a..2e033f195268 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -6,8 +6,7 @@ # $Id: Makefile 77 2008-07-27 21:50:37Z buhnux $ PORTNAME= ffmpeg -PORTVERSION= 0.5.2 -PORTREVISION= 3 +PORTVERSION= 0.6 PORTEPOCH= 1 CATEGORIES= multimedia audio ipv6 net MASTER_SITES= http://ffmpeg.org/releases/ @@ -26,14 +25,13 @@ USE_GMAKE= yes MAKE_JOBS_SAFE= yes WANT_SDL= yes -OPTIONS= AMR_NB "AMR Narrow Band encoder" off \ - AMR_WB "AMR Wide Band encoder" off \ +OPTIONS= AMR_NB "AMR Narrow Band encoder (opencore)" off \ + AMR_WB "AMR Wide Band encoder (opencore)" off \ DIRAC "Dirac codec via libdirac" off \ FAAC "FAAC mp4/aac audio encoder" off \ FAAD "FAAD mp4/aac audio decoder" on \ FFSERVER "Build and install ffserver" on \ GSM "GSM audio codec" off \ - IPV6 "IPV6 network support" on \ LAME "LAME MP3 encoder" off \ OPENJPEG "JPEG 2000 decoder" off \ OPTIMIZED_CFLAGS "Additional optimizations" off \ @@ -42,9 +40,7 @@ OPTIONS= AMR_NB "AMR Narrow Band encoder" off \ SPEEX "Speex audio decoder" off \ SSSE3 "Enable ssse3 support" on \ THEORA "Theora encoder (implies OGG)" on \ - VHOOK "Video hook support" off \ VORBIS "Vorbis encoder via libvorbis (implies OGG)" on \ - X11GRAB "enable X11 grabbing" off \ X264 "H.264 encoder" on \ XVID "Xvid encoder via xvidcore" on @@ -81,11 +77,11 @@ CONFIGURE_ARGS+=--prefix="${PREFIX}" \ --mandir="${PREFIX}/man" \ --enable-shared \ --enable-gpl \ - --enable-swscale \ --enable-postproc \ --enable-avfilter \ --enable-avfilter-lavf \ --enable-pthreads \ + --enable-x11grab \ --enable-memalign-hack \ --cc="${CC}" \ --extra-cflags="${FFMPEG_CFLAGS} -I${LOCALBASE}/include" \ @@ -96,9 +92,8 @@ SHLIB_VER= 1 PLIST_SUB= SHLIB_VER=${SHLIB_VER} USE_LDCONFIG= yes -DOC_FILES= Changelog COPYING.GPLv2 COPYING.GPLv3 \ - COPYING.LGPLv2.1 COPYING.LGPLv3 \ - CREDITS INSTALL MAINTAINERS README RELEASE +DOC_FILES= Changelog COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 \ + COPYING.LGPLv3 CREDITS INSTALL MAINTAINERS README # under doc subdirectory DOC_DOCFILES= APIchanges avutil.txt faq.html ffmpeg-doc.html \ ffmpeg_powerpc_performance_evaluation_howto.txt \ @@ -108,9 +103,9 @@ DOC_DOCFILES= APIchanges avutil.txt faq.html ffmpeg-doc.html \ PORTDOCS= * .if !defined(WITHOUT_SSSE3) -BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils -CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin -MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin +BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils +CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin +MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin .endif .ifndef(WITHOUT_FFSERVER) @@ -138,7 +133,7 @@ FFMPEG_CFLAGS+= -msse # PORTDOCS .ifndef(NOPORTDOCS) BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html -MAN1+= ffmpeg.1 +MAN1+= ffmpeg.1 ffprobe.1 . ifndef(WITHOUT_FFSERVER) MAN1+= ffserver.1 . endif @@ -150,18 +145,20 @@ CFLAGS+= -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer .endif # amr +.if defined(WITH_AMR_NB) || defined (WITH_AMR_WB) +LIB_DEPENDS+= opencore-amrnb.0:${PORTSDIR}/audio/opencore-amr +.endif + .ifdef(WITH_AMR_NB) -LIB_DEPENDS+= amrnb.3:${PORTSDIR}/audio/libamrnb -CONFIGURE_ARGS+= --enable-libamr-nb --enable-nonfree +CONFIGURE_ARGS+= --enable-libopencore-amrnb --enable-version3 .else -CONFIGURE_ARGS+= --disable-libamr-nb +CONFIGURE_ARGS+= --disable-libopencore-amrnb .endif .ifdef(WITH_AMR_WB) -LIB_DEPENDS+= amrwb.3:${PORTSDIR}/audio/libamrwb -CONFIGURE_ARGS+= --enable-libamr-wb --enable-nonfree +CONFIGURE_ARGS+= --enable-libopencore-amrwb --enable-version3 .else -CONFIGURE_ARGS+= --disable-libamr-wb +CONFIGURE_ARGS+= --disable-libopencore-amrwb .endif # dirac @@ -205,23 +202,6 @@ CONFIGURE_ARGS+= --enable-libgsm CONFIGURE_ARGS+= --disable-libgsm .endif -# vhook -.if defined(WITH_VHOOK) -USE_EFL= imlib2 -LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 -PLIST_SUB+= VHOOK="" -.else -CONFIGURE_ARGS+= --disable-vhook -PLIST_SUB+= VHOOK="@comment " -.endif - -# ipv6 -.ifndef(WITHOUT_IPV6) -CONFIGURE_ARGS+= --enable-ipv6 -.else -CONFIGURE_ARGS+= --disable-ipv6 -.endif - # mp3 .ifdef(WITH_LAME) LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame @@ -282,15 +262,6 @@ FFMPEG_CFLAGS+= -I${LOCALBASE}/include/vorbis CONFIGURE_ARGS+= --disable-libvorbis .endif -# x11grab -.if defined(WITH_X11GRAB) && !defined(WITHOUT_X11) -USE_XORG= x11 xext -CONFIGURE_ARGS+= --enable-x11grab -.else -CONFIGURE_ARGS+= --disable-x11grab -.endif - - # x264 .ifndef(WITHOUT_X264) LIB_DEPENDS+= x264.98:${PORTSDIR}/multimedia/x264 @@ -323,10 +294,12 @@ post-patch: @${REINPLACE_CMD} -E \ -e "s|(EXTRALIBS[[:space:]]*=)|\1-L${LOCALBASE}/lib |g; \ s|%%LOCALBASE%%|${LOCALBASE}|g; \ - s|-pthread|${PTHREAD_LIBS}|g" \ + s|-pthread|${PTHREAD_LIBS}|g; \ + s|gsm/gsm.h|gsm.h|g" \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e 's|-ldl||; s|$$(LIBMAJOR)|${SHLIB_VER}|g;' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + @cd ${WRKSRC}/libavcodec && ${LN} -s x86 i386 && ${LN} -s x86 amd64 .ifdef(WITH_SDL) @${REINPLACE_CMD} -E \ -e 's|sdl-config|${SDL_CONFIG}|g' \ |