diff -ruN /usr/ports/multimedia/mplayer/Makefile mplayer/Makefile --- /usr/ports/multimedia/mplayer/Makefile 2007-07-30 14:49:25.000000000 +0800 +++ mplayer/Makefile 2007-08-03 21:28:12.000000000 +0800 @@ -2,136 +2,20 @@ # Date created: 10 August 2001 # Whom: Thomas E. Zander # with lots of help from Vladimir Kushnir -# $FreeBSD: ports/multimedia/mplayer/Makefile,v 1.165 2007/07/28 12:27:28 miwi Exp $ -# -# -# Some of the knobs are not tunable by the OPTIONS framework. These are -# explained here in detail. -# -# Core funcionality: -# -# MPLAYER_GENERIC_BUILD -# default: undefined -# By default, the mplayer port creates a custom build based on personal -# preferences. -# If you want to build a generic package with certain fixed options, -# suitable for any CPU within ${ARCH}, define this knob. -# Note: Other knobs and especially OPTIONS -# -# CPU features: -# -# 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. -# Note that disabling SIMD via the OPTIONS framework completely -# disables utilization of vector engines, i.e. it implies -# WITHOUT_MMX, WITHOUT_3DNOW and WITHOUT_SSE -# -# WITHOUT_MMX -# default: autodetected -# disables using of mmx code -# -# WITHOUT_3DNOW -# default: autodetected -# disables using of 3dNow! instructions on AMD CPUs -# -# WITHOUT_SSE -# default: autodetected -# disables all mmx2 and sse/sse2 code -# CAUTION: There are some Athlon CPUs which claim to be sse-able but -# 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 and newer systems on I686_CPU -# and later. 4.x users will have to define this explicitly. -# -# WITH_KERN_HZ= -# 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. -# ie. 512 seems to produce better quality video on a PII 400MHz than 1024 does -# CAUTION: lower than 512 may produce jerky video. -# -# Feature options: -# 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 -# default 4.x: /dev/acd0c -# This option changes the default device where mplayer looks for -# a DVD medium -# -# WITH_CDROM_DEVICE=/path/to/desired/device -# default 5.x: /dev/acd0 -# default 4.x: /dev/acd0c -# This option changes the default cdrom device, maybe useful for VCDs -# -# WITH_LANG= -# 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 -# -# Additional knobs: -# -# NOPORTDOCS -# default: undefined -# This knob prevents the ports system from installing additional -# documentation. If you define this, only the manpage is going -# to be installed. +# $FreeBSD: ports/multimedia/mplayer/Makefile,v 1.164 2007/06/13 06:06:59 edwin Exp $ # PORTNAME= mplayer -PORTVERSION= 0.99.10 -PORTREVISION= 12 -CATEGORIES= multimedia audio -MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ - http://www2.mplayerhq.hu/MPlayer/releases/ \ - http://ftp.lug.udel.edu/MPlayer/releases/ \ - http://www4.mplayerhq.hu/MPlayer/releases/ \ - http://mirrors.xmission.com/MPlayer/releases/ \ - ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \ - ftp://ftp2.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.0rc1 - -MAINTAINER= riggs@rrr.de -COMMENT= High performance media player/encoder supporting many formats - -PATCH_SITES= http://www.mplayerhq.hu/MPlayer/patches/ -PATCHFILES+= asmrules_fix_20061231.diff - -LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png - -USE_BZIP2= yes -USE_GMAKE= yes -USE_ICONV= yes -GNU_CONFIGURE= yes -CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS=${PTHREAD_LIBS} \ - TMPDIR="${WRKSRC}" -CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \ - --with-extraincdir=${LOCALBASE}/include \ - --cc=${CC} \ - --as=${AS} \ - --enable-png \ - --enable-menu \ - --disable-libfame \ - --disable-faad-external \ - --disable-vidix-external \ - --disable-tv-v4l1 \ - --disable-tv-v4l2 +PORTVERSION= ${MPLAYER_PORT_VERSION} +PORTREVISION= 13 +COMMENT= High performance media player supporting many formats -OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off +.include "${.CURDIR}/Makefile.shared" -#Collect OPTIONS menu -.if !defined(MPLAYER_GENERIC_BUILD) +OPTIONS= DEBUG "Include debug symbols in mplayer's binary files" off OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on OPTIONS+= OCFLAGS "Use optimized compiler flags" on OPTIONS+= SIMD "Allow mplayer to use vector engines (MMX...)" 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 @@ -144,7 +28,7 @@ OPTIONS+= ARTS "Enable KDE sound system support" off OPTIONS+= ESOUND "Enable GNOME esound support" off OPTIONS+= JACK "Enable JackIt audio server support" off -OPTIONS+= POLYP "Enable polyp sound server support" off +#OPTIONS+= POLYP "Enable polyp sound server support" off OPTIONS+= NAS "Enable NAS sound server support" off OPTIONS+= OPENAL "Enable OpenAL sound support" off OPTIONS+= LIBUNGIF "Enable gif support" on @@ -153,16 +37,16 @@ OPTIONS+= SVGALIB "Enable svgalib support" off OPTIONS+= LIBDV "Enable libdv support" off OPTIONS+= MAD "Enable mad MPEG audio engine support" off -OPTIONS+= TWOLAME "Enable twolame MPEG audio codec support" off OPTIONS+= DTS "Enable DTS audio codec support" on OPTIONS+= LIBMPCDEC "Enable libmpcdec support" off -OPTIONS+= FAAC "Enable FAAC audio codec support" off OPTIONS+= LADSPA "Enable LADSPA plugin support" off 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 +.if !defined(PACKAGE_BUILDING) OPTIONS+= WIN32 "Enable win32 codec set on the IA32 arch" on +.endif 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 @@ -175,39 +59,21 @@ OPTIONS+= CDPARANOIA "Enable cdparanoia support" off OPTIONS+= LIBLZO "Enable external liblzo library" off OPTIONS+= JOYSTICK "Enable joystick support" off -.endif -WANT_GNOME= yes -WANT_SDL= yes MAN1= mplayer.1 MANCOMPRESSED= no SUB_FILES= pkg-message 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 .include -.if ${OSVERSION} < 500000 -USE_GCC= 3.4+ -CFLAGS+= -Duint_fast64_t=uint64_t -CFLAGS+= -Droundf=rintf -CFLAGS+= -Dllrint=rint -.if ${ARCH} == "i386" -CFLAGS+= -DPRId64=\\\"lld\\\" -CFLAGS+= -DPRIu64=\\\"llu\\\" -CFLAGS+= -DPRIx64=\\\"llx\\\" -CFLAGS+= -DPRIX64=\\\"llX\\\" -.else -CFLAGS+= -DPRId64=\\\"ld\\\" -CFLAGS+= -DPRIu64=\\\"lu\\\" -CFLAGS+= -DPRIx64=\\\"lx\\\" -CFLAGS+= -DPRIX64=\\\"lX\\\" -.endif -.endif +CONFIGURE_ARGS+= --disable-faac \ + --disable-twolame \ + --disable-mencoder + +.include "${.CURDIR}/Makefile.options" #Building of vidix dependent shared libs is only possible #on i386 and amd64 at the moment. @@ -224,67 +90,9 @@ PLIST_SUB+= VIDIX="@comment " .endif -# Esablish de-facto dependencies for either building generic mplayer -# binary-suitable package or custom build - -.if defined(MPLAYER_GENERIC_BUILD) -#Compiler flags -CFLAGS= #let mplayer decide the flags - -#Defaults for generic build -INCL_MODULES= RTCPU IPV6 X11 GUI SDL SKINS FREETYPE AALIB TREMOR \ - WIN32 XVID -EXCL_MODULES= OCFLAGS MENCODER VIDIX NVIDIA RTC ARTS ESOUND \ - JACK POLYP NAS OPENAL LIBUNGIF LIBCACA SVGALIB \ - LIBDV MAD TWOLAME DTS LIBMPCDEC FAAC LADSPA SPEEX \ - XMMS THEORA X264 XANIM REALPLAYER LIVEMEDIA SMB \ - FRIBIDI LIRC LIBCDIO CDPARANOIA LIBLZO - -.for module in ${EXCL_MODULES} -WITHOUT_${module}=yes -.undef(WITH_${module}) -.endfor - -.for module in ${INCL_MODULES} -WITH_${module}=yes -.undef(WITHOUT_${module}) -.endfor - -.undef(WITH_DVD_DEVICE) -.undef(WITH_CDROM_DEVICE) -.undef(WITH_LANG) - -#Kernel granularity -DEFAULT_KERN_HZ=1024 -CFLAGS+= -fno-force-addr -.endif #MPLAYER_GENERIC_BUILD - -.if !defined(WITHOUT_X11) -USE_XLIB= yes -CONFIGURE_ARGS+=--with-x11libdir="${LOCALBASE}/lib" -.else -WITHOUT_GUI= yes -CONFIGURE_ARGS+=--disable-x11 \ - --disable-fontconfig -.endif - -.if defined(WITH_LANG) -CONFIGURE_ARGS+=--language=${WITH_LANG} -.endif - -.if !defined(WITHOUT_OCFLAGS) -CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -.endif - -.if defined(WITHOUT_IPV6) -CONFIGURE_ARGS+= --disable-inet6 -.else -CATEGORIES+= ipv6 -.endif - .if !defined(WITHOUT_GUI) PLIST_SUB+= GMPLAYER="" -DESKTOP_ENTRIES= "MPlayer" "High performance media player" "" "gmplayer" "" false +DESKTOP_ENTRIES= "MPlayer" "High performance media player" "${DATADIR}/skins/Blue/icons/icon32x32.png" "gmplayer" "" false .if !defined(WITHOUT_SKINS) RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/skins:${PORTSDIR}/multimedia/mplayer-skins .endif @@ -300,6 +108,26 @@ PLIST_SUB+= GMPLAYER="@comment " .endif #WITHOUT_GUI +.if !defined(WITHOUT_FREETYPE) +CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ + --enable-freetype +LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 +.else +.if !defined(WITHOUT_X11) +RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/multimedia/mplayer-fonts +.endif +CONFIGURE_ARGS+= --disable-freetype +.endif + +.if !defined(WITHOUT_X11) +USE_XLIB= yes +CONFIGURE_ARGS+=--with-x11libdir="${LOCALBASE}/lib" +.else +WITHOUT_GUI= yes +CONFIGURE_ARGS+=--disable-x11 \ + --disable-fontconfig +.endif + .if defined(WITH_RTC) BUILD_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc RUN_DEPENDS+= ${LOCALBASE}/modules/rtc.ko:${PORTSDIR}/emulators/rtc @@ -309,15 +137,6 @@ CONFIGURE_ARGS+= --disable-rtc .endif -.if !defined(WITHOUT_MENCODER) -LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame -MLINKS+= mplayer.1 mencoder.1 -PLIST_SUB+= MENCODER="" -.else -CONFIGURE_ARGS+= --disable-mencoder -PLIST_SUB+= MENCODER="@comment " -.endif - .if defined(WITH_NVIDIA) && ${OSVERSION} < 600033 LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver CONFIGURE_ARGS+= --enable-xvmc \ @@ -331,45 +150,12 @@ CONFIGURE_ARGS+= --disable-arts .endif -.if defined(WITH_FRIBIDI) -LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi -CONFIGURE_ARGS+= --enable-fribidi -.else -CONFIGURE_ARGS+= --disable-fribidi -.endif - -.if defined(WITH_LIBCDIO) && !defined(WITH_CDPARANOIA) -BUILD_DEPENDS+= ${LOCALBASE}/include/cdio/cdio.h:${PORTSDIR}/sysutils/libcdio -.else -CONFIGURE_ARGS+= --disable-libcdio -.endif - -.if defined(WITH_CDPARANOIA) -LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia -.else -CONFIGURE_ARGS+= --disable-cdparanoia -.endif - .if defined(WITH_LIBCACA) -BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca +LIB_DEPENDS+=caca.0:${PORTSDIR}/graphics/libcaca .else CONFIGURE_ARGS+= --disable-caca .endif -.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) -LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv -CONFIGURE_ARGS+= --enable-libdv -.else -CONFIGURE_ARGS+= --disable-libdv -.endif - .if defined(WITH_LIRC) LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc CONFIGURE_ARGS+= --enable-lirc @@ -377,21 +163,6 @@ CONFIGURE_ARGS+= --disable-lirc .endif -.if defined(WITH_TWOLAME) -LIB_DEPENDS+= twolame.0:${PORTSDIR}/audio/twolame -.else -CONFIGURE_ARGS+= --disable-twolame -.endif - -.if defined(WITH_MAD) -LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad - -CONFIGURE_ARGS+= --enable-mad \ - --with-madlibdir=${LOCALBASE}/lib -.else -CONFIGURE_ARGS+= --disable-mad -.endif - .if defined(WITH_SDL) USE_SDL= sdl WITH_AALIB= yes @@ -412,176 +183,12 @@ CONFIGURE_ARGS+= --disable-aa .endif -.if defined(WITH_THEORA) -LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora -.else -CONFIGURE_ARGS+= --disable-theora -.endif - -.if defined(WITH_X264) -LIB_DEPENDS+= x264.50:${PORTSDIR}/multimedia/x264 -.else -CONFIGURE_ARGS+= --disable-x264 -.endif - .if defined(WITH_ESOUND) USE_GNOME+= esound .else CONFIGURE_ARGS+= --disable-esd .endif -.if defined(WITH_JACK) -LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack -.else -CONFIGURE_ARGS+= --disable-jack -.endif - -.if defined(WITH_POLYP) -CONFIGURE_ARGS+= --enable-polyp -LIB_DEPENDS+= polyp-0.7.0:${PORTSDIR}/audio/polypaudio -.else -CONFIGURE_ARGS+= --disable-polyp -.endif - -.if defined(WITH_NAS) -CONFIGURE_ARGS+= --enable-nas -LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas -.else -CONFIGURE_ARGS+= --disable-nas -.endif - -.if defined(WITH_OPENAL) -LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal -.else -CONFIGURE_ARGS+= --disable-openal -.endif - -.if !defined(WITH_TREMOR) -CONFIGURE_ARGS+= --disable-tremor-internal -LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis -.endif - -.if defined(WITH_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 -.if !defined(WITHOUT_WIN32) -CONFIGURE_ARGS+= --enable-real \ - --with-reallibdir=${LOCALBASE}/lib/win32 -.else -CONFIGURE_ARGS+= --disable-real -.endif -.endif - -.if defined(WITH_LIVEMEDIA) -CONFIGURE_ARGS+= --enable-live \ - --with-livelibdir=${LOCALBASE}/live -RUN_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia -BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia -.else -CONFIGURE_ARGS+= --disable-live -.endif - -.if defined(WITH_SMB) -CONFIGURE_ARGS+= --enable-smb -LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient -.else -CONFIGURE_ARGS+= --disable-smb -.endif - -.if !defined(WITHOUT_XVID) -CONFIGURE_ARGS+= --enable-xvid -LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid -.else -CONFIGURE_ARGS+= --disable-xvid -.endif - -.if defined(WITH_XMMS) -CONFIGURE_ARGS+= --enable-xmms -LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms -.else -CONFIGURE_ARGS+= --disable-xmms -.endif - -.if !defined(WITHOUT_DTS) -CFLAGS+= -I${LOCALBASE}/include -CONFIGURE_ARGS+= --enable-libdts -LIB_DEPENDS+= dca.0:${PORTSDIR}/multimedia/libdca -.else -CONFIGURE_ARGS+= --disable-libdts -.endif - -.if defined(WITH_LIBMPCDEC) -LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec -.else -CONFIGURE_ARGS+= --disable-musepack -.endif - -.if defined(WITH_FAAC) -LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac -.else -CONFIGURE_ARGS+= --disable-faac -.endif - -.if defined(WITH_LADSPA) -RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa -.else -CONFIGURE_ARGS+= --disable-ladspa -.endif - -.if !defined(WITHOUT_SPEEX) -CONFIGURE_ARGS+= --enable-speex -LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex -.else -CONFIGURE_ARGS+= --disable-speex -.endif - -.if !defined(WITHOUT_FREETYPE) -CONFIGURE_ARGS+= --with-extraincdir=${LOCALBASE}/include/freetype2 \ - --enable-freetype -LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 -.else -.if !defined(WITHOUT_X11) -RUN_DEPENDS+= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/multimedia/mplayer-fonts -.endif -CONFIGURE_ARGS+= --disable-freetype -.endif - -.if defined(WITH_XANIM) -BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim -CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim -.else -CONFIGURE_ARGS+=--disable-xanim -.endif - -.if defined(WITH_LIBLZO) -LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo -.else -CONFIGURE_ARGS+= --disable-liblzo -.endif - -.if defined(WITH_DVD_DEVICE) -DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} -.else -.if ${OSVERSION} < 500000 -DEFAULT_DVD_DEVICE=/dev/acd0c -.else -DEFAULT_DVD_DEVICE=/dev/acd0 -.endif -.endif - -.if defined(WITH_CDROM_DEVICE) -DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} -.else -.if ${OSVERSION} < 500000 -DEFAULT_CDROM_DEVICE=/dev/acd0c -.else -DEFAULT_CDROM_DEVICE=/dev/acd0 -.endif -.endif - .if defined(WITH_KERN_HZ) DEFAULT_KERN_HZ=${WITH_KERN_HZ} .else @@ -595,32 +202,6 @@ CONFIGURE_ARGS+=--disable-joystick .endif -# "enable" build for other archs -.if ${ARCH} == "i386" || ${ARCH} == "amd64" -.if !defined(WITHOUT_RTCPU) -CONFIGURE_ARGS+=--enable-runtime-cpudetection -.else #WITH_RTCPU -.if defined(WITHOUT_MMX) || defined(WITHOUT_SIMD) -CONFIGURE_ARGS+=--disable-mmx -.endif -.if defined(WITHOUT_3DNOW) || defined(WITHOUT_SIMD) || ${OSVERSION} < 400021 -CONFIGURE_ARGS+=--disable-3dnow --disable-3dnowext -.endif -.if defined(WITHOUT_SSE) || defined(WITHOUT_SIMD) -CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2 -.endif -.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 -CONFIGURE_ARGS+= --disable-win32 \ - --disable-qtx-codecs -.endif -.endif # ARCH == i386/amd64 - pre-everything:: @${ECHO_MSG} "N - O - T - E" @${ECHO_MSG} "" @@ -661,15 +242,6 @@ 's|irqp = 1024|irqp = ${DEFAULT_KERN_HZ}|' \ ${WRKSRC}/mplayer.c .endif -.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.0pre8|1.0pre8-FreeBSD-generic|' \ - ${WRKSRC}/version.sh -.endif post-configure: @${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \ @@ -678,16 +250,11 @@ post-install: @${MKDIR} ${DATADIR} @${CHMOD} 755 ${DATADIR} - @${MKDIR} ${DATADIR}/tools - @${CHMOD} 755 ${DATADIR}/tools @${MKDIR} ${DATADIR}/examples/etc @${CHMOD} 755 ${DATADIR}/examples/etc .for conf in ${CONFFILES} ${INSTALL_DATA} ${WRKSRC}/etc/${conf} ${DATADIR}/examples/etc .endfor -.for tool in ${TOOLFILES} - ${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${DATADIR}/tools -.endfor .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${CHMOD} 755 ${DOCSDIR} diff -ruN /usr/ports/multimedia/mplayer/Makefile.options mplayer/Makefile.options --- /usr/ports/multimedia/mplayer/Makefile.options 1970-01-01 08:00:00.000000000 +0800 +++ mplayer/Makefile.options 2007-08-03 21:19:33.000000000 +0800 @@ -0,0 +1,285 @@ +# Contains the options and dependencies that are shared +# among mplayer and mencoder +# +# Some of the knobs are not tunable by the OPTIONS framework. These are +# explained here in detail. +# +# CPU features: +# +# 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. +# Note that disabling SIMD via the OPTIONS framework completely +# disables utilization of vector engines, i.e. it implies +# WITHOUT_MMX, WITHOUT_3DNOW and WITHOUT_SSE +# +# WITHOUT_MMX +# default: autodetected +# disables using of mmx code +# +# WITHOUT_3DNOW +# default: autodetected +# disables using of 3dNow! instructions on AMD CPUs +# +# WITHOUT_SSE +# default: autodetected +# disables all mmx2 and sse/sse2 code +# CAUTION: There are some Athlon CPUs which claim to be sse-able but +# 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 and newer systems on I686_CPU +# and later. 4.x users will have to define this explicitly. +# +# Feature options: +# 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 +# default 4.x: /dev/acd0c +# This option changes the default device where mplayer looks for +# a DVD medium +# +# WITH_CDROM_DEVICE=/path/to/desired/device +# default 5.x: /dev/acd0 +# default 4.x: /dev/acd0c +# This option changes the default cdrom device, maybe useful for VCDs +# +# WITH_LANG= +# 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 +# + +.if defined(WITH_LANG) +CONFIGURE_ARGS+=--language=${WITH_LANG} +.endif + +#On i386, gcc runs out of general purpose registers when +#trying to compile a debug version with the default flags. +.if defined(WITH_DEBUG) +.if ${ARCH} == "i386" +DEBUG_FLAGS= -g -O -fomit-frame-pointer +.endif +.else +.if !defined(WITHOUT_OCFLAGS) +CFLAGS+= -O3 -ffast-math -fomit-frame-pointer +.else +CFLAGS+= -O -fomit-frame-pointer +.endif +.endif + +.if defined(WITHOUT_IPV6) +CONFIGURE_ARGS+= --disable-inet6 +.else +CATEGORIES+= ipv6 +.endif + +.if !defined(WITHOUT_LIBUNGIF) +LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif +#CONFIGURE_ARGS+= --enable-gif +.else +CONFIGURE_ARGS+= --disable-gif +.endif + +.if defined(WITH_MAD) +LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/libmad + +CONFIGURE_ARGS+= --enable-mad \ + --with-madlibdir=${LOCALBASE}/lib +.else +CONFIGURE_ARGS+= --disable-mad +.endif + +.if defined(WITH_LIBDV) +LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv +CONFIGURE_ARGS+= --enable-libdv +.else +CONFIGURE_ARGS+= --disable-libdv +.endif + +.if defined(WITH_X264) +LIB_DEPENDS+= x264.50:${PORTSDIR}/multimedia/x264 +.else +CONFIGURE_ARGS+= --disable-x264 +.endif + +.if !defined(WITH_TREMOR) +CONFIGURE_ARGS+= --disable-tremor-internal +LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis +.endif + +.if !defined(WITHOUT_XVID) +CONFIGURE_ARGS+= --enable-xvid +LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid +.else +CONFIGURE_ARGS+= --disable-xvid +.endif + +.if defined(WITH_THEORA) +LIB_DEPENDS+= theora.2:${PORTSDIR}/multimedia/libtheora +.else +CONFIGURE_ARGS+= --disable-theora +.endif + +.if defined(WITH_LIBMPCDEC) +LIB_DEPENDS+= mpcdec.5:${PORTSDIR}/audio/libmpcdec +.else +CONFIGURE_ARGS+= --disable-musepack +.endif + +.if !defined(WITHOUT_DTS) +CFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ARGS+= --enable-libdts +BUILD_DEPENDS+= ${LOCALBASE}/lib/libdca.a:${PORTSDIR}/multimedia/libdca +.else +CONFIGURE_ARGS+= --disable-libdts +.endif + +.if !defined(WITHOUT_SPEEX) +CONFIGURE_ARGS+= --enable-speex +LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex +.else +CONFIGURE_ARGS+= --disable-speex +.endif + +.if defined(WITH_XANIM) +BUILD_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim +CONFIGURE_ARGS+=--enable-xanim --with-xanimlibdir=${X11BASE}/lib/X11/xanim +.else +CONFIGURE_ARGS+=--disable-xanim +.endif + +.if defined(WITH_LIVEMEDIA) +CONFIGURE_ARGS+= --enable-live \ + --with-livelibdir=${LOCALBASE}/live +RUN_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia +BUILD_DEPENDS+= ${LOCALBASE}/live/liveMedia/libliveMedia.a:${PORTSDIR}/net/liveMedia +.else +CONFIGURE_ARGS+= --disable-live +.endif + +.if defined(WITH_XMMS) +CONFIGURE_ARGS+= --enable-xmms +LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms +.else +CONFIGURE_ARGS+= --disable-xmms +.endif + +.if defined(WITH_JACK) +LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack +.else +CONFIGURE_ARGS+= --disable-jack +.endif + +#.if defined(WITH_POLYP) +#CONFIGURE_ARGS+= --enable-polyp +#LIB_DEPENDS+= polyp-0.7.0:${PORTSDIR}/audio/polypaudio +#.else +#CONFIGURE_ARGS+= --disable-polyp +#.endif + +.if defined(WITH_NAS) +CONFIGURE_ARGS+= --enable-nas +LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas +.else +CONFIGURE_ARGS+= --disable-nas +.endif + +.if defined(WITH_OPENAL) +LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal +.else +CONFIGURE_ARGS+= --disable-openal +.endif + +.if defined(WITH_SMB) +CONFIGURE_ARGS+= --enable-smb +LIB_DEPENDS+= smbclient.0:${PORTSDIR}/net/samba-libsmbclient +.else +CONFIGURE_ARGS+= --disable-smb +.endif + +.if defined(WITH_FRIBIDI) +LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi +CONFIGURE_ARGS+= --enable-fribidi +.else +CONFIGURE_ARGS+= --disable-fribidi +.endif + +.if defined(WITH_CDPARANOIA) +LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia +.else +CONFIGURE_ARGS+= --disable-cdparanoia +.endif + +.if defined(WITH_LIBCDIO) && !defined(WITH_CDPARANOIA) +BUILD_DEPENDS+= ${LOCALBASE}/include/cdio/cdio.h:${PORTSDIR}/sysutils/libcdio +.else +CONFIGURE_ARGS+= --disable-libcdio +.endif + +.if defined(WITH_LADSPA) +RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa +.else +CONFIGURE_ARGS+= --disable-ladspa +.endif + +.if defined(WITH_LIBLZO) +LIB_DEPENDS+= lzo.1:${PORTSDIR}/archivers/lzo +.else +CONFIGURE_ARGS+= --disable-liblzo +.endif + +.if defined(WITH_DVD_DEVICE) +DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE} +.else +DEFAULT_DVD_DEVICE=/dev/acd0 +.endif + +.if defined(WITH_CDROM_DEVICE) +DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} +.else +DEFAULT_CDROM_DEVICE=/dev/acd0 +.endif + +# "enable" build for other archs +.if ${ARCH} == "i386" || ${ARCH} == "amd64" +.if !defined(WITHOUT_RTCPU) +CONFIGURE_ARGS+=--enable-runtime-cpudetection +.else #WITH_RTCPU +.if defined(WITHOUT_MMX) || defined(WITHOUT_SIMD) +CONFIGURE_ARGS+=--disable-mmx +.endif +.if defined(WITHOUT_3DNOW) || defined(WITHOUT_SIMD) +CONFIGURE_ARGS+=--disable-3dnow --disable-3dnowext +.endif +.if defined(WITHOUT_SSE) || defined(WITHOUT_SIMD) +CONFIGURE_ARGS+=--disable-mmxext --disable-sse --disable-sse2 +.endif +.endif #WITH_RTCPU +.if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING) && ${ARCH} == "i386" +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 +CONFIGURE_ARGS+= --disable-win32 \ + --disable-qtx-codecs +.endif +.endif # ARCH == i386/amd64 + +.if defined(WITH_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 +.if !defined(WITHOUT_WIN32) && !defined(PACKAGE_BUILDING) +CONFIGURE_ARGS+= --enable-real \ + --with-reallibdir=${LOCALBASE}/lib/win32 +.else +CONFIGURE_ARGS+= --disable-real +.endif +.endif + diff -ruN /usr/ports/multimedia/mplayer/Makefile.shared mplayer/Makefile.shared --- /usr/ports/multimedia/mplayer/Makefile.shared 1970-01-01 08:00:00.000000000 +0800 +++ mplayer/Makefile.shared 2007-07-22 13:09:49.852976000 +0800 @@ -0,0 +1,46 @@ +# Contains the build infrastructural definitions for both +# mplayer and mencoder....the variables that we need to set +# before we include bsd.port.pre.mk + +MPLAYER_PORT_VERSION= 0.99.10 +CATEGORIES?= multimedia audio +MASTER_SITES= http://www1.mplayerhq.hu/MPlayer/releases/ \ + http://www2.mplayerhq.hu/MPlayer/releases/ \ + http://ftp.lug.udel.edu/MPlayer/releases/ \ + http://www4.mplayerhq.hu/MPlayer/releases/ \ + http://mirrors.xmission.com/MPlayer/releases/ \ + ftp://ftp1.mplayerhq.hu/MPlayer/releases/ \ + ftp://ftp2.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.0rc1 + +MAINTAINER?= riggs@rrr.de + +PATCH_SITES= http://www.mplayerhq.hu/MPlayer/patches/ +PATCHFILES+= asmrules_fix_20061231.diff + +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png + +USE_BZIP2= yes +USE_GMAKE= yes +USE_ICONV= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS=${PTHREAD_LIBS} \ + TMPDIR="${WRKSRC}" +CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \ + --with-extraincdir=${LOCALBASE}/include \ + --cc=${CC} \ + --as=${AS} \ + --enable-png \ + --enable-menu \ + --disable-libfame \ + --disable-faad-external \ + --disable-vidix-external \ + --disable-tv-v4l1 \ + --disable-tv-v4l2 + +WANT_GNOME= yes +WANT_SDL= yes diff -ruN /usr/ports/multimedia/mplayer/files/patch-libdha-pci.c mplayer/files/patch-libdha-pci.c --- /usr/ports/multimedia/mplayer/files/patch-libdha-pci.c 1970-01-01 08:00:00.000000000 +0800 +++ mplayer/files/patch-libdha-pci.c 2007-06-24 13:57:39.000000000 +0800 @@ -0,0 +1,9 @@ +--- libdha/pci.c Sun Oct 22 18:32:26 2006 ++++ libdha/pci.c Sat Jun 9 17:09:11 2007 +@@ -493,5 +493,5 @@ + #elif defined(__powerpc__) + #include "sysdep/pci_powerpc.c" +-#elif defined(__x86_64__) ++#elif defined(__x86_64__) || defined(__amd64__) + /* Nothing here right now */ + #else diff -ruN /usr/ports/multimedia/mplayer/pkg-plist mplayer/pkg-plist --- /usr/ports/multimedia/mplayer/pkg-plist 2006-11-21 06:58:17.000000000 +0800 +++ mplayer/pkg-plist 2007-07-22 13:10:05.516717000 +0800 @@ -1,5 +1,4 @@ bin/mplayer -%%MENCODER%%bin/mencoder %%GMPLAYER%%bin/gmplayer %%PORTDOCS%%%%DOCSDIR%%/advaudio.html %%PORTDOCS%%%%DOCSDIR%%/aspect.html @@ -103,23 +102,10 @@ %%VIDIX%%lib/mplayer/vidix/savage_vid.so %%VIDIX%%lib/mplayer/vidix/sis_vid.so %%VIDIX%%lib/mplayer/vidix/unichrome_vid.so -%%DATADIR%%/tools/calcbpp.pl -%%DATADIR%%/tools/countquant.pl -%%DATADIR%%/tools/dvd2divxscript.pl -%%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%%/examples/etc/example.conf %%DATADIR%%/examples/etc/input.conf %%DATADIR%%/examples/etc/menu.conf %%DATADIR%%/examples/etc/dvb-menu.conf -@dirrm %%DATADIR%%/tools @dirrm %%DATADIR%%/examples/etc @dirrm %%DATADIR%%/examples @dirrmtry %%DATADIR%% diff -ruN /usr/ports/multimedia/mencoder/Makefile mencoder/Makefile --- /usr/ports/multimedia/mencoder/Makefile 1970-01-01 08:00:00.000000000 +0800 +++ mencoder/Makefile 2007-07-30 16:16:08.000000000 +0800 @@ -0,0 +1,136 @@ +# New ports collection makefile for: mencoder +# Date created: 23 June 2007 +# Whom: Thomas E. Zander +# $FreeBSD:$ +# + +PORTNAME= mencoder +PORTVERSION= ${MPLAYER_PORT_VERSION} +COMMENT= Convenient video file and movie encoder +RESTRICTED= Port has restricted dependencies + +.include "${.CURDIR}/../mplayer/Makefile.shared" + +OPTIONS= DEBUG "Include debug symbols in mencoder's binary files" off +OPTIONS+= RTCPU "Let mplayer dynamically check for CPU features" on +OPTIONS+= OCFLAGS "Use optimized compiler flags" on +OPTIONS+= SIMD "Allow mplayer to use vector engines (MMX...)" on +OPTIONS+= IPV6 "Include inet6 network support" on +OPTIONS+= JACK "Enable JackIt audio server support" off +#OPTIONS+= POLYP "Enable polyp sound server support" off +OPTIONS+= NAS "Enable NAS sound server support" off +OPTIONS+= OPENAL "Enable OpenAL sound support" off +OPTIONS+= LIBUNGIF "Enable gif support" on +OPTIONS+= LIBDV "Enable libdv support" off +OPTIONS+= MAD "Enable mad MPEG audio engine support" off +OPTIONS+= TWOLAME "Enable twolame MPEG audio codec support" off +OPTIONS+= DTS "Enable DTS audio codec support" on +OPTIONS+= LIBMPCDEC "Enable libmpcdec support" off +OPTIONS+= FAAC "Enable FAAC audio codec support" off +OPTIONS+= LADSPA "Enable LADSPA plugin support" off +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+= WIN32 "Enable win32 codec set on the IA32 arch" on +OPTIONS+= THEORA "Enable ogg theora video support" off +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+= SMB "Enable Samba input support" off +OPTIONS+= FRIBIDI "Enable FriBiDi support" off +OPTIONS+= LIBCDIO "Enable libcdio support" off +OPTIONS+= CDPARANOIA "Enable cdparanoia support" off +OPTIONS+= LIBLZO "Enable external liblzo library" off + +MLINKS= mplayer.1 mencoder.1 + +PATCHDIR= ${.CURDIR}/../mplayer/files +DATADIR= ${TARGETDIR}/share/mplayer + +TOOLFILES= calcbpp.pl countquant.pl dvd2divxscript.pl \ + menc2pass mencvcd mp.pl subedit.pl subsearch.sh \ + sws-test w32codec_dl.pl wma2ogg.pl x2mpsub.sh + +.include + +LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame +BUILD_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer +RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer + +CONFIGURE_ARGS+= --disable-vidix-internal \ + --disable-freetype \ + --disable-x11 \ + --disable-fontconfig \ + --disable-rtc \ + --disable-arts \ + --disable-esd \ + --disable-caca \ + --disable-lirc \ + --disable-sdl \ + --disable-svga \ + --disable-aa \ + --disable-joystick + +.include "${.CURDIR}/../mplayer/Makefile.options" + +.if defined(WITH_TWOLAME) +LIB_DEPENDS+= twolame.0:${PORTSDIR}/audio/twolame +.else +CONFIGURE_ARGS+= --disable-twolame +.endif + +.if defined(WITH_FAAC) +LIB_DEPENDS+= faac.0:${PORTSDIR}/audio/faac +.else +CONFIGURE_ARGS+= --disable-faac +.endif + +pre-everything:: + @${ECHO_MSG} "N - O - T - E" + @${ECHO_MSG} "" + @${ECHO_MSG} "There are some knobs which *can* *not* be selected via the" + @${ECHO_MSG} "OPTIONS framework. As this one is a slave port of multimedia/" + @${ECHO_MSG} "mplayer, you might want to check mplayer's Makefile(s) in" + @${ECHO_MSG} "order to learn more about them." + +post-patch: + @${REINPLACE_CMD} -e \ + 's|libxmms.so.1|libxmms.so|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|; \ + s|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ + ${WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e 's!/usr/local!${PREFIX}!' \ + ${WRKSRC}/${CONFIGURE_SCRIPT} + @${FIND} -E ${WRKSRC} -type f \ + -iregex ".*(configure|.sh|Makefile)" -print0 | \ + ${XARGS} -x -0 -n 10 \ + ${REINPLACE_CMD} -E \ + -e 's|[[:space:]]gcc[-[:digit:]\.]+| ${CC}|' \ + -e 's|[[:space:]]gcc| ${CC}|' \ + -e 's|\$$\(CC\)|${CC}|' \ + -e 's|/usr/X11R6|${X11BASE}|' + @${FIND} ${WRKSRC}/DOCS/man -name "mplayer.1" | ${XARGS} ${REINPLACE_CMD} -E -e \ + 's|/usr/\\:local/\\:etc/\\:mplayer|${DATADIR:S/\//\/\\\:/g}|g ; \ + s|/dev/\\:(dvd[[:alnum:]]*[[:>:]])|${DEFAULT_DVD_DEVICE:S/dev\//dev\/\\\:/}|g ; \ + s|/dev/\\:(cdrom[[:alnum:]]*[[:>:]])|${DEFAULT_CDROM_DEVICE:S/dev\//dev\/\\\:/}|g' + +post-configure: + @${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g' \ + ${WRKSRC}/config.mak + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/mencoder ${PREFIX}/bin + +post-install: + @${MKDIR} ${DATADIR} + @${CHMOD} 755 ${DATADIR} + @${MKDIR} ${DATADIR}/tools + @${CHMOD} 755 ${DATADIR}/tools +.for tool in ${TOOLFILES} + @${INSTALL_SCRIPT} ${WRKSRC}/TOOLS/${tool} ${DATADIR}/tools +.endfor + +.include diff -ruN /usr/ports/multimedia/mencoder/distinfo mencoder/distinfo --- /usr/ports/multimedia/mencoder/distinfo 1970-01-01 08:00:00.000000000 +0800 +++ mencoder/distinfo 2007-06-23 02:46:06.000000000 +0800 @@ -0,0 +1,6 @@ +MD5 (MPlayer-1.0rc1.tar.bz2) = 18c05d88e22c3b815a43ca8d7152ccdc +SHA256 (MPlayer-1.0rc1.tar.bz2) = 8dd9dd61a0fe56904f5b76ddedb99bd359abaaf486e0b83b45e3357fecc81063 +SIZE (MPlayer-1.0rc1.tar.bz2) = 8414213 +MD5 (asmrules_fix_20061231.diff) = f0b71c38b1207c1d604be091876ac051 +SHA256 (asmrules_fix_20061231.diff) = 3f71e6f4e07940d4d55084d0df12404371bc4e534a3a6b0756ca73e44ddbc3c4 +SIZE (asmrules_fix_20061231.diff) = 1450 diff -ruN /usr/ports/multimedia/mencoder/pkg-descr mencoder/pkg-descr --- /usr/ports/multimedia/mencoder/pkg-descr 1970-01-01 08:00:00.000000000 +0800 +++ mencoder/pkg-descr 2007-07-22 13:09:31.228347000 +0800 @@ -0,0 +1,8 @@ +The "mencoder" component of the MPlayer project is a tool which +allows creation of video streams. It supports almost the same set +of input sources as the player component and supports encoding from +these sources through various codecs, including the popular ffmpeg, +XviD and x264 families. "Transcoding" DVDs into avi files is also +possible. + +WWW: http://www.mplayerhq.hu/ diff -ruN /usr/ports/multimedia/mencoder/pkg-plist mencoder/pkg-plist --- /usr/ports/multimedia/mencoder/pkg-plist 1970-01-01 08:00:00.000000000 +0800 +++ mencoder/pkg-plist 2007-07-22 13:09:31.228347000 +0800 @@ -0,0 +1,15 @@ +bin/mencoder +%%DATADIR%%/tools/calcbpp.pl +%%DATADIR%%/tools/countquant.pl +%%DATADIR%%/tools/dvd2divxscript.pl +%%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 +@dirrm %%DATADIR%%/tools +@dirrmtry %%DATADIR%%