diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-12 01:53:07 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-12 01:53:07 +0000 |
commit | 326e416cf00e0b7bf58387be2a8e7f6ab4774bfe (patch) | |
tree | 992cf22972293b94b5286107b3526a6a1872bf34 /multimedia | |
parent | gtkglext shared lib version was changed from libgtkglext-x11-1.0.so.2 to (diff) |
- Update to the latest mplayer release, 1.0pre8.
- OPTIONify
- Due to some changes in the official developent tree, some of our local
patches became obsolete and where removed.
PR: ports/99871
Submitted by: maintainer
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mplayer/Makefile | 676 | ||||
-rw-r--r-- | multimedia/mplayer/distinfo | 9 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-CVE-2006-1502 | 69 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-TOOLS-cpuinfo.c | 19 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-ad | 169 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-ae | 50 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-bswap.h | 4 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libavcodec-bswap.h | 20 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libdha-pci_freebsd.c | 14 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libfaad2-common.h | 13 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c | 112 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libmpdemux_demux_mov.c | 60 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libmpdemux_demuxer.h | 37 | ||||
-rw-r--r-- | multimedia/mplayer/files/patch-libmpdvdkit2-dvd_reader.c | 22 | ||||
-rw-r--r-- | multimedia/mplayer/files/pkg-message.in | 11 | ||||
-rw-r--r-- | multimedia/mplayer/pkg-descr | 14 | ||||
-rw-r--r-- | multimedia/mplayer/pkg-plist | 49 |
17 files changed, 299 insertions, 1049 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index 9fb1b5ad8438..aafbab5b9eff 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -4,12 +4,9 @@ # with lots of help from Vladimir Kushnir # $FreeBSD$ # -# There are many knobs to tune mplayer towards your specific wishes -# and preferences. -# You can activate a knob by typing something like -# "make -DKNOB" or "make KNOB=yes" instead of just "make" # -# A description of the several possibilities is available here: +# Some of the knobs are not tunable by the OPTIONS framework. These are +# explained here in detail. # # Core funcionality: # @@ -19,75 +16,13 @@ # preferences. # If you want to build a generic package with certain fixed options, # suitable for any CPU within ${ARCH}, define this knob. -# Note: The following knobs will have no effect in this case! -# -# WITH_OPTIMIZED_CFLAGS -# default: undefined -# define if you want to enable -O3 -ffast-math -fomit-frame-pointer -# on gcc build commands. This will improve speed on most machines. -# -# WITHOUT_RUNTIME_CPUDETECTION -# default: undefined -# by default, mplayer is built with support for changing the used cpu -# instruction set while playing. This is necessary for package building. -# If you want to compile a specific version of mplayer working faster -# but only on your cpu type, then define this knob. -# If you define this, there are several additional knobs to explicitly -# disable some possible CPU features. See below. -# -# WITH_NVIDIA -# default: disabled -# Enable nvidia XVMC support for nvidia video cards -# Note: This is highly experimental at the moment and works only for -# MPEG1/2 using -vo xvmc -vc ffmpeg12mc on FreeBSD-5 -# -# WITHOUT_MENCODER -# default: undefined -# the default is to build mplayer with mencoder. If you're sure that you -# don't want to encode or recode any media file, then define this. -# -# WITHOUT_X11 -# default: undefined -# the default is to build mplayer with X11 support because of its capabilities -# as a video player. If you don't want to install any X11 environment and use -# mplayer as a multi-format audio-only player, this one is for you. -# -# WITH_GTK1|WITH_GTK2 -# default: autodetect GTK1 -# if you want mplayer to have gui abilities, you can use this knob to define -# which graphical toolkit set mplayer is built with. -# It defaults to detect and use GTK1 if it finds a working installation on the -# system. This can be overridden by choosing WITH_GTK2 or disable graphical -# user interface by defining WITHOUT_GUI -# Note: If you define WITH_GTK* *and* WITHOUT_GUI, mplayer will be built without -# gui capabilities. -# The GTK2 patches are not official ones, so they should be considered -# as experimental. -# -# WITHOUT_GUI -# default: undefined -# normally mplayer comes with gmplayer if gtk is installed on the system. -# If you want to force mplayer to disable the graphical user interface and -# build without gui ability, define this. -# -# WITHOUT_SKINS -# default: undefined -# removes the run dependency on the mplayer-skins port, _even if_ built with -# GUI. This is useful e.g. if you don't want the skins installed system-wide. -# Please note that 'gmplayer' *must* have at least one default skin to run. -# -# WITHOUT_FREETYPE -# default: undefined -# since freetype is installed on almost any system people might want -# to run mplayer on, this port now defaults to freetype unless not -# defined otherwise -# +# Note: Other knobs and especially OPTIONS # # CPU features: # -# The following is only of interest if you have enabled -# WITHOUT_RUNTIME_CPUDETECTION -# Further, the correct instruction set of your processor is normally +# The following is only of interest if you haven't enabled +# RTCPU in your OPTIONS selection. +# The correct instruction set of your processor is normally # auto-detected, so there is probably no necessity to change them. # # WITHOUT_MMX @@ -106,19 +41,13 @@ # default: autodetected # disables all mmx2 and sse/sse2 code # CAUTION: There are some Athlon CPUs which claim to be sse-able but -# they aren't. If you have strange problems on this subject, try +# aren't. If you encounter strange problems on such a CPU, try # to build mplayer with this knob and report the problem # NOTE: SSE is available only if "options CPU_ENABLE_SSE" in your -# kernel config. This is standard for 5.x systems on I686_CPU and above. -# 4.x users will have to define this explicitly. -# -# WITH_RTC -# default: undefined -# This option enables support for real time clock timing instead of -# defaulting to usleep() timing. This can improve cpu load as well -# as run-time accuracy. +# kernel config. This is standard for 5.x and newer systems on I686_CPU +# and later. 4.x users will have to define this explicitly. # -# WITH_KERN_HZ +# WITH_KERN_HZ=<frequency> # default: 1024 # This option allows you to control the default kern.hz when using RTC support. # If you have a older/slower processor you may want to lower the default level. @@ -126,12 +55,8 @@ # CAUTION: lower than 512 may produce jerky video. # # Feature options: -# These options influence, which libraries mplayer is linked to. -# Note: The libraries are needed to play the particular files under -# particular circumstances. -# ("autodetect" in this sections means: If the ports system finds -# the libary on your system, it is used, otherwise not. -# If you define it, it will be built and installed as dependency.) +# These options influence some general behaviour of mplayer. Most of the featues, +# for example all the codecs, are selected via the OPTIONS framework. # # WITH_DVD_DEVICE=/path/to/desired/device # default 5.x: /dev/acd0 @@ -144,122 +69,10 @@ # default 4.x: /dev/acd0c # This option changes the default cdrom device, maybe useful for VCDs # -# WITH_LIBDVDNAV -# default: autodetect -# NOTE: This is disabled in the development tree at the moment -# because it simply doesn't work, so defining it has no -# effect until it works again. -# -# WITH_LIBUNGIF -# default: autodetect -# -# WITH_ARTS -# default: autodetect -# Note: arts audio output cannot work together with mplayer's gtk1-gui -# because of conflicting glib versions, so it it is disabled if -# mplayer is built with gtk1 graphical user interface -# -# WITHOUT_ARTS -# default: undefined -# By setting this option you can explicitly override WITH_ARTS or -# autodetection if arts is found. Some configurations experienced -# problems with arts, so this knob is provided to manually exclude -# it from build. -# -# WITH_FRIBIDI -# default: autodetect -# -# WITH_CDPARANOIA -# default: autodetect -# -# WITH_LIBCACA -# default: autodetect -# -# WITH_LIBDV -# default: autodetect -# -# WITH_LIRC -# default: autodetect -# -# WITH_MAD -# default: autodetect -# -# WITH_SVGALIB -# default: autodetect -# -# WITH_AALIB -# default: autodetect -# -# WITH_THEORA -# default: autodetect -# -# WITH_X264 -# default: autodetect -# -# WITH_TREMOR -# default: autodetect -# By setting this option mplayer will use libtremor (integer only vorbis -# decoding lib) instead of libvorbis even if libvorbis is installed. -# Note: This is disabled at the moment due to unresolved build problems -# -# WITH_SDL -# default: autodetect -# (implies WITH_AALIB) -# -# WITH_ESOUND -# default: autodetect -# -# WITHOUT_ESOUND -# default: undefined -# By setting this option you can explicitly override WITH_ESOUND or -# autodetection if esound is found. Some configurations experienced -# problems with esound, so this knob is provided to manually exclude -# it from build. -# -# WITH_VORBIS -# default: autodetect -# If vorbis libs are not available on the system, mplayer includes -# an internal vorbis codec based on tremor. If the libs are present -# or this knob is defined, mplayer links to the shared system-wide -# installation of ogg/vorbis. -# -# WITH_XANIM -# default: autodetect -# -# WITH_REALPLAYER -# default: autodetect -# -# WITH_LIVEMEDIA -# default: autodetect -# -# WITH_MATROSKA -# default: autodetect -# -# WITH_XVID -# default: autodetect -# -# WITH_LZO -# default: autodetect -# -# WITH_XMMS -# default: autodetect -# -# WITH_DTS -# default: autodetect -# -# WITH_LANG +# WITH_LANG=<your choice> # default: en # Enables language support bg, cz, de, dk, en, es, fr, gr, hu, it, ko, nl, no, pl, pt_BR, ro, ru, sk, tr, uk, zh # -# WITHOUT_WIN32_CODECS -# default: undefined -# By default, mplayer depends on and uses the win32-codecs collection. -# Of course, thanks to Microsoft's very cool hyper-super-multi-platform -# support, this is only available on x86 architecture. -# If you're working on x86 and want to disable using of the windows codecs, -# define this knob. -# -# # Additional knobs: # # NOPORTDOCS @@ -268,13 +81,9 @@ # documentation. If you define this, only the manpage is going # to be installed. # -# WITHOUT_IPV6 -# default: undefined -# This knob disables mplayer's ipv6 protocol family capabilities. PORTNAME= mplayer -PORTVERSION= 0.99.7 -PORTREVISION= 15 +PORTVERSION= 0.99.8 CATEGORIES= multimedia audio MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ http://www2.mplayerhq.hu/MPlayer/releases/ \ @@ -286,15 +95,11 @@ MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ ftp://ftp.lug.udel.edu/MPlayer/releases/ \ ftp://mirrors.xmission.com/MPlayer/releases/ \ http://www.rrr.de/~riggs/mplayer/ -DISTNAME= MPlayer-1.0pre7try2 +DISTNAME= MPlayer-1.0pre8 MAINTAINER= riggs@rrr.de COMMENT= High performance media player/encoder supporting many formats -PATCH_SITES= ${MASTER_SITE_LOCAL} -PATCH_SITE_SUBDIR= tmclaugh -PATCH_DIST_STRIP= -p1 - LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png USE_BZIP2= yes @@ -312,248 +117,113 @@ CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \ --enable-menu \ --disable-libfame \ --disable-external-faad \ - --disable-tv-v4l + --disable-tv-v4l \ + --disable-liblzo \ + --disable-libcdio -.if !defined(MPLAYER_GENERIC_BUILD) -.if defined(WITHOUT_X11) -WITHOUT_GUI= yes -BUILD_DEPENDS+= imake:${X_IMAKE_PORT} -CONFIGURE_ARGS+=--disable-x11 -.else -USE_XLIB= yes -CONFIGURE_ARGS+=--with-x11libdir=${X11BASE}/lib \ - --with-x11incdir=${X11BASE}/include -.endif +OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off -.if defined(WITH_LANG) -CONFIGURE_ARGS+=--language=${WITH_LANG} +#Collect OPTIONS menu +.if !defined(MPLAYER_GENERIC_BUILD) +OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on +OPTIONS+= OCFLAGS "Use optimized compiler flags" on +OPTIONS+= MENCODER "Support encoding of multimedia files" on +OPTIONS+= IPV6 "Include inet6 network support" on +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+= 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+= LIBUNGIF "Enable gif support" on +OPTIONS+= AALIB "Enable aalib support" off +OPTIONS+= LIBCACA "Enable libcaca support" off +OPTIONS+= SVGALIB "Enable svgalib support" off +OPTIONS+= LIBDV "Enable libdv support" off +OPTIONS+= MAD "Enable mad MPEG audio engine support" off +OPTIONS+= DTS "Enable DTS audio codec support" on +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 +OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on +OPTIONS+= X264 "Enable x264 (H.264) video codec support" off +OPTIONS+= XANIM "Enable xanim DLL support" off +OPTIONS+= XVID "Enable XVID video codec support" on +OPTIONS+= REALPLAYER "Enable real player plugin" off +OPTIONS+= LIVEMEDIA "Enable LIVE555 streaming support" off +OPTIONS+= FRIBIDI "Enable FriBiDi support" off +OPTIONS+= LIRC "Enable lirc support" off +OPTIONS+= CDPARANOIA "Enable cdparanoia support" off .endif -.else -USE_XLIB= yes -CONFIGURE_ARGS+=--with-x11libdir=${X11BASE}/lib \ - --with-x11incdir=${X11BASE}/include -.endif #MPLAYER_GENERIC_BUILD WANT_GNOME= yes WANT_SDL= yes MAN1= mplayer.1 MANCOMPRESSED= no -CONFFILES= example.conf input.conf menu.conf -TOOLFILES= calcbpp.pl countquant.pl \ - dvd2divxscript.pl menc2pass \ - mencvcd mp.pl sws-test w32codec_dl.pl \ - x2mpsub.sh +SUB_FILES= pkg-message -.include <bsd.port.pre.mk> +CONFFILES= example.conf input.conf menu.conf dvb-menu.conf +TOOLFILES= calcbpp.pl countquant.pl dvd2divxscript.pl \ + menc2pass mencvcd mp.pl subedit.pl subsearch.sh \ + sws-test w32codec_dl.pl wma2ogg.pl x2mpsub.sh -# Can't run mplayer/nvidia-driver WITH_NVIDIA on FreeBSD 4.X now -.if ${OSVERSION} < 500000 && defined(WITH_NVIDIA) -IGNORE= does not run on 4.x when WITH_NVIDIA is defined -.endif +.include <bsd.port.pre.mk> #Building of vidix dependent shared libs is only possible #on i386 at the moment. .if ${ARCH} == "i386" -INSTALLS_SHLIB= yes -LDCONFIG_DIRS= %%PREFIX%%/lib %%PREFIX%%/lib/mplayer/vidix +USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/mplayer/vidix PLIST_SUB+= VIDIX="" .else CONFIGURE_ARGS+=--disable-vidix PLIST_SUB+= VIDIX="@comment " .endif -#.if exists(${LOCALBASE}/modules/rtc.ko) -#WITH_RTC= yes -#.endif - -#.if exists(${X11BASE}/lib/libXvMCNVIDIA.so.1) -#WITH_NVIDIA= yes -#.endif - -.if exists(${LOCALBASE}/lib/libfribidi.so.0) -WITH_FRIBIDI= yes -.endif - -.if !defined(WITHOUT_ARTS) && exists(${LOCALBASE}/lib/libartsc.so.0) -WITH_ARTS= yes -.endif - -.if exists(${LOCALBASE}/lib/libcdda_paranoia.so) -WITH_CDPARANOIA= yes -.endif - -.if exists(${LOCALBASE}/lib/libcaca.a) -WITH_LIBCACA= yes -.endif - -.if exists(${LOCALBASE}/lib/libdv.so.4) -WITH_LIBDV= yes -.endif - -.if exists(${LOCALBASE}/lib/libungif.so.5) -WITH_LIBUNGIF= yes -.endif - -.if exists(${LOCALBASE}/lib/liblirc_client.so.0) -WITH_LIRC= yes -.endif - -.if exists(${LOCALBASE}/lib/libmad.so.2) -WITH_MAD= yes -.endif - -.if exists(${LOCALBASE}/lib/libvga.so.1) -WITH_SVGALIB= yes -.endif - -.if exists(${LOCALBASE}/lib/libtheora.so.2) -WITH_THEORA= yes -.endif - -.if exists(${LOCALBASE}/lib/libx264.so.47) -WITH_X264= yes -.endif - -.if exists(${LOCALBASE}/lib/libaa.so.1) -WITH_AALIB= yes -.endif - -.if ${HAVE_SDL:Msdl}!="" -WITH_SDL= yes -WITH_AALIB= yes -.endif - -.if !defined(WITHOUT_ESOUND) && ${HAVE_GNOME:Mesound}!="" -WITH_ESOUND= yes -.endif - -.if exists(${LOCALBASE}/lib/libvorbis.so.3) -WITH_VORBIS= yes -.endif - -.if exists(${LOCALBASE}/lib/libjpeg.so.9) -LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg -.endif - -.if exists(${X11BASE}/bin/xanim) -WITH_XANIM= yes -.endif - -.if exists(${X11BASE}/lib/RealPlayer/realplay.bin) -WITH_REALPLAYER= yes -.endif - -.if exists(${LOCALBASE}/live/liveMedia/libliveMedia.a) -WITH_LIVEMEDIA= yes -.endif - -.if exists(${LOCALBASE}/lib/libxvidcore.so) -WITH_XVID= yes -.endif - -.if exists(${X11BASE}/lib/libxmms.so) -WITH_XMMS= yes -.endif - -.if exists(${LOCALBASE}/lib/libdts.a) -WITH_DTS= yes -.endif - -.if exists(${LOCALBASE}/lib/liblzo.so) -WITH_LZO= yes -.endif - -.if exists(${LOCALBASE}/lib/libfreetype.so.9) && !defined(WITHOUT_FREETYPE) -WITH_FREETYPE= yes -.endif - # Esablish de-facto dependencies for either building generic mplayer # binary-suitable package or custom build .if defined(MPLAYER_GENERIC_BUILD) -#Generic build includes ipv6 on FreeBSD -CATEGORIES+= ipv6 #Compiler flags -CFLAGS= #let mplayer decide on this -CONFIGURE_ARGS+=--enable-runtime-cpudetection -#GUI -USE_GNOME+= gtk12 -.if defined(PKGNAMESUFFIX) -PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gtk -.else -PKGNAMESUFFIX= -gtk -.endif -CONFIGURE_ARGS+= --enable-gui -PLIST_SUB+= GMPLAYER="" -RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/Skin:${PORTSDIR}/multimedia/mplayer-skins -#RTC -CONFIGURE_ARGS+= --disable-rtc -#lame for mencoder -LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame -#mencoder -MLINKS+= mplayer.1 mencoder.1 -PLIST_SUB+= MENCODER="" -#ARTS -CONFIGURE_ARGS+= --disable-arts -#Fribidi -CONFIGURE_ARGS+= --disable-fribidi -#Cdparanoia -CONFIGURE_ARGS+= --disable-cdparanoia -#Caca -CONFIGURE_ARGS+= --disable-caca -#Libungif -CONFIGURE_ARGS+= --disable-gif -#Libdv -CONFIGURE_ARGS+= --disable-libdv -#Mad -CONFIGURE_ARGS+= --disable-mad -#Theora -CONFIGURE_ARGS+= --disable-theora -#x264 -CONFIGURE_ARGS+= --disable-x264 -#Svgalib -LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib -#Aalib -LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib -#SDL -USE_SDL= sdl -#Esound -CONFIGURE_ARGS+= --disable-esd -#Vorbis -LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis -#Live media -CONFIGURE_ARGS+= --disable-live -#XviD -CONFIGURE_ARGS+= --enable-xvid -LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid -#LZO -CONFIGURE_ARGS+= --disable-liblzo -#Freetype -CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ - --enable-freetype -LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 -#XAnim codecs -BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim -CONFIGURE_ARGS+= --enable-xanim \ - --with-xanimlibdir=${X11BASE}/lib/X11/xanim -#Optical drive descriptors -.if ${OSVERSION} < 500000 -DEFAULT_DVD_DEVICE=/dev/acd0c -DEFAULT_CDROM_DEVICE=/dev/acd0c -.else -DEFAULT_DVD_DEVICE=/dev/acd0 -DEFAULT_CDROM_DEVICE=/dev/acd0 -.endif +CFLAGS= #let mplayer decide the flags + +.for module in ARTS FRIBIDI CDPARANOIA LIBCACA LIBUNGIF LIBDV MAD THEORA X264 FRIBIDI LIVEMEDIA ESOUND OCFLAGS RTC MENCODER NVIDIA LIRC XMMS +WITHOUT_${module}=yes +.undef(WITH_${module}) +.endfor + +.for module in IPV6 GUI SVGALIB AALIB SDL XVID FREETYPE XANIM RTCPU WIN32 X11 +WITH_${module}=yes +.undef(WITHOUT_${module}) +.endfor + +.undef(WITH_DVD_DEVICE) +.undef(WITH_CDROM_DEVICE) +.undef(WITH_LANG) + #Kernel granularity DEFAULT_KERN_HZ=1024 -.else #MPLAYER_GENERIC_BUILD CFLAGS+= -fno-force-addr -.if defined(DEBUG) -CONFIGURE_ARGS+= --enable-debug +.endif #MPLAYER_GENERIC_BUILD + +.if defined(WITHOUT_X11) +WITHOUT_GUI= yes +BUILD_DEPENDS+= imake:${X_IMAKE_PORT} +CONFIGURE_ARGS+=--disable-x11 +.else +USE_XLIB= yes +CONFIGURE_ARGS+=--with-x11libdir=${X11BASE}/lib \ + --with-x11incdir=${X11BASE}/include .endif -.if defined(WITH_OPTIMIZED_CFLAGS) +.if defined(WITH_LANG) +CONFIGURE_ARGS+=--language=${WITH_LANG} +.endif + +.if !defined(WITHOUT_OCFLAGS) CFLAGS+= -O3 -ffast-math -fomit-frame-pointer .endif @@ -563,51 +233,34 @@ CONFIGURE_ARGS+= --disable-inet6 CATEGORIES+= ipv6 .endif -.if ${HAVE_GNOME:Mgtk12}!="" && !defined(WITH_GTK2) && !defined(WITHOUT_GUI) -WITH_GTK1= yes -.endif - .if !defined(WITHOUT_GUI) PLIST_SUB+= GMPLAYER="" .if !defined(WITHOUT_SKINS) RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/Skin:${PORTSDIR}/multimedia/mplayer-skins .endif -.else -PLIST_SUB+= GMPLAYER="@comment " -.endif -.if defined(WITH_GTK2) && !defined(WITH_GTK1) && !defined(WITHOUT_GUI) .if ( ${OSVERSION} < 500000 ) USE_GCC= 3.4 .endif + USE_GNOME+= gtk20 -PATCHFILES+= MPlayer-1.0pre7try2-gtk2.patch +CONFIGURE_ARGS+= --enable-gui + .if defined(PKGNAMESUFFIX) PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gtk2 .else PKGNAMESUFFIX= -gtk2 .endif -CONFIGURE_ARGS+= --enable-gui --enable-gtk2 + .if defined(WITH_LANG) WITH_LANG= "" .endif -.endif -.if defined(WITH_GTK1) && !defined(WITH_GTK2) && !defined(WITHOUT_GUI) -USE_GNOME+= gtk12 -.if defined(PKGNAMESUFFIX) -PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-gtk .else -PKGNAMESUFFIX= -gtk -.endif -CONFIGURE_ARGS+= --enable-gui -.endif - -.if defined(WITHOUT_GUI) -CONFIGURE_ARGS+= --disable-gui -.endif +PLIST_SUB+= GMPLAYER="@comment " +.endif #WITHOUT_GUI -.if defined(WITH_RTC) +.if !defined(WITHOUT_RTC) BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc RUN_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc CONFIGURE_ARGS+= --enable-rtc @@ -625,47 +278,46 @@ CONFIGURE_ARGS+= --disable-mencoder PLIST_SUB+= MENCODER="@comment " .endif -.if defined(WITH_NVIDIA) +.if !defined(WITHOUT_NVIDIA) LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver CONFIGURE_ARGS+= --enable-xvmc \ --enable-xvmclib=XvMCNVIDIA .endif -.if defined(WITH_ARTS) && !defined(WITHOUT_ARTS) && !defined(WITH_GTK1) +.if !defined(WITHOUT_ARTS) LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts - CONFIGURE_ARGS+= --enable-arts .else CONFIGURE_ARGS+= --disable-arts .endif -.if defined(WITH_FRIBIDI) +.if !defined(WITHOUT_FRIBIDI) LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi CONFIGURE_ARGS+= --enable-fribidi .else CONFIGURE_ARGS+= --disable-fribidi .endif -.if defined(WITH_CDPARANOIA) +.if !defined(WITHOUT_CDPARANOIA) LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia .else CONFIGURE_ARGS+= --disable-cdparanoia .endif -.if defined(WITH_LIBCACA) +.if !defined(WITHOUT_LIBCACA) BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca .else CONFIGURE_ARGS+= --disable-caca .endif -.if defined(WITH_LIBUNGIF) +.if !defined(WITHOUT_LIBUNGIF) LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif #CONFIGURE_ARGS+= --enable-gif .else CONFIGURE_ARGS+= --disable-gif .endif -.if defined(WITH_LIBDV) +.if !defined(WITHOUT_LIBDV) LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv CONFIGURE_ARGS+= --enable-libdv @@ -673,14 +325,14 @@ CONFIGURE_ARGS+= --enable-libdv CONFIGURE_ARGS+= --disable-libdv .endif -.if defined(WITH_LIRC) +.if !defined(WITHOUT_LIRC) LIB_DEPENDS+= lirc_client.0:${PORTSDIR}/comms/lirc CONFIGURE_ARGS+= --enable-lirc .else CONFIGURE_ARGS+= --disable-lirc .endif -.if defined(WITH_MAD) +.if !defined(WITHOUT_MAD) LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad CONFIGURE_ARGS+= --enable-mad \ @@ -689,38 +341,41 @@ CONFIGURE_ARGS+= --enable-mad \ CONFIGURE_ARGS+= --disable-mad .endif -.if defined(WITH_SVGALIB) +.if !defined(WITHOUT_SDL) +USE_SDL= sdl +WITH_AALIB= yes +.undef(WITHOUT_AALIB) +WITH_SVGALIB= yes +.undef(WITHOUT_SVGALIB) +.else +CONFIGURE_ARGS+= --disable-sdl +.endif + +.if !defined(WITHOUT_SVGALIB) LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib +.else +CONFIGURE_ARGS+= --disable-svga .endif -.if defined(WITH_AALIB) +.if !defined(WITHOUT_AALIB) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib +.else +CONFIGURE_ARGS+= --disable-aa .endif -.if defined(WITH_THEORA) +.if !defined(WITHOUT_THEORA) LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora .else CONFIGURE_ARGS+= --disable-theora .endif -.if defined(WITH_X264) +.if !defined(WITHOUT_X264) LIB_DEPENDS+= x264.47:${PORTSDIR}/multimedia/x264 .else CONFIGURE_ARGS+= --disable-x264 .endif -#.if defined(WITH_TREMOR) -#LIB_DEPENDS+= vorbisidec.1:${PORTSDIR}/audio/libtremor -#CONFIGURE_ARGS+= --enable-tremor -#.else -#CONFIGURE_ARGS+= --disable-tremor -#.endif - -.if defined(WITH_SDL) -USE_SDL= sdl -.endif - -.if defined(WITH_ESOUND) && !defined(WITHOUT_ESOUND) +.if !defined(WITHOUT_ESOUND) USE_GNOME+= esound .if defined(PKGNAMESUFFIX) PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound @@ -731,19 +386,21 @@ PKGNAMESUFFIX= -esound CONFIGURE_ARGS+= --disable-esd .endif -.if defined(WITH_VORBIS) +.if defined(WITHOUT_TREMOR) CONFIGURE_ARGS+= --disable-internal-tremor LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis .endif -.if defined(WITH_REALPLAYER) +.if !defined(WITHOUT_REALPLAYER) CONFIGURE_ARGS+= --enable-real \ --with-reallibdir=${X11BASE}/lib/RealPlayer/codecs RUN_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer BUILD_DEPENDS+= realplay:${PORTSDIR}/multimedia/linux-realplayer +.else +CONFIGURE_ARGS+= --disable-real .endif -.if defined(WITH_LIVEMEDIA) +.if !defined(WITHOUT_LIVEMEDIA) CONFIGURE_ARGS+= --enable-live \ --with-livelibdir=${LOCALBASE}/live RUN_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia @@ -752,28 +409,28 @@ BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/live CONFIGURE_ARGS+= --disable-live .endif -.if defined(WITH_XVID) +.if !defined(WITHOUT_XVID) CONFIGURE_ARGS+= --enable-xvid LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid -.endif - -.if defined(WITH_LZO) -LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo .else -CONFIGURE_ARGS+= --disable-liblzo +CONFIGURE_ARGS+= --disable-xvid .endif -.if defined(WITH_XMMS) +.if !defined(WITHOUT_XMMS) CONFIGURE_ARGS+= --enable-xmms LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms +.else +CONFIGURE_ARGS+= --disable-xmms .endif -.if defined(WITH_DTS) +.if !defined(WITHOUT_DTS) CONFIGURE_ARGS+= --enable-libdts BUILD_DEPENDS+= ${LOCALBASE}/lib/libdts.a:${PORTSDIR}/multimedia/libdts +.else +CONFIGURE_ARGS+= --disable-libdts .endif -.if defined(WITH_FREETYPE) +.if !defined(WITHOUT_FREETYPE) CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ --enable-freetype LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 @@ -782,7 +439,7 @@ RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/multimedia/mplayer-fo CONFIGURE_ARGS+= --disable-freetype .endif -.if defined(WITH_XANIM) +.if !defined(WITHOUT_XANIM) BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim .else @@ -817,9 +474,9 @@ DEFAULT_KERN_HZ=1024 # "enable" build for other archs .if ${ARCH} == "i386" -.if !defined(WITHOUT_RUNTIME_CPUDETECTION) +.if !defined(WITHOUT_RTCPU) CONFIGURE_ARGS+=--enable-runtime-cpudetection -.else #WITHOUT_RUNTIME_CPUDETECTION +.else #WITH_RTCPU .if defined(WITHOUT_MMX) CONFIGURE_ARGS+=--disable-mmx .endif @@ -830,26 +487,12 @@ CONFIGURE_ARGS+=--disable-3dnow CONFIGURE_ARGS+=--disable-3dnowex .endif .if defined(WITHOUT_SSE) -CONFIGURE_ARGS+=--disable-mmx2 --disable-sse -.endif -.endif #WITHOUT_RUNTIME_CPUDETECTION -.if !defined(WITH_SVGALIB) -CONFIGURE_ARGS+=--disable-svga -.endif -.if !defined(WITH_AALIB) -CONFIGURE_ARGS+=--disable-aa -.endif -.if !defined(WITH_SDL) -CONFIGURE_ARGS+=--disable-sdl +CONFIGURE_ARGS+=--disable-mmx2 --disable-sse --disable-sse2 .endif -.if !defined(WITH_VORBIS) -CONFIGURE_ARGS+=--disable-vorbis -.endif -.if !defined(WITHOUT_WIN32_CODECS) +.endif #WITH_RTCPU +.if !defined(WITHOUT_WIN32) RUN_DEPENDS+= ${CODEC_DETECTION_FILE}:${CODEC_PORT} - CONFIGURE_ARGS+= --with-win32libdir=${LOCALBASE}/lib/win32 - CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs CODEC_DETECTION_FILE!= ${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE .else @@ -857,16 +500,13 @@ CONFIGURE_ARGS+= --disable-win32 \ --disable-qtx-codecs .endif .endif # ARCH == i386 -.endif #MPLAYER_GENERIC_BUILD pre-everything:: @${ECHO_MSG} "N - O - T - E" @${ECHO_MSG} "" - @${ECHO_MSG} "Take a careful look into the Makefile in order" - @${ECHO_MSG} "to learn how to tune mplayer towards you personal preferences!" - @${ECHO_MSG} "For example," - @${ECHO_MSG} "make WITH_GTK1" - @${ECHO_MSG} "builds MPlayer with GTK1-GUI support." + @${ECHO_MSG} "There are some knobs which *can* *not* be selected via the" + @${ECHO_MSG} "OPTIONS framework. You might want to check the Makefile in" + @${ECHO_MSG} "order to learn more about them." .if !defined(WITHOUT_GUI) @${ECHO_MSG} "If you want to use the GUI, you can either install" @@ -875,14 +515,6 @@ pre-everything:: @${ECHO_MSG} "http://www.mplayerhq.hu/homepage/dload.html" .endif -#.if defined(WITH_GTK2) && !defined(WITHOUT_GUI) -# @${ECHO_MSG} "=====================> <Caution> <======================" -# @${ECHO_MSG} "GTK2 and UTF8 language options cannot peacefully coexist" -# @${ECHO_MSG} "If you have defined WITH_LANG=<something> and WITH_GTK2" -# @${ECHO_MSG} "your language options are ignored." -# @${ECHO_MSG} "====================> </Caution> <======================" -#.endif - post-patch: @${REINPLACE_CMD} -e \ 's|libxmms.so.1|libxmms.so|' \ @@ -908,9 +540,13 @@ post-patch: 's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ ${WRKSRC}/mplayer.c .endif -.if defined(MPLAYER_GENERIC_BUILD) +.if defined(MPLAYER_GENERIC_BUILD) && defined(WITH_DEBUG) + @${REINPLACE_CMD} -e \ + 's|1.0pre8|1.0pre8-FreeBSD-generic-debug|' \ + ${WRKSRC}/version.sh +.elif defined(MPLAYER_GENERIC_BUILD) @${REINPLACE_CMD} -e \ - 's|1.0pre7|1.0pre7-FreeBSD-generic|' \ + 's|1.0pre8|1.0pre8-FreeBSD-generic|' \ ${WRKSRC}/version.sh .endif @@ -937,7 +573,7 @@ post-install: .if !defined(WITHOUT_GUI) @${LN} -sf ${PREFIX}/bin/mplayer ${PREFIX}/bin/gmplayer .endif - @${CAT} ${.CURDIR}/pkg-message + @${CAT} ${PKGMESSAGE} install-user: @${PERL} ${FILESDIR}/install-user diff --git a/multimedia/mplayer/distinfo b/multimedia/mplayer/distinfo index a1be44182647..26f65ae9056f 100644 --- a/multimedia/mplayer/distinfo +++ b/multimedia/mplayer/distinfo @@ -1,6 +1,3 @@ -MD5 (MPlayer-1.0pre7try2.tar.bz2) = aaca4fd327176c1afb463f0f047ef6f4 -SHA256 (MPlayer-1.0pre7try2.tar.bz2) = 006da26e16bd1b1a8aec5d59b72b0b2ae7716f4e7634859a3e88b6fbbec4d89a -SIZE (MPlayer-1.0pre7try2.tar.bz2) = 6868786 -MD5 (MPlayer-1.0pre7try2-gtk2.patch) = aa7ae259b66f3a88d4dff39faeea7354 -SHA256 (MPlayer-1.0pre7try2-gtk2.patch) = 15f13b741b0ed8ec5726e5c68d03d559c32582a3e2d1e3014685531c69a47ab2 -SIZE (MPlayer-1.0pre7try2-gtk2.patch) = 6177 +MD5 (MPlayer-1.0pre8.tar.bz2) = f82bb2bc51b6cd5e5dd96f88f6f98582 +SHA256 (MPlayer-1.0pre8.tar.bz2) = 4e611138efb3709e650e3770bb3f33609f3fd04047932c830e52a02e0e97efcc +SIZE (MPlayer-1.0pre8.tar.bz2) = 8166628 diff --git a/multimedia/mplayer/files/patch-CVE-2006-1502 b/multimedia/mplayer/files/patch-CVE-2006-1502 deleted file mode 100644 index 4e9fe7e3cf32..000000000000 --- a/multimedia/mplayer/files/patch-CVE-2006-1502 +++ /dev/null @@ -1,69 +0,0 @@ ---- libmpdemux/aviheader.c.orig Tue Feb 22 17:24:18 2005 -+++ libmpdemux/aviheader.c Fri Apr 7 11:56:53 2006 -@@ -205,8 +205,10 @@ - break; } - case mmioFOURCC('i', 'n', 'd', 'x'): { - uint32_t i; -- unsigned msize = 0; - avisuperindex_chunk *s; -+ if(chunksize<=24){ -+ break; -+ } - priv->suidx_size++; - priv->suidx = realloc(priv->suidx, priv->suidx_size * sizeof (avisuperindex_chunk)); - s = &priv->suidx[priv->suidx_size-1]; -@@ -224,11 +226,18 @@ - - print_avisuperindex_chunk(s); - -- msize = sizeof (uint32_t) * s->wLongsPerEntry * s->nEntriesInUse; -- s->aIndex = malloc(msize); -- memset (s->aIndex, 0, msize); -- s->stdidx = malloc (s->nEntriesInUse * sizeof (avistdindex_chunk)); -- memset (s->stdidx, 0, s->nEntriesInUse * sizeof (avistdindex_chunk)); -+ if( ((chunksize/4)/s->wLongsPerEntry) < s->nEntriesInUse){ -+ mp_msg (MSGT_HEADER, MSGL_WARN, "Broken super index chunk\n"); -+ s->nEntriesInUse = (chunksize/4)/s->wLongsPerEntry; -+ } -+ -+ // Check and fix this useless crap -+ if(s->wLongsPerEntry != sizeof (avisuperindex_entry)/4) { -+ mp_msg (MSGT_HEADER, MSGL_WARN, "Broken super index chunk size: %u\n",s->wLongsPerEntry); -+ s->wLongsPerEntry = sizeof(avisuperindex_entry)/4; -+ } -+ s->aIndex = calloc(s->nEntriesInUse, sizeof (avisuperindex_entry)); -+ s->stdidx = calloc(s->nEntriesInUse, sizeof (avistdindex_chunk)); - - // now the real index of indices - for (i=0; i<s->nEntriesInUse; i++) { -@@ -636,6 +645,8 @@ - idx->dwChunkLength=len; - - c=stream_read_dword(demuxer->stream); -+ -+ if(!len) idx->dwFlags&=~AVIIF_KEYFRAME; - - // Fix keyframes for DivX files: - if(idxfix_divx) ---- libmpdemux/asfheader.c.orig Sat Dec 25 09:31:32 2004 -+++ libmpdemux/asfheader.c Fri Apr 7 11:55:29 2006 -@@ -189,7 +189,7 @@ - while ((pos = find_asf_guid(hdr, asf_stream_header_guid, pos, hdr_len)) >= 0) - { - ASF_stream_header_t *streamh = (ASF_stream_header_t *)&hdr[pos]; -- char *buffer; -+ uint8_t *buffer; - pos += sizeof(ASF_stream_header_t); - if (pos > hdr_len) goto len_err_out; - le2me_ASF_stream_header_t(streamh); -@@ -222,7 +222,9 @@ - asf_scrambling_h=buffer[0]; - asf_scrambling_w=(buffer[2]<<8)|buffer[1]; - asf_scrambling_b=(buffer[4]<<8)|buffer[3]; -- asf_scrambling_w/=asf_scrambling_b; -+ if(asf_scrambling_b>0){ -+ asf_scrambling_w/=asf_scrambling_b; -+ } - } else { - asf_scrambling_b=asf_scrambling_h=asf_scrambling_w=1; - } diff --git a/multimedia/mplayer/files/patch-TOOLS-cpuinfo.c b/multimedia/mplayer/files/patch-TOOLS-cpuinfo.c deleted file mode 100644 index e87e321115af..000000000000 --- a/multimedia/mplayer/files/patch-TOOLS-cpuinfo.c +++ /dev/null @@ -1,19 +0,0 @@ ---- TOOLS/cpuinfo.c.orig Mon Oct 11 21:26:13 2004 -+++ TOOLS/cpuinfo.c Sun May 22 20:57:11 2005 -@@ -40,13 +40,9 @@ - cpuid(int func) { - cpuid_regs_t regs; - #define CPUID ".byte 0x0f, 0xa2; " -- asm("push %%ebx; " -- "movl %4,%%eax; " CPUID -- "movl %%eax,%0; movl %%ebx,%1; movl %%ecx,%2; movl %%edx,%3; " -- "pop %%ebx" -- : "=m" (regs.eax), "=m" (regs.ebx), "=m" (regs.ecx), "=m" (regs.edx) -- : "g" (func) -- : "%eax", "%ecx", "%edx"); -+ asm(CPUID -+ : "=a" (regs.eax), "=b" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx) -+ : "0" (func)); - return regs; - } - diff --git a/multimedia/mplayer/files/patch-ad b/multimedia/mplayer/files/patch-ad index c8f65c0f5eb4..d5a5ff8338db 100644 --- a/multimedia/mplayer/files/patch-ad +++ b/multimedia/mplayer/files/patch-ad @@ -1,32 +1,32 @@ ---- configure.orig Wed Apr 13 13:46:35 2005 -+++ configure Wed Nov 9 19:52:06 2005 -@@ -29,9 +29,9 @@ +--- configure.orig Sun Jun 11 20:35:47 2006 ++++ configure Tue Jul 11 23:56:05 2006 +@@ -61,9 +61,9 @@ echo >> "$TMPLOG" - cat "$TMPC" >> "$TMPLOG" + cat "$1" >> "$TMPLOG" echo >> "$TMPLOG" -- echo "$_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG" -+ echo "$_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra $TMPC -o $TMPO $@" >> "$TMPLOG" +- echo "$_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra -o $TMPO $@" >> "$TMPLOG" ++ echo "$_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra -o $TMPO $@" >> "$TMPLOG" rm -f "$TMPO" -- ( $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 -+ ( $_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra "$TMPC" -o "$TMPO" "$@" ) >> "$TMPLOG" 2>&1 +- $_cc $CFLAGS $_inc_extra $_ld_static $_ld_extra -o "$TMPO" "$@" >> "$TMPLOG" 2>&1 ++ $_cc $CFLAGS -fno-fast-math $_inc_extra $_ld_static $_ld_extra -o "$TMPO" "$@" >> "$TMPLOG" 2>&1 TMP="$?" echo >> "$TMPLOG" echo "ldd $TMPO" >> "$TMPLOG" -@@ -369,7 +369,7 @@ - - - # 1st pass checking for vital options +@@ -453,7 +453,7 @@ + _sse=auto + _sse2=auto + _mtrr=auto -_install=install +_install=@${BSD_INSTALL_PROGRAM} _ranlib=ranlib _cc=cc test "$CC" && _cc="$CC" -@@ -471,14 +471,7 @@ - case "`( uname -m ) 2>&1`" in +@@ -574,14 +574,7 @@ + case "`uname -m 2>&1`" in i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686|BePC) host_arch=i386 ;; ia64) host_arch=ia64 ;; - x86_64|amd64) -- if [ "`$_cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" -a \ +- if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \ - -z "`echo $CFLAGS | grep -- -m32`" ]; then - host_arch=x86_64 - else @@ -34,10 +34,10 @@ - fi - ;; + x86_64|amd64) host_arch=x86_64 ;; - macppc|ppc) host_arch=ppc ;; + macppc|ppc|ppc64) host_arch=ppc ;; alpha) host_arch=alpha ;; sparc) host_arch=sparc ;; -@@ -691,22 +684,10 @@ +@@ -806,25 +799,10 @@ _cpuinfo="echo" # Cygwin has /proc/cpuinfo, but only supports Intel CPUs # FIXME: Remove the cygwin check once AMD CPUs are supported @@ -48,9 +48,12 @@ - # FreeBSD with Linux emulation /proc mounted, - # extract CPU information from it - _cpuinfo="cat /compat/linux/proc/cpuinfo" --elif darwin ; then +-elif darwin && not x86 ; then - # use hostinfo on Darwin - _cpuinfo="hostinfo" +-elif aix; then +- # use 'lsattr' on AIX +- _cpuinfo="lsattr -E -l proc0 -a type" -elif x86; then # all other OSes try to extract CPU information from a small helper # program TOOLS/cpuinfo instead @@ -58,29 +61,28 @@ _cpuinfo="TOOLS/cpuinfo" -fi - x86_exts_check() - { -@@ -1878,8 +1859,8 @@ + if x86 || x86_64 ; then + # gather more CPU information +@@ -1526,7 +1504,7 @@ + fi + _stripbinaries=no + elif test -z "$CFLAGS" ; then +- CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" ++ CFLAGS="-O $_pipe" + else + _warn_CFLAGS=yes + fi +@@ -2177,8 +2155,7 @@ ;; *) - echo "Unknown parameter: $ac_option" - exit 1 -+ echo -n "Unknown parameter: $ac_option" -+ echo " (ignoring)." ++ echo "Unknown parameter: $ac_option (ignoring)..." ;; esac -@@ -1889,7 +1870,7 @@ - test -z "$_bindir" && _bindir="$_prefix/bin" - test -z "$_datadir" && _datadir="$_prefix/share/mplayer" - test -z "$_mandir" && _mandir="$_prefix/man" --test -z "$_confdir" && _confdir="$_prefix/etc/mplayer" -+test -z "$_confdir" && _confdir="$_prefix/share/mplayer" - test -z "$_libdir" && _libdir="$_prefix/lib" - test -z "$_mlibdir" && _mlibdir="$MLIBHOME" - -@@ -2591,13 +2572,7 @@ +@@ -2826,13 +2803,7 @@ echocheck "memalign()" @@ -94,80 +96,40 @@ if test "$_memalign" = yes ; then _def_memalign='#define HAVE_MEMALIGN 1' else -@@ -2699,47 +2674,11 @@ +@@ -2931,20 +2902,8 @@ _def_threads='#undef HAVE_THREADS' echocheck "pthread" +-if test "$_pthreads" != no ; then -cat > $TMPC << EOF -#include <pthread.h> -void* func(void *arg) { return arg; } -int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; } -EOF --if mingw32 ; then -- _ld_pthread='' --elif hpux ; then -- _ld_pthread='' --elif ( cc_check && $TMPO ) ; then # QNX -- _ld_pthread=' ' # _ld_pthread='' would disable pthreads, but the test worked --elif ( cc_check -lpthread && $TMPO ) ; then -- _ld_pthread='-lpthread' --elif ( cc_check -pthread && $TMPO ) ; then -- _ld_pthread='-pthread' --else -- if test "$_ld_static" ; then +-_pthreads=no +-if not hpux ; then +- for _ld_tmp in "-lpthreadGC2" "" "-lpthread" "-pthread" ; do - # for crosscompilation, we cannot execute the program, be happy if we can link statically -- if ( cc_check -lpthread ) ; then -- _ld_pthread='-lpthread' -- elif ( cc_check -pthread ) ; then -- _ld_pthread='-pthread' -- else -- echores "no static pthread found (v4l, vo_gl, ao_alsa, ao_nas, ao_macosx, Win32 loader disabled)" -- _ld_pthread='' ; _nas=no ; _tv_v4l=no ; _macosx=no ; _win32=no -- fi -- else -- echores "no (v4l, vo_gl, ao_alsa, ao_nas, ao_macosx, win32 loader disabled)" -- _ld_pthread='' ; _nas=no ; _tv_v4l=no ; _macosx=no ; _win32=no -- fi +- cc_check $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break +- done +-fi -fi --if test "$_ld_pthread" != '' ; then ++_pthreads=yes +_ld_pthread="${PTHREAD_LIBS}" - echores "yes (using $_ld_pthread)" - _pthreads='yes' + if test "$_pthreads" = yes ; then + _res_comment="using $_ld_pthread" _def_pthreads='#define HAVE_PTHREADS 1' - _def_threads='#define HAVE_THREADS 1' --else -- echores "no" -- _pthreads='' -- _def_pthreads='#undef HAVE_PTHREADS' --fi - - - echocheck "sys/soundcard.h" -@@ -5323,7 +5262,7 @@ - if test "$_faad_internal" = auto ; then - # the faad check needs a config.h file - if not test -f "config.h" ; then -- > config.h -+ echo "$_def_lrintf" > config.h - fi - # internal faad: check if our dear gcc is able to compile it... - cp "`pwd`/libfaad2/cfft.c" $TMPC -@@ -5935,12 +5878,12 @@ - cat > $TMPC << EOF - #include <inttypes.h> - #include <x264.h> --#if X264_BUILD < 22 -+#if X264_BUILD < 29 - #error We do not support old versions of x264. Get the latest from SVN. +@@ -6529,7 +6488,8 @@ #endif int main(void) { x264_encoder_open((void*)0); return 0; } EOF --_ld_x264="$_ld_x264 -lx264 $_ld_lm" -+_ld_x264="$_ld_x264 `pkg-config --libs x264` $_ld_lm" - if test "$_x264" != no && cc_check $_inc_x264 $_ld_x264 ; then - _x264=yes - _def_x264='#define HAVE_X264 1' -@@ -6115,8 +6054,11 @@ +-_ld_x264="$_ld_x264 -lx264 $_ld_pthread" ++_ld_x264pc=`pkg-config x264 --libs 2>/dev/null` ++_ld_x264="$_ld_x264 $_ld_x264pc $_ld_pthread" + if test "$_x264" != no ; then + _x264=no + if cc_check $_inc_x264 $_ld_x264 $_ld_lm ; then +@@ -6723,8 +6683,11 @@ if test "$_tv" = yes ; then cat > $TMPC <<EOF #include <sys/types.h> @@ -179,26 +141,7 @@ #else #include <machine/ioctl_bt848.h> #endif -@@ -6477,7 +6419,7 @@ - fi - _stripbinaries=no - elif test -z "$CFLAGS" ; then -- CFLAGS="-O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" -+ CFLAGS="-O $_pipe" - # always compile with '-g' if .developer: - if test -f ".developer" ; then - CFLAGS="-g $CFLAGS" -@@ -6487,6 +6429,9 @@ - _stripbinaries=no - fi - else -+ if test "$_runtime_cpudetection" = no ; then -+ CFLAGS="$CFLAGS $_march $_mcpu" -+ fi - cat <<EOF - - MPlayer compilation will use the CFLAGS set by you, but: -@@ -6526,7 +6471,7 @@ +@@ -7166,7 +7129,7 @@ CFLAGS="$CFLAGS -D_REENTRANT" elif bsd ; then # FIXME bsd needs this so maybe other OS'es @@ -207,7 +150,7 @@ fi # 64 bit file offsets? if test "$_largefiles" = yes || freebsd ; then -@@ -6640,13 +6585,11 @@ +@@ -7318,13 +7281,11 @@ echocheck "lirc" if test "$_lirc" = auto ; then _lirc=no diff --git a/multimedia/mplayer/files/patch-ae b/multimedia/mplayer/files/patch-ae index 9105985280bf..6cf53e676b0d 100644 --- a/multimedia/mplayer/files/patch-ae +++ b/multimedia/mplayer/files/patch-ae @@ -1,20 +1,20 @@ ---- Makefile.orig Fri Nov 5 15:02:40 2004 -+++ Makefile Mon Jan 10 21:53:25 2005 -@@ -273,57 +273,10 @@ - ifeq ($(VIDIX),yes) - $(DO_MAKE) +--- Makefile.orig Thu Jun 15 10:20:29 2006 ++++ Makefile Thu Jun 15 10:27:06 2006 +@@ -446,47 +446,11 @@ + $(MAKE) -C libdha install + $(MAKE) -C vidix install endif -- if test ! -d $(BINDIR) ; then mkdir -p $(BINDIR) ; fi +- $(INSTALL) -d $(BINDIR) - $(INSTALL) -m 755 $(INSTALLSTRIP) $(PRG) $(BINDIR)/$(PRG) -ifeq ($(GUI),yes) - -ln -sf $(PRG) $(BINDIR)/gmplayer -endif -- if test ! -d $(MANDIR)/man1 ; then mkdir -p $(MANDIR)/man1; fi +- $(INSTALL) -d $(MANDIR)/man1 - for i in $(MAN_LANG); do \ - if test "$$i" = en ; then \ - $(INSTALL) -c -m 644 DOCS/man/en/mplayer.1 $(MANDIR)/man1/mplayer.1 ; \ - else \ -- mkdir -p $(MANDIR)/$$i/man1 ; \ +- $(INSTALL) -d $(MANDIR)/$$i/man1 ; \ - $(INSTALL) -c -m 644 DOCS/man/$$i/mplayer.1 $(MANDIR)/$$i/man1/mplayer.1 ; \ - fi ; \ - done @@ -30,34 +30,24 @@ - fi ; \ - done -endif -- @if test ! -d $(DATADIR) ; then mkdir -p $(DATADIR) ; fi -- @if test ! -d $(DATADIR)/font ; then mkdir -p $(DATADIR)/font ; fi +- @$(INSTALL) -d $(DATADIR) +- @$(INSTALL) -d $(DATADIR)/font - @if test ! -f $(DATADIR)/font/font.desc ; then \ -- echo "*** Download font at http://www.mplayerhq.hu/homepage/dload.html" ; \ +- echo "*** Download font at http://www.mplayerhq.hu/dload.html" ; \ - echo "*** for OSD/Subtitles support and extract to $(DATADIR)/font/" ; \ - fi -ifeq ($(GUI),yes) -- @if test ! -d $(DATADIR)/Skin ; then mkdir -p $(DATADIR)/Skin ; fi -- @echo "*** Download skin(s) at http://www.mplayerhq.hu/homepage/dload.html" -- @echo "*** for GUI, and extract to $(DATADIR)/Skin/" -- @if test ! -d $(prefix)/share/pixmaps ; then mkdir -p $(prefix)/share/pixmaps ; fi -- $(INSTALL) -m 644 Gui/mplayer/pixmaps/mplayer-desktop.xpm $(prefix)/share/pixmaps/mplayer-desktop.xpm -- @if test ! -d $(prefix)/share/applications ; then mkdir -p $(prefix)/share/applications ; fi +- @$(INSTALL) -d $(DATADIR)/skins +- @echo "*** Download skin(s) at http://www.mplayerhq.hu/dload.html" +- @echo "*** for GUI, and extract to $(DATADIR)/skins/" +- @$(INSTALL) -d $(prefix)/share/pixmaps +- $(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/mplayer.xpm +- @$(INSTALL) -d $(prefix)/share/applications - $(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/mplayer.desktop --endif -- @if test ! -d $(CONFDIR) ; then mkdir -p $(CONFDIR) ; fi -- @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi --ifeq ($(DVDKIT_SHARED),yes) --ifeq ($(DVDKIT2),yes) -- if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi -- $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit2/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so --else --ifeq ($(DVDKIT),yes) -- if test ! -d $(LIBDIR) ; then mkdir -p $(LIBDIR) ; fi -- $(INSTALL) -m 755 $(INSTALLSTRIP) libmpdvdkit/libmpdvdkit.so $(LIBDIR)/libmpdvdkit.so --endif --endif + @${BSD_INSTALL_PROGRAM} $(PRG_MENCODER) $(BINDIR)/$(PRG_MENCODER) endif +- @$(INSTALL) -d $(CONFDIR) +- @if test -f $(CONFDIR)/codecs.conf ; then mv -f $(CONFDIR)/codecs.conf $(CONFDIR)/codecs.conf.old ; fi uninstall: + -rm -f $(BINDIR)/$(PRG) $(BINDIR)/gmplayer $(MANDIR)/man1/mplayer.1 diff --git a/multimedia/mplayer/files/patch-bswap.h b/multimedia/mplayer/files/patch-bswap.h index b26544f35257..e3a320a78183 100644 --- a/multimedia/mplayer/files/patch-bswap.h +++ b/multimedia/mplayer/files/patch-bswap.h @@ -1,5 +1,5 @@ ---- bswap.h.orig Thu Oct 21 08:54:57 2004 -+++ bswap.h Mon May 9 20:57:34 2005 +--- bswap.h.orig Sun Jun 11 20:35:47 2006 ++++ bswap.h Thu Jun 15 10:31:42 2006 @@ -1,8 +1,17 @@ #ifndef __BSWAP_H__ #define __BSWAP_H__ diff --git a/multimedia/mplayer/files/patch-libavcodec-bswap.h b/multimedia/mplayer/files/patch-libavcodec-bswap.h deleted file mode 100644 index 7df359bd5e07..000000000000 --- a/multimedia/mplayer/files/patch-libavcodec-bswap.h +++ /dev/null @@ -1,20 +0,0 @@ ---- libavcodec/bswap.h.orig Sat Apr 16 17:40:51 2005 -+++ libavcodec/bswap.h Mon May 9 20:47:04 2005 -@@ -6,8 +6,17 @@ - #ifndef __BSWAP_H__ - #define __BSWAP_H__ - -+#if (defined(__unix__) || defined(unix)) && !defined(USG) -+#include <sys/param.h> -+#endif -+ - #ifdef HAVE_BYTESWAP_H - #include <byteswap.h> -+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 500000) -+#include <sys/endian.h> -+#define bswap_16(x) bswap16(x) -+#define bswap_32(x) bswap32(x) -+#define bswap_64(x) bswap64(x) - #else - - #ifdef ARCH_X86_64 diff --git a/multimedia/mplayer/files/patch-libdha-pci_freebsd.c b/multimedia/mplayer/files/patch-libdha-pci_freebsd.c deleted file mode 100644 index 0cef8185f90f..000000000000 --- a/multimedia/mplayer/files/patch-libdha-pci_freebsd.c +++ /dev/null @@ -1,14 +0,0 @@ ---- libdha/sysdep/pci_freebsd.c.orig Fri May 26 15:26:22 2006 -+++ libdha/sysdep/pci_freebsd.c Fri May 26 15:28:39 2006 -@@ -5,10 +5,7 @@ - */ - #include <errno.h> - #include <sys/file.h> --/* machine/console.h seems to be outdated by recent FreeBSD * -- * however pcvt_ioctl.h seems to exist for very long time */ --/* #include <machine/console.h>*/ --#include <machine/pcvt_ioctl.h> -+#include <sys/kbio.h> - #ifndef GCCUSESGAS - #define GCCUSESGAS - #endif diff --git a/multimedia/mplayer/files/patch-libfaad2-common.h b/multimedia/mplayer/files/patch-libfaad2-common.h index 94133b3318ea..291b429405b8 100644 --- a/multimedia/mplayer/files/patch-libfaad2-common.h +++ b/multimedia/mplayer/files/patch-libfaad2-common.h @@ -1,13 +1,14 @@ ---- libfaad2/common.h.orig Thu Mar 10 15:33:19 2005 -+++ libfaad2/common.h Thu Mar 10 15:34:38 2005 -@@ -328,7 +328,9 @@ +--- libfaad2/common.h.orig Thu Jun 15 10:39:27 2006 ++++ libfaad2/common.h Thu Jun 15 10:40:18 2006 +@@ -318,8 +318,9 @@ + *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); } - -- #if defined(_WIN32) && !defined(__MINGW32__) +- +- #if defined(_WIN32) && !defined(__MINGW32__) && !defined(HAVE_LRINTF) + #if defined(HAVE_LRINTF) + #define HAS_LRINTF -+ #elif defined(_WIN32) && !defined(__MINGW32__) ++ #elif defined(_WIN32) && !defined(__MINGW32__) && !defined(HAVE_LRINTF) #define HAS_LRINTF static INLINE int lrintf(float f) { diff --git a/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c b/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c deleted file mode 100644 index 470845dbf852..000000000000 --- a/multimedia/mplayer/files/patch-libmpcodecs_ve_x264.c +++ /dev/null @@ -1,112 +0,0 @@ ---- libmpcodecs/ve_x264.c.orig Wed Apr 13 15:10:29 2005 -+++ libmpcodecs/ve_x264.c Wed May 11 12:00:12 2005 -@@ -62,7 +62,7 @@ - static int qp_constant = 26; - static int frame_ref = 1; - static int keyint_max = 250; --static int keyint_min = -1; -+static int keyint_min = 25; - static int scenecut_threshold = 40; - static int bframe = 0; - static int bframe_adaptive = 1; -@@ -81,18 +81,21 @@ - static int chroma_qp_offset = 0; - static float ip_factor = 1.4; - static float pb_factor = 1.3; --static int rc_buffer_size = -1; --static float rc_init_buffer = 0.25; --static int rc_sens = 4; -+static float ratetol = 1.0; -+static int vbv_maxrate = 0; -+static int vbv_bufsize = 0; -+static float vbv_init = 0.9; - static int qp_min = 10; - static int qp_max = 51; --static int qp_step = 1; -+static int qp_step = 2; - static int pass = 0; - static float qcomp = 0.6; - static float qblur = 0.5; - static float complexity_blur = 20; - static char *rc_eq = "blurCplx^(1-qComp)"; - static int subq = 5; -+static int me_method = 2; -+static int me_range = 16; - static int level_idc = 40; - static int psnr = 0; - static int log_level = 2; -@@ -130,9 +133,10 @@ - {"chroma_qp_offset", &chroma_qp_offset, CONF_TYPE_INT, CONF_RANGE, -12, 12, NULL}, - {"ip_factor", &ip_factor, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL}, - {"pb_factor", &pb_factor, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL}, -- {"rc_buffer_size", &rc_buffer_size, CONF_TYPE_INT, CONF_RANGE, 0, 24000000, NULL}, -- {"rc_init_buffer", &rc_init_buffer, CONF_TYPE_FLOAT, CONF_RANGE, 0, 24000000, NULL}, -- {"rc_sens", &rc_sens, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, -+ {"ratetol", &ratetol, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 100.0, NULL}, -+ {"vbv_maxrate", &vbv_maxrate, CONF_TYPE_INT, CONF_RANGE, 0, 24000000, NULL}, -+ {"vbv_bufsize", &vbv_bufsize, CONF_TYPE_INT, CONF_RANGE, 0, 24000000, NULL}, -+ {"vbv_init", &vbv_init, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL}, - {"qp_min", &qp_min, CONF_TYPE_INT, CONF_RANGE, 1, 51, NULL}, - {"qp_max", &qp_max, CONF_TYPE_INT, CONF_RANGE, 1, 51, NULL}, - {"qp_step", &qp_step, CONF_TYPE_INT, CONF_RANGE, 1, 50, NULL}, -@@ -142,6 +146,8 @@ - {"qblur", &qblur, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL}, - {"cplx_blur", &complexity_blur, CONF_TYPE_FLOAT, CONF_RANGE, 0, 999, NULL}, - {"subq", &subq, CONF_TYPE_INT, CONF_RANGE, 1, 5, NULL}, -+ {"me", &me_method, CONF_TYPE_INT, CONF_RANGE, 1, 3, NULL}, -+ {"me_range", &me_range, CONF_TYPE_INT, CONF_RANGE, 4, 64, NULL}, - {"level_idc", &level_idc, CONF_TYPE_INT, CONF_RANGE, 10, 51, NULL}, - {"psnr", &psnr, CONF_TYPE_FLAG, 0, 0, 1, NULL}, - {"nopsnr", &psnr, CONF_TYPE_FLAG, 0, 1, 0, NULL}, -@@ -161,7 +167,7 @@ - x264_param_default(&mod->param); - mod->param.i_frame_reference = frame_ref; - mod->param.i_keyint_max = keyint_max; -- mod->param.i_keyint_min = keyint_min > 0 ? keyint_min : keyint_max * 2 / 5; -+ mod->param.i_keyint_min = keyint_min; - mod->param.i_scenecut_threshold = scenecut_threshold; - mod->param.i_bframe = bframe; - mod->param.b_bframe_adaptive = bframe_adaptive; -@@ -185,6 +191,7 @@ - mod->param.rc.f_qblur = qblur; - mod->param.rc.f_complexity_blur = complexity_blur; - mod->param.analyse.i_subpel_refine = subq; -+ mod->param.analyse.i_me_method = subq==1 ? X264_ME_DIA : X264_ME_HEX; - mod->param.rc.psz_stat_out = passtmpfile; - mod->param.rc.psz_stat_in = passtmpfile; - if((pass & 2) && bitrate <= 0) -@@ -212,19 +219,26 @@ - break; - } - if(bitrate > 0) { -- if(rc_buffer_size <= 0) -- rc_buffer_size = bitrate; -+ if((vbv_maxrate > 0) != (vbv_bufsize > 0)) { -+ mp_msg(MSGT_MENCODER, MSGL_ERR, -+ "VBV requires both vbv_maxrate and vbv_bufsize.\n"); -+ return 0; -+ } - mod->param.rc.b_cbr = 1; - mod->param.rc.i_bitrate = bitrate; -- mod->param.rc.i_rc_buffer_size = rc_buffer_size; -- if(rc_init_buffer > 1) -- mod->param.rc.i_rc_init_buffer = rc_init_buffer; -- else -- mod->param.rc.i_rc_init_buffer = rc_buffer_size * rc_init_buffer; -- mod->param.rc.i_rc_sens = rc_sens; -+ mod->param.rc.f_rate_tolerance = ratetol; -+ mod->param.rc.i_vbv_max_bitrate = vbv_maxrate; -+ mod->param.rc.i_vbv_buffer_size = vbv_bufsize; -+ mod->param.rc.f_vbv_buffer_init = vbv_init; - } - mod->param.rc.f_ip_factor = ip_factor; - mod->param.rc.f_pb_factor = pb_factor; -+ switch(me_method) { -+ case 1: mod->param.analyse.i_me_method = X264_ME_DIA; break; -+ case 2: mod->param.analyse.i_me_method = X264_ME_HEX; break; -+ case 3: mod->param.analyse.i_me_method = X264_ME_ESA; -+ mod->param.analyse.i_me_range = me_range; break; -+ } - mod->param.analyse.inter = X264_ANALYSE_I4x4; - if(p4x4mv) - mod->param.analyse.inter |= X264_ANALYSE_PSUB8x8; diff --git a/multimedia/mplayer/files/patch-libmpdemux_demux_mov.c b/multimedia/mplayer/files/patch-libmpdemux_demux_mov.c deleted file mode 100644 index 8796a545596f..000000000000 --- a/multimedia/mplayer/files/patch-libmpdemux_demux_mov.c +++ /dev/null @@ -1,60 +0,0 @@ ---- libmpdemux/demux_mov.c.orig Thu Mar 31 00:10:07 2005 -+++ libmpdemux/demux_mov.c Mon Jan 9 17:09:03 2006 -@@ -865,6 +865,7 @@ - // ([int32_t size,int32_t type,some data ],repeat) - } my_stdata; - #endif -+ int version, adjust; - sh_audio_t* sh=new_sh_audio(demuxer,priv->track_db); - sh->format=trak->fourcc; - -@@ -911,8 +912,27 @@ - // 32 char[4] atom type (fourc charater code -> esds) - // 36 char[] atom data (len=size-8) - -+ version=char2short(trak->stdata,8); -+ if (version > 1) -+ mp_msg(MSGT_DEMUX, MSGL_WARN, "MOV: version %d sound atom may not parse correctly!\n", version); - trak->samplebytes=sh->samplesize=char2short(trak->stdata,18)/8; -- trak->nchannels=sh->channels=char2short(trak->stdata,16); -+ -+ /* I can't find documentation, but so far this is the case. -Corey */ -+ switch (char2short(trak->stdata,16)) { -+ case 1: -+ trak->nchannels = 1; break; -+ case 2: -+ trak->nchannels = 2; break; -+ case 3: -+ trak->nchannels = 6; break; -+ default: -+ mp_msg(MSGT_DEMUX, MSGL_WARN, -+ "MOV: unable to determine audio channels, assuming 2 (got %d)\n", -+ char2short(trak->stdata,16)); -+ trak->nchannels = 2; -+ } -+ sh->channels = trak->nchannels; -+ - /*printf("MOV: timescale: %d samplerate: %d durmap: %d (%d) -> %d (%d)\n", - trak->timescale, char2short(trak->stdata,24), trak->durmap[0].dur, - trak->durmap[0].num, trak->timescale/trak->durmap[0].dur, -@@ -966,8 +986,18 @@ - } - } - -- if((trak->stdata[9]==0 || trak->stdata[9]==1) && trak->stdata_len >= 36) { // version 0 with extra atoms -- int adjust = (trak->stdata[9]==1)?48:0; -+ switch (version) { -+ case 0: -+ adjust = 0; break; -+ case 1: -+ adjust = 48; break; -+ case 2: -+ adjust = 68; break; -+ default: -+ mp_msg(MSGT_DEMUX, MSGL_WARN, "MOV: unknown sound atom version (%d); may not work!\n", version); -+ adjust = 68; -+ } -+ if (trak->stdata_len >= 36 + adjust) { - int atom_len = char2int(trak->stdata,28+adjust); - switch(char2int(trak->stdata,32+adjust)) { // atom type - case MOV_FOURCC('e','s','d','s'): { diff --git a/multimedia/mplayer/files/patch-libmpdemux_demuxer.h b/multimedia/mplayer/files/patch-libmpdemux_demuxer.h deleted file mode 100644 index ea9ec6d15bd9..000000000000 --- a/multimedia/mplayer/files/patch-libmpdemux_demuxer.h +++ /dev/null @@ -1,37 +0,0 @@ ---- libmpdemux/demuxer.h 9 Feb 2006 19:39:51 -0000 1.87 -+++ libmpdemux/demuxer.h 12 Feb 2006 17:01:30 -0000 1.90 -@@ -190,17 +190,19 @@ - dp->flags=0; - dp->refcount=1; - dp->master=NULL; -- dp->buffer=len?(unsigned char*)malloc(len+8):NULL; -- if(len) memset(dp->buffer+len,0,8); -+ dp->buffer=NULL; -+ if (len > 0 && (dp->buffer = (unsigned char *)malloc(len + 8))) -+ memset(dp->buffer + len, 0, 8); -+ else -+ dp->len = 0; - return dp; - } - - inline static void resize_demux_packet(demux_packet_t* dp, int len) - { -- if(len) -+ if(len > 0) - { - dp->buffer=(unsigned char *)realloc(dp->buffer,len+8); -- memset(dp->buffer+len,0,8); - } - else - { -@@ -208,6 +210,10 @@ - dp->buffer=NULL; - } - dp->len=len; -+ if (dp->buffer) -+ memset(dp->buffer + len, 0, 8); -+ else -+ dp->len = 0; - } - - inline static demux_packet_t* clone_demux_packet(demux_packet_t* pack){ diff --git a/multimedia/mplayer/files/patch-libmpdvdkit2-dvd_reader.c b/multimedia/mplayer/files/patch-libmpdvdkit2-dvd_reader.c deleted file mode 100644 index a6dd471dec0b..000000000000 --- a/multimedia/mplayer/files/patch-libmpdvdkit2-dvd_reader.c +++ /dev/null @@ -1,22 +0,0 @@ ---- libmpdvdkit2/dvd_reader.c.orig Sat Aug 9 16:12:35 2003 -+++ libmpdvdkit2/dvd_reader.c Fri Oct 3 18:16:43 2003 -@@ -239,6 +239,11 @@ - Darwin /dev/rdisk0, it needs to be the raw device - BSD/OS /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will do) */ - static char *bsd_block2char( const char *path ) -+#if defined(__FreeBSD__) -+{ -+ return (char *) strdup( path ); -+} -+#else - { - char *new_path; - -@@ -253,6 +258,7 @@ - - return new_path; - } -+#endif /* __FreeBSD__ */ - #endif - - dvd_reader_t *DVDOpen( const char *path ) diff --git a/multimedia/mplayer/files/pkg-message.in b/multimedia/mplayer/files/pkg-message.in new file mode 100644 index 000000000000..57c6c9c235b9 --- /dev/null +++ b/multimedia/mplayer/files/pkg-message.in @@ -0,0 +1,11 @@ +This port provides a simple and easy to use +tool to provide fonts in OSD. +Just cd to the ports directory and type + +make install-user + +Note: This is only for the bitmap fonts! If you've compiled +mplayer with truetype support, this won't work. + +Please take a look at docs in +%%DOCSDIR%% diff --git a/multimedia/mplayer/pkg-descr b/multimedia/mplayer/pkg-descr index abbc421f0d18..9811c95734c8 100644 --- a/multimedia/mplayer/pkg-descr +++ b/multimedia/mplayer/pkg-descr @@ -1,10 +1,8 @@ -This is the port of mplayer, a project which has the effort -to become a very stable and useful movie player and encoder. - -It is based on the windows codec compilation and -provides the ability to play many formats -in a very good quality without much CPU comsumption. - -Support for ffmpeg, quicktime and DVD are also included. +MPlayer is a multimedia player and encoder suite which runs on many +platforms. It plays a terrific number of different file formats +and codecs including popular DivX, XviD, H.264 streams as well as +DVD and SVCDs along with many popular audio codecs. +On the i386 platform it also supports some Windows DLL codec +families which allow playing of e.g. QuickTime movies. WWW: http://www.mplayerhq.hu/ diff --git a/multimedia/mplayer/pkg-plist b/multimedia/mplayer/pkg-plist index bae7c36327a0..e1fbb5b5e610 100644 --- a/multimedia/mplayer/pkg-plist +++ b/multimedia/mplayer/pkg-plist @@ -1,40 +1,45 @@ bin/mplayer %%MENCODER%%bin/mencoder %%GMPLAYER%%bin/gmplayer -%%PORTDOCS%%%%DOCSDIR%%/amiga.html +%%PORTDOCS%%%%DOCSDIR%%/advaudio.html %%PORTDOCS%%%%DOCSDIR%%/aspect.html +%%PORTDOCS%%%%DOCSDIR%%/audio-codecs.html +%%PORTDOCS%%%%DOCSDIR%%/audio-formats.html %%PORTDOCS%%%%DOCSDIR%%/audio.html %%PORTDOCS%%%%DOCSDIR%%/bsd.html %%PORTDOCS%%%%DOCSDIR%%/bugreports.html %%PORTDOCS%%%%DOCSDIR%%/bugreports_advusers.html %%PORTDOCS%%%%DOCSDIR%%/bugreports_fix.html +%%PORTDOCS%%%%DOCSDIR%%/bugreports_regression_test.html %%PORTDOCS%%%%DOCSDIR%%/bugreports_report.html +%%PORTDOCS%%%%DOCSDIR%%/bugreports_security.html %%PORTDOCS%%%%DOCSDIR%%/bugreports_what.html %%PORTDOCS%%%%DOCSDIR%%/bugreports_where.html %%PORTDOCS%%%%DOCSDIR%%/bugs-audio.html %%PORTDOCS%%%%DOCSDIR%%/bugs-special.html %%PORTDOCS%%%%DOCSDIR%%/bugs.html %%PORTDOCS%%%%DOCSDIR%%/cd-dvd.html +%%PORTDOCS%%%%DOCSDIR%%/codec-importing.html %%PORTDOCS%%%%DOCSDIR%%/codecs.html %%PORTDOCS%%%%DOCSDIR%%/commandline.html +%%PORTDOCS%%%%DOCSDIR%%/containers.html %%PORTDOCS%%%%DOCSDIR%%/control.html -%%PORTDOCS%%%%DOCSDIR%%/custommatrices.html %%PORTDOCS%%%%DOCSDIR%%/default.css %%PORTDOCS%%%%DOCSDIR%%/drives.html %%PORTDOCS%%%%DOCSDIR%%/dvd.html %%PORTDOCS%%%%DOCSDIR%%/edl.html +%%PORTDOCS%%%%DOCSDIR%%/encoding-guide.html +%%PORTDOCS%%%%DOCSDIR%%/exotic_platforms.html %%PORTDOCS%%%%DOCSDIR%%/faq.html %%PORTDOCS%%%%DOCSDIR%%/features.html -%%PORTDOCS%%%%DOCSDIR%%/formats.html %%PORTDOCS%%%%DOCSDIR%%/gcc-296.html %%PORTDOCS%%%%DOCSDIR%%/gui.html %%PORTDOCS%%%%DOCSDIR%%/history.html %%PORTDOCS%%%%DOCSDIR%%/howtoread.html -%%PORTDOCS%%%%DOCSDIR%%/hp-ux.html %%PORTDOCS%%%%DOCSDIR%%/index.html %%PORTDOCS%%%%DOCSDIR%%/install.html +%%PORTDOCS%%%%DOCSDIR%%/installation_codecs.html %%PORTDOCS%%%%DOCSDIR%%/intro.html -%%PORTDOCS%%%%DOCSDIR%%/irix.html %%PORTDOCS%%%%DOCSDIR%%/joe-barr.html %%PORTDOCS%%%%DOCSDIR%%/linux.html %%PORTDOCS%%%%DOCSDIR%%/macos.html @@ -42,32 +47,50 @@ bin/mplayer %%PORTDOCS%%%%DOCSDIR%%/menc-feat-dvd-mpeg4.html %%PORTDOCS%%%%DOCSDIR%%/menc-feat-enc-images.html %%PORTDOCS%%%%DOCSDIR%%/menc-feat-enc-libavcodec.html -%%PORTDOCS%%%%DOCSDIR%%/menc-feat-telecine.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-extractsub.html %%PORTDOCS%%%%DOCSDIR%%/menc-feat-mpeg.html %%PORTDOCS%%%%DOCSDIR%%/menc-feat-mpeg4.html -%%PORTDOCS%%%%DOCSDIR%%/menc-feat-extractsub.html %%PORTDOCS%%%%DOCSDIR%%/menc-feat-rescale.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-selecting-codec.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-selecting-input.html %%PORTDOCS%%%%DOCSDIR%%/menc-feat-streamcopy.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-telecine.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-vcd-dvd.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-video-for-windows.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-x264.html +%%PORTDOCS%%%%DOCSDIR%%/menc-feat-xvid.html %%PORTDOCS%%%%DOCSDIR%%/mencoder.html +%%PORTDOCS%%%%DOCSDIR%%/mpeg_decoders.html %%PORTDOCS%%%%DOCSDIR%%/mplayer-binary.html %%PORTDOCS%%%%DOCSDIR%%/mpst.html +%%PORTDOCS%%%%DOCSDIR%%/mtrr.html %%PORTDOCS%%%%DOCSDIR%%/nvidia-opinions.html -%%PORTDOCS%%%%DOCSDIR%%/patches.html +%%PORTDOCS%%%%DOCSDIR%%/other.html +%%PORTDOCS%%%%DOCSDIR%%/output-trad.html %%PORTDOCS%%%%DOCSDIR%%/ports.html -%%PORTDOCS%%%%DOCSDIR%%/qnx.html %%PORTDOCS%%%%DOCSDIR%%/rtc.html -%%PORTDOCS%%%%DOCSDIR%%/skin.html %%PORTDOCS%%%%DOCSDIR%%/skin-file.html %%PORTDOCS%%%%DOCSDIR%%/skin-fonts.html %%PORTDOCS%%%%DOCSDIR%%/skin-gui.html %%PORTDOCS%%%%DOCSDIR%%/skin-overview.html -%%PORTDOCS%%%%DOCSDIR%%/solaris.html +%%PORTDOCS%%%%DOCSDIR%%/skin-quality.html +%%PORTDOCS%%%%DOCSDIR%%/skin.html +%%PORTDOCS%%%%DOCSDIR%%/softreq.html +%%PORTDOCS%%%%DOCSDIR%%/sound-cards.html %%PORTDOCS%%%%DOCSDIR%%/streaming.html %%PORTDOCS%%%%DOCSDIR%%/subosd.html +%%PORTDOCS%%%%DOCSDIR%%/sync.html +%%PORTDOCS%%%%DOCSDIR%%/troubleshooting.html %%PORTDOCS%%%%DOCSDIR%%/tv-input.html +%%PORTDOCS%%%%DOCSDIR%%/tv.html +%%PORTDOCS%%%%DOCSDIR%%/tvout.html +%%PORTDOCS%%%%DOCSDIR%%/unix.html %%PORTDOCS%%%%DOCSDIR%%/usage.html %%PORTDOCS%%%%DOCSDIR%%/users-vs-dev.html %%PORTDOCS%%%%DOCSDIR%%/vcd.html +%%PORTDOCS%%%%DOCSDIR%%/video-cards.html +%%PORTDOCS%%%%DOCSDIR%%/video-codecs.html +%%PORTDOCS%%%%DOCSDIR%%/video-formats.html %%PORTDOCS%%%%DOCSDIR%%/video.html %%PORTDOCS%%%%DOCSDIR%%/windows.html %%VIDIX%%lib/libdha.so.1 @@ -89,12 +112,16 @@ bin/mplayer %%DATADIR%%/tools/menc2pass %%DATADIR%%/tools/mencvcd %%DATADIR%%/tools/mp.pl +%%DATADIR%%/tools/subedit.pl +%%DATADIR%%/tools/subsearch.sh %%DATADIR%%/tools/sws-test %%DATADIR%%/tools/w32codec_dl.pl +%%DATADIR%%/tools/wma2ogg.pl %%DATADIR%%/tools/x2mpsub.sh %%DATADIR%%/example.conf %%DATADIR%%/input.conf %%DATADIR%%/menu.conf +%%DATADIR%%/dvb-menu.conf @dirrm %%DATADIR%%/tools @dirrmtry %%DATADIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% |