Index: Makefile =================================================================== RCS file: /home/pcvs/ports/multimedia/mplayer/Makefile,v retrieving revision 1.141 diff -u -r1.141 Makefile --- Makefile 9 Aug 2006 15:17:03 -0000 1.141 +++ Makefile 2 Sep 2006 23:40:56 -0000 @@ -84,7 +84,7 @@ PORTNAME= mplayer PORTVERSION= 0.99.8 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia audio MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ http://www2.mplayerhq.hu/MPlayer/releases/ \ @@ -118,6 +118,7 @@ --enable-menu \ --disable-libfame \ --disable-external-faad \ + --disable-external-vidix \ --disable-tv-v4l \ --disable-liblzo \ --disable-libcdio @@ -133,12 +134,14 @@ OPTIONS+= X11 "Enable X11 support for mplayer's video output" on OPTIONS+= GUI "Enable GTK2 graphical user interface with X11" on OPTIONS+= SDL "Enable SDL video output" off +OPTIONS+= VIDIX "Enable VIDIX video output on supported archs" on OPTIONS+= NVIDIA "Enable experimental nvidia xvmc driver" off OPTIONS+= SKINS "Force dependency on mplayer-skins" on OPTIONS+= FREETYPE "Use freetype for OSD fonts (TrueType!)" on OPTIONS+= RTC "Add support for kernel real time clock timing" off OPTIONS+= ARTS "Enable KDE sound system support" off OPTIONS+= ESOUND "Enable GNOME esound support" off +OPTIONS+= POLYP "Enable polyp sound server support" off OPTIONS+= LIBUNGIF "Enable gif support" on OPTIONS+= AALIB "Enable aalib support" off OPTIONS+= LIBCACA "Enable libcaca support" off @@ -146,6 +149,7 @@ OPTIONS+= LIBDV "Enable libdv support" off OPTIONS+= MAD "Enable mad MPEG audio engine support" off OPTIONS+= DTS "Enable DTS audio codec support" on +OPTIONS+= SPEEX "Enable speex audio codec support" off OPTIONS+= TREMOR "Use built-in tremor instead of libvorbis" off OPTIONS+= XMMS "Enable XMMS plugin support" off OPTIONS+= THEORA "Enable ogg theora video support" off @@ -179,12 +183,17 @@ .endif #Building of vidix dependent shared libs is only possible -#on i386 at the moment. -.if ${ARCH} == "i386" +#on i386 and amd64 at the moment. +.if !defined(WITHOUT_VIDIX) +.if ${ARCH} == "i386" || ${ARCH} == "amd64" USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/mplayer/vidix PLIST_SUB+= VIDIX="" .else -CONFIGURE_ARGS+=--disable-vidix +CONFIGURE_ARGS+=--disable-internal-vidix +PLIST_SUB+= VIDIX="@comment " +.endif +.else +CONFIGURE_ARGS+=--disable-internal-vidix PLIST_SUB+= VIDIX="@comment " .endif @@ -214,14 +223,14 @@ CFLAGS+= -fno-force-addr .endif #MPLAYER_GENERIC_BUILD -.if defined(WITHOUT_X11) -WITHOUT_GUI= yes -BUILD_DEPENDS+= imake:${X_IMAKE_PORT} -CONFIGURE_ARGS+=--disable-x11 -.else +.if !defined(WITHOUT_X11) USE_XLIB= yes +CFLAGS+= -I${X11BASE}/include CONFIGURE_ARGS+=--with-x11libdir=${X11BASE}/lib \ --with-x11incdir=${X11BASE}/include +.else +WITHOUT_GUI= yes +CONFIGURE_ARGS+=--disable-x11 .endif .if defined(WITH_LANG) @@ -259,7 +268,7 @@ PLIST_SUB+= GMPLAYER="@comment " .endif #WITHOUT_GUI -.if !defined(WITHOUT_RTC) +.if defined(WITH_RTC) BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc RUN_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc CONFIGURE_ARGS+= --enable-rtc @@ -277,33 +286,33 @@ PLIST_SUB+= MENCODER="@comment " .endif -.if !defined(WITHOUT_NVIDIA) +.if defined(WITH_NVIDIA) LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver CONFIGURE_ARGS+= --enable-xvmc \ --enable-xvmclib=XvMCNVIDIA .endif -.if !defined(WITHOUT_ARTS) +.if defined(WITH_ARTS) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts CONFIGURE_ARGS+= --enable-arts .else CONFIGURE_ARGS+= --disable-arts .endif -.if !defined(WITHOUT_FRIBIDI) +.if defined(WITH_FRIBIDI) LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi CONFIGURE_ARGS+= --enable-fribidi .else CONFIGURE_ARGS+= --disable-fribidi .endif -.if !defined(WITHOUT_CDPARANOIA) +.if defined(WITH_CDPARANOIA) LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia .else CONFIGURE_ARGS+= --disable-cdparanoia .endif -.if !defined(WITHOUT_LIBCACA) +.if defined(WITH_LIBCACA) BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca .else CONFIGURE_ARGS+= --disable-caca @@ -316,7 +325,7 @@ CONFIGURE_ARGS+= --disable-gif .endif -.if !defined(WITHOUT_LIBDV) +.if defined(WITH_LIBDV) LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv CONFIGURE_ARGS+= --enable-libdv @@ -324,14 +333,14 @@ CONFIGURE_ARGS+= --disable-libdv .endif -.if !defined(WITHOUT_LIRC) +.if defined(WITH_LIRC) LIB_DEPENDS+= lirc_client.0:${PORTSDIR}/comms/lirc CONFIGURE_ARGS+= --enable-lirc .else CONFIGURE_ARGS+= --disable-lirc .endif -.if !defined(WITHOUT_MAD) +.if defined(WITH_MAD) LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad CONFIGURE_ARGS+= --enable-mad \ @@ -340,7 +349,7 @@ CONFIGURE_ARGS+= --disable-mad .endif -.if !defined(WITHOUT_SDL) +.if defined(WITH_SDL) USE_SDL= sdl WITH_AALIB= yes .undef(WITHOUT_AALIB) @@ -350,42 +359,49 @@ CONFIGURE_ARGS+= --disable-sdl .endif -.if !defined(WITHOUT_SVGALIB) +.if defined(WITH_SVGALIB) LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib .else CONFIGURE_ARGS+= --disable-svga .endif -.if !defined(WITHOUT_AALIB) +.if defined(WITH_AALIB) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib .else CONFIGURE_ARGS+= --disable-aa .endif -.if !defined(WITHOUT_THEORA) +.if defined(WITH_THEORA) LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora .else CONFIGURE_ARGS+= --disable-theora .endif -.if !defined(WITHOUT_X264) +.if defined(WITH_X264) LIB_DEPENDS+= x264.49:${PORTSDIR}/multimedia/x264 .else CONFIGURE_ARGS+= --disable-x264 .endif -.if !defined(WITHOUT_ESOUND) +.if defined(WITH_ESOUND) USE_GNOME+= esound .else CONFIGURE_ARGS+= --disable-esd .endif -.if defined(WITHOUT_TREMOR) +.if defined(WITH_POLYP) +CONFIGURE_ARGS+= --enable-polyp +LIB_DEPENDS+= polyp-0.7.so.0:${PORTSDIR}/audio/polypaudio +.else +CONFIGURE_ARGS+= --disable-polyp +.endif + +.if !defined(WITH_TREMOR) CONFIGURE_ARGS+= --disable-internal-tremor LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis .endif -.if !defined(WITHOUT_REALPLAYER) +.if defined(WITH_REALPLAYER) CONFIGURE_ARGS+= --enable-real \ --with-reallibdir=${X11BASE}/lib/RealPlayer/codecs RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer @@ -399,7 +415,7 @@ .endif .endif -.if !defined(WITHOUT_LIVEMEDIA) +.if defined(WITH_LIVEMEDIA) CONFIGURE_ARGS+= --enable-live \ --with-livelibdir=${LOCALBASE}/live RUN_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia @@ -415,7 +431,7 @@ CONFIGURE_ARGS+= --disable-xvid .endif -.if !defined(WITHOUT_XMMS) +.if defined(WITH_XMMS) CONFIGURE_ARGS+= --enable-xmms LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms .else @@ -423,12 +439,20 @@ .endif .if !defined(WITHOUT_DTS) +CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ARGS+= --enable-libdts BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts .else CONFIGURE_ARGS+= --disable-libdts .endif +.if !defined(WITHOUT_SPEEX) +CONFIGURE_ARGS+= --enable-speex +LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex +.else +CONFIGURE_ARGS+= --disable-speex +.endif + .if !defined(WITHOUT_FREETYPE) CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ --enable-freetype @@ -438,7 +462,7 @@ CONFIGURE_ARGS+= --disable-freetype .endif -.if !defined(WITHOUT_XANIM) +.if defined(WITH_XANIM) BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim .else Index: files/patch-libmpcodecs_ve_x264.c =================================================================== RCS file: /home/pcvs/ports/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c,v retrieving revision 1.3 diff -u -r1.3 patch-libmpcodecs_ve_x264.c --- files/patch-libmpcodecs_ve_x264.c 10 Aug 2006 01:07:29 -0000 1.3 +++ files/patch-libmpcodecs_ve_x264.c 2 Sep 2006 23:40:56 -0000 @@ -1,11 +1,31 @@ ---- libmpcodecs/ve_x264.c.orig Wed Aug 9 21:05:29 2006 -+++ libmpcodecs/ve_x264.c Wed Aug 9 21:06:26 2006 -@@ -275,7 +275,7 @@ +--- libmpcodecs/ve_x264.c.orig Sun Jun 11 20:35:41 2006 ++++ libmpcodecs/ve_x264.c Sun Aug 20 12:11:22 2006 +@@ -208,7 +208,7 @@ + }; + + static int parse_cqm(const char *str, uint8_t *cqm, int length, +- h264_module_t *mod, char *matrix_name) { ++ h264_module_t *mod, const char *matrix_name) { + int i; + if (!str) return 0; + for (i = 0; i < length; i++) { +@@ -247,7 +247,10 @@ + mod->param.i_deblocking_filter_beta = deblockbeta; + mod->param.b_cabac = cabac; + ++ mod->param.rc.i_rc_method = X264_RC_CQP; + mod->param.rc.i_qp_constant = qp_constant; ++ if(rf_constant > 0) ++ mod->param.rc.i_rc_method = X264_RC_CRF; + mod->param.rc.i_rf_constant = rf_constant; + if(qp_min > qp_constant) + qp_min = qp_constant; +@@ -275,7 +278,7 @@ "VBV requires both vbv_maxrate and vbv_bufsize.\n"); return 0; } - mod->param.rc.b_cbr = 1; -+ mod->param.rc.i_rc_method = 1; ++ mod->param.rc.i_rc_method = X264_RC_ABR; mod->param.rc.i_bitrate = bitrate; mod->param.rc.f_rate_tolerance = ratetol; mod->param.rc.i_vbv_max_bitrate = vbv_maxrate; Index: files/patch-tremor-codec_internal.h =================================================================== RCS file: files/patch-tremor-codec_internal.h diff -N files/patch-tremor-codec_internal.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-tremor-codec_internal.h 2 Sep 2006 23:40:56 -0000 @@ -0,0 +1,11 @@ +--- tremor/codec_internal.h.orig Sun Aug 20 11:04:15 2006 ++++ tremor/codec_internal.h Sun Aug 20 11:06:05 2006 +@@ -17,6 +17,8 @@ + + #include "codebook.h" + ++void *_vorbis_block_alloc(vorbis_block *vb, long bytes); ++ + typedef void vorbis_look_mapping; + typedef void vorbis_look_floor; + typedef void vorbis_look_residue;