diff options
author | 2006-09-24 12:26:28 +0000 | |
---|---|---|
committer | 2006-09-24 12:26:28 +0000 | |
commit | 9976cfe1b5136d1f606103404696917781ae7105 (patch) | |
tree | b3a6daaf4d211cf6ddb9765fefd8da6ce0d7034f /media-video | |
download | drizzt-9976cfe1b5136d1f606103404696917781ae7105.tar.gz drizzt-9976cfe1b5136d1f606103404696917781ae7105.tar.bz2 drizzt-9976cfe1b5136d1f606103404696917781ae7105.zip |
Initial import
svn path=/; revision=1
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/mplayer/Manifest | 22 | ||||
-rw-r--r-- | media-video/mplayer/files/digest-mplayer-9999-r5 | 21 | ||||
-rw-r--r-- | media-video/mplayer/files/mplayer-vc1.patch | 20 | ||||
-rw-r--r-- | media-video/mplayer/files/mplayer.desktop | 13 | ||||
-rw-r--r-- | media-video/mplayer/mplayer-9999-r5.ebuild | 643 | ||||
-rw-r--r-- | media-video/mplayerthumbs/Manifest | 8 | ||||
-rw-r--r-- | media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5 | 3 | ||||
-rw-r--r-- | media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5b | 3 | ||||
-rw-r--r-- | media-video/mplayerthumbs/mplayerthumbs-0.5b.ebuild | 26 |
9 files changed, 759 insertions, 0 deletions
diff --git a/media-video/mplayer/Manifest b/media-video/mplayer/Manifest new file mode 100644 index 0000000..aaee8b5 --- /dev/null +++ b/media-video/mplayer/Manifest @@ -0,0 +1,22 @@ +AUX mplayer-vc1.patch 424 RMD160 04f99888717b16e9263e991994d0ba51288f8c7e SHA1 07def2d2a2f2eab633915e12c05324032ab9cbd0 SHA256 8971aededf9176e39371060d6db26054a7780fdbf299508d87bf61f76e94152c +MD5 d76178850718db3e29e8d108384edc75 files/mplayer-vc1.patch 424 +RMD160 04f99888717b16e9263e991994d0ba51288f8c7e files/mplayer-vc1.patch 424 +SHA256 8971aededf9176e39371060d6db26054a7780fdbf299508d87bf61f76e94152c files/mplayer-vc1.patch 424 +AUX mplayer.desktop 794 RMD160 f7df35bfad6cb8d1eba2f5b2df9ace117c9f2651 SHA1 24f4082fabb0637be4044b467a7f2e6a7b5c821a SHA256 a3763e82f93b008e202bcb38bd48a65de8f4fd954a8e44b847f0a0f3a83b563d +MD5 995f560631c6874f08bf6cc9ae01fb08 files/mplayer.desktop 794 +RMD160 f7df35bfad6cb8d1eba2f5b2df9ace117c9f2651 files/mplayer.desktop 794 +SHA256 a3763e82f93b008e202bcb38bd48a65de8f4fd954a8e44b847f0a0f3a83b563d files/mplayer.desktop 794 +DIST 26104-510.zip 291836 RMD160 0ff97a27fe5d08dd43571fd1982ce0f07bce3bca SHA1 b22dbe895991c23fad446c3c4ff7b6db12673778 SHA256 75fdf6416950c155ccbfd7fae4ffd6529f162ad6b427ab242c3e00685e303f46 +DIST 26204-510.zip 246663 RMD160 1b68232bc40d84298b134c57697e29a842e63ffd SHA1 9ca910295c2888fba95a98da83762a22aaf34651 SHA256 069ebd6ed8ef846d99bdd13d6c47fdb99fe5583b0ed5f405e1392a1a21a1b991 +DIST Blue-1.5.tar.bz2 222679 RMD160 5c6b72c9ffeb247acb5a77bfeabf9329f29ff040 SHA1 0bfd2fefa9f640a54fc1f2b787d5e1b4d4b8ee98 SHA256 5bbcdea819643d99922e2ccc1b79bffb323650d78a7174f8b8d044d595a9789a +DIST font-arial-cp1250.tar.bz2 249705 RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 SHA1 ccf11dce5d0fb72fd3af97f788b7471cd0cd0b68 SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 +DIST font-arial-iso-8859-1.tar.bz2 234242 RMD160 666697cd5efd9387057a898c714175e7c2aacbcd SHA1 152c40bf20de34aa8802d7f80d34d673b0b67212 SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 +DIST font-arial-iso-8859-2.tar.bz2 222208 RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb SHA1 7b99bbe0e9ba89a57eccbea8f93c453c4f268181 SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 +DIST svgalib_helper-1.9.17-mplayer.tar.bz2 7234 RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 SHA1 d2d596f1ddd283188b2990417d22903c0b466d25 SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 +EBUILD mplayer-9999-r5.ebuild 17588 RMD160 e80cd0735c5d76c6b3289fb7c6d030ecc0af9650 SHA1 b364a69aa060994b7feab04678354a4f3749d60d SHA256 25c0b14b26f856e40a3ef388195eb9d8e00262e4c96d793714d5f1e3608bc02d +MD5 66ad46513f15ac72d7d3ea0235f354f3 mplayer-9999-r5.ebuild 17588 +RMD160 e80cd0735c5d76c6b3289fb7c6d030ecc0af9650 mplayer-9999-r5.ebuild 17588 +SHA256 25c0b14b26f856e40a3ef388195eb9d8e00262e4c96d793714d5f1e3608bc02d mplayer-9999-r5.ebuild 17588 +MD5 ff3c061e7c218ac24219bea5175973dc files/digest-mplayer-9999-r5 1747 +RMD160 c228227e81e1c01b2796227d92cccd4b5cca3ed9 files/digest-mplayer-9999-r5 1747 +SHA256 c10459adda4c8f978ed67ef62e464da45bf264a5d21ef05fa595648e1f1d6334 files/digest-mplayer-9999-r5 1747 diff --git a/media-video/mplayer/files/digest-mplayer-9999-r5 b/media-video/mplayer/files/digest-mplayer-9999-r5 new file mode 100644 index 0000000..475d679 --- /dev/null +++ b/media-video/mplayer/files/digest-mplayer-9999-r5 @@ -0,0 +1,21 @@ +MD5 9b575d01f94f50dd4dcf570cd8a14dda 26104-510.zip 291836 +RMD160 0ff97a27fe5d08dd43571fd1982ce0f07bce3bca 26104-510.zip 291836 +SHA256 75fdf6416950c155ccbfd7fae4ffd6529f162ad6b427ab242c3e00685e303f46 26104-510.zip 291836 +MD5 607a14d090898ffb0f72c1aa6aa6ce31 26204-510.zip 246663 +RMD160 1b68232bc40d84298b134c57697e29a842e63ffd 26204-510.zip 246663 +SHA256 069ebd6ed8ef846d99bdd13d6c47fdb99fe5583b0ed5f405e1392a1a21a1b991 26204-510.zip 246663 +MD5 371fa9457f0f23295ddaa93b57d862a0 Blue-1.5.tar.bz2 222679 +RMD160 5c6b72c9ffeb247acb5a77bfeabf9329f29ff040 Blue-1.5.tar.bz2 222679 +SHA256 5bbcdea819643d99922e2ccc1b79bffb323650d78a7174f8b8d044d595a9789a Blue-1.5.tar.bz2 222679 +MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 +RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 +SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 +MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 +RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 +SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 +MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 +RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 +SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 +MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 +RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 +SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/mplayer-vc1.patch b/media-video/mplayer/files/mplayer-vc1.patch new file mode 100644 index 0000000..9083e54 --- /dev/null +++ b/media-video/mplayer/files/mplayer-vc1.patch @@ -0,0 +1,20 @@ +--- etc/codecs.conf.old 2006-08-13 11:52:45.000000000 +0200 ++++ etc/codecs.conf 2006-08-13 11:53:51.000000000 +0200 +@@ -532,7 +532,7 @@ + + videocodec ffwmv2 + info "FFmpeg M$ WMV2/WMV8" +- status buggy ++ status working + fourcc WMV2,wmv2 + driver ffmpeg + dll wmv2 +@@ -540,7 +540,7 @@ + + videocodec ffwmv3 + info "FFmpeg M$ WMV3/WMV9" +- status buggy ++ status working + fourcc WMV3,wmv3 + driver ffmpeg + dll wmv3 diff --git a/media-video/mplayer/files/mplayer.desktop b/media-video/mplayer/files/mplayer.desktop new file mode 100644 index 0000000..3e2e7b3 --- /dev/null +++ b/media-video/mplayer/files/mplayer.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +StartupNotify=false +Name=MPlayer +Comment=Media Player For Linux +GenericName=Video Player +Exec=gmplayer +Terminal=false +Type=Application +Icon=mplayer.xpm +Categories=Application;Multimedia;AudioVideo;Player; +MimeType=video/quicktime;video/x-quicktime;image/x-quicktime;application/x-quicktimeplayer;video/x-ms-asf-plugin;video/x-msvideo;video/msvideo;application/x-mplayer2;video/x-ms-wm;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmp;video/x-ms-wvx;audio/x-ms-wax;audio/x-ms-wma;application/x-drm-v2;audio/wav;audio/x-wav;video/mpeg;audio/mpeg;video/x-mpeg;video/x-mpeg2;audio/mpeg;audio/x-mpeg;audio/mpeg2;audio/x-mpeg2;audio/mpeg3;audio/x-mpeg3;audio/x-mp3;audio/mp3;video/mp4;video/fli;video/x-fli;video/vnd.vivo;application/x-ogg;application/ogg diff --git a/media-video/mplayer/mplayer-9999-r5.ebuild b/media-video/mplayer/mplayer-9999-r5.ebuild new file mode 100644 index 0000000..dc51bed --- /dev/null +++ b/media-video/mplayer/mplayer-9999-r5.ebuild @@ -0,0 +1,643 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils flag-o-matic subversion + +RESTRICT="nostrip" +IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec amr arts bidi bl cpudetection +custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv +dvdread dvdnav enca encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca +lirc live lzo mad matrox mmx mmxext musepack nas nls nvidia vorbis opengl +oss png real rtc samba sdl speex sse sse2 svga tga theora truetype v4l v4l2 +win32codecs X xanim xinerama xmms xv xvid xvmc x264" + +BLUV=1.5 +SVGV=1.9.17 + +# Handle PREversions as well +S="${WORKDIR}/${PN}" +SRC_URI="mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 + mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 + mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 + svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) + gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 ) + amr? ( ${AMR_URI}/26_series/26.104/26104-510.zip + ${AMR_URI}/26_series/26.204/26204-510.zip )" + +# Only install Skin if GUI should be build (gtk as USE flag) +DESCRIPTION="Media Player for Linux" +HOMEPAGE="http://www.mplayerhq.hu/" + +# 'encode' in USE for MEncoder. +RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) + aac? ( encode? ( media-libs/faac ) ) + win32codecs? ( >=media-libs/win32codecs-20040916 ) + x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) + aalib? ( media-libs/aalib ) + alsa? ( media-libs/alsa-lib ) + arts? ( kde-base/arts ) + bidi? ( dev-libs/fribidi ) + cdparanoia? ( media-sound/cdparanoia ) + dga? ( || ( x11-libs/libXxf86dga virtual/x11 ) ) + directfb? ( dev-libs/DirectFB ) + dts? ( media-libs/libdts ) + dvb? ( media-tv/linuxtv-dvb-headers ) + dvd? ( dvdread? ( media-libs/libdvdread ) ) + dvdnav? ( media-libs/libdvdnav ) + encode? ( + media-sound/lame + dv? ( >=media-libs/libdv-0.9.5 ) + ) + esd? ( media-sound/esound ) + gif? ( media-libs/giflib ) + ggi? ( media-libs/libggi ) + gtk? ( + media-libs/libpng + || ( ( x11-libs/libXxf86vm + x11-libs/libXext + x11-libs/libXi + ) + virtual/x11 + ) + =x11-libs/gtk+-2* + =dev-libs/glib-2* + ) + jpeg? ( media-libs/jpeg ) + libcaca? ( media-libs/libcaca ) + lirc? ( app-misc/lirc ) + lzo? ( =dev-libs/lzo-1* ) + mad? ( media-libs/libmad ) + musepack? ( >=media-libs/libmpcdec-1.2.2 ) + nas? ( media-libs/nas ) + nls? ( virtual/libintl ) + vorbis? ( media-libs/libvorbis ) + opengl? ( virtual/opengl ) + png? ( media-libs/libpng ) + samba? ( >=net-fs/samba-2.2.8a ) + sdl? ( media-libs/libsdl ) + svga? ( media-libs/svgalib ) + theora? ( media-libs/libtheora ) + live? ( >=media-plugins/live-2004.07.20 ) + truetype? ( >=media-libs/freetype-2.1 ) + xinerama? ( || ( ( x11-libs/libXinerama + x11-libs/libXxf86vm + x11-libs/libXext + ) + virtual/x11 + ) + ) + xmms? ( media-sound/xmms ) + xanim? ( >=media-video/xanim-2.80.1-r4 ) + x264? ( media-libs/x264-svn ) + sys-libs/ncurses + xv? ( || ( ( x11-libs/libXv + x11-libs/libXxf86vm + x11-libs/libXext + ) + virtual/x11 + ) + ) + xvmc? ( || ( x11-libs/libXvMC virtual/x11 ) ) + X? ( || ( ( x11-libs/libXxf86vm + x11-libs/libXext + ) + virtual/x11 + ) + )" + +DEPEND="${RDEPEND} + app-arch/unzip + nls? ( sys-devel/gettext ) + dga? ( || ( x11-proto/xf86dgaproto virtual/x11 ) ) + jack? ( >=media-libs/bio2jack-0.4 ) + xinerama? ( || ( x11-proto/xineramaproto virtual/x11 ) ) + xv? ( || ( ( x11-proto/videoproto + x11-proto/xf86vidmodeproto + ) + virtual/x11 + ) + ) + gtk? ( || ( ( x11-proto/xextproto + x11-proto/xf86vidmodeproto + ) + virtual/x11 + ) + ) + X? ( || ( ( x11-proto/xextproto + x11-proto/xf86vidmodeproto + ) + virtual/x11 + ) + )" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +pkg_setup() { + if use real && use x86; then + REALLIBDIR="/opt/RealPlayer/codecs" + fi +} + +src_unpack() { + ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk/" + ESVN_PROJECT="mplayer" + subversion_src_unpack + + + cd ${WORKDIR} + + unpack font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 font-arial-cp1250.tar.bz2 + + use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 + + use gtk && unpack Blue-${BLUV}.tar.bz2 + + use amr && unpack 26104-510.zip && unpack 26204-510.zip + + # amr (float) support + if use amr; then + einfo "Including amr wide and narrow band (float) support ... " + # narrow band codec + unzip -q -d ${S}/libavcodec/amr_float ${WORKDIR}/26104-510_ANSI_C_source_code.zip + # wide band codec + unzip -q -d ${S}/libavcodec/amrwb_float ${WORKDIR}/26204-510_ANSI-C_source_code.zip + fi + + cd ${S} + + epatch "${FILESDIR}"/mplayer-vc1.patch + + # Fix hppa compilation + [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" + + if use svga + then + echo + einfo "Enabling vidix non-root mode." + einfo "(You need a proper svgalib_helper.o module for your kernel" + einfo " to actually use this)" + echo + + mv ${WORKDIR}/svgalib_helper ${S}/libdha + fi + + # Remove kernel-2.6 workaround as the problem it works around is + # fixed, and the workaround breaks sparc + use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h + +} + +linguas_warn() { + ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" + ewarn "Language set to English" + ewarn "If this is a mistake, please set the" + ewarn "First LINGUAS language to one of the following" + ewarn + ewarn "bg - Bulgarian" + ewarn "cs - Czech" + ewarn "de - German" + ewarn "dk - Danish" + ewarn "el - Greek" + ewarn "en - English" + ewarn "es - Spanish" + ewarn "fr - French" + ewarn "hu - Hungarian" + ewarn "ja - Japanese" + ewarn "ko - Korean" + ewarn "mk - FYRO Macedonian" + ewarn "nl - Dutch" + ewarn "no - Norwegian" + ewarn "pl - Polish" + ewarn "pt_BR - Portuguese - Brazil" + ewarn "ro - Romanian" + ewarn "ru - Russian" + ewarn "sk - Slovak" + ewarn "tr - Turkish" + ewarn "uk - Ukranian" + ewarn "zh_CN - Chinese - China" + ewarn "zh_TW - Chinese - Taiwan" + export LINGUAS="en ${LINGUAS}" +} + +src_compile() { + + # have fun with LINGUAS variable + if [[ -n $LINGUAS ]] + then + # LINGUAS has stuff in it, start the logic + LANG=( $LINGUAS ) + if [ -e ${S}/help/help_mp-${LANG[0]}.h ] + then + einfo "Setting MPlayer messages to language: ${LANG[0]}" + else + LANG_CC=${LANG[0]} + if [ ${#LANG_CC} -ge 2 ] + then + LANG_CC=${LANG_CC:0:2} + if [ -e ${S}/help/help_mp-${LANG_CC}.h ] + then + einfo "Setting MPlayer messages to language ${LANG_CC}" + export LINGUAS="${LANG_CC} ${LINGUAS}" + else + linguas_warn + fi + else + linguas_warn + fi + fi + else + # sending blank LINGUAS, make it default to en + einfo "No LINGUAS given, defaulting to English" + export LINGUAS="en ${LINGUAS}" + fi + + local myconf= + ################ + #Optional features# + ############### + myconf="${myconf} $(use_enable cpudetection runtime-cpudetection)" + myconf="${myconf} $(use_enable bidi fribidi)" + + if use iconv + then + use unicode && myconf="${myconf} --charset=UTF-8" + else + myconf="${myconf} --charset=noconv" + fi + + if use enca + then + myconf="${myconf} --enable-enca" + else + myconf="${myconf} --disable-enca" + fi + + myconf="${myconf} $(use_enable cdparanoia)" + + if use dvd; then + if use dvdnav; then + myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit) $(use_enable !dvdread dvdnav)" + else + myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" + fi + else + if use dvdnav; then + myconf="${myconf} $(use_enable dvdnav) --disable-dvdread --disable-mpdvdkit" + else + myconf="${myconf} --disable-dvdread --disable-mpdvdkit" + fi + fi + + if use encode ; then + myconf="${myconf} --enable-mencoder $(use_enable dv libdv)" + else + myconf="${myconf} --disable-mencoder --disable-libdv --disable-toolame" + fi + use aac && use encode || myconf="${myconf} --disable-faac" + + myconf="${myconf} $(use_enable gtk gui)" + + if use !gtk && use !X && use !xv && use !xinerama; then + myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" + else + #note we ain't touching --enable-vm. That should be locked down in the future. + myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" + fi + + # this looks like a hack, but the + # --enable-dga needs a paramter, but there's no surefire + # way to tell what it is.. so I'm letting MPlayer decide + # the enable part + if ! use dga && ! use 3dfx ; then + myconf="${myconf} --disable-dga" + fi + # disable png *only* if gtk && png aren't on + if use png || use gtk; then + myconf="${myconf} --enable-png" + else + myconf="${myconf} --disable-png" + fi + myconf="${myconf} $(use_enable ipv6 inet6)" + myconf="${myconf} $(use_enable joystick)" + myconf="${myconf} $(use_enable lirc)" + myconf="${myconf} $(use_enable live)" + myconf="${myconf} $(use_enable rtc)" + myconf="${myconf} $(use_enable samba smb)" + myconf="${myconf} $(use_enable truetype freetype)" + myconf="${myconf} $(use_enable v4l tv-v4l1)" + myconf="${myconf} $(use_enable v4l2 tv-v4l2)" + + ######### + # Codecs # + ######## + myconf="${myconf} $(use_enable gif)" + myconf="${myconf} $(use_enable jpeg)" + #myconf="${myconf} $(use_enable ladspa)" + myconf="${myconf} $(use_enable dts libdts)" + myconf="${myconf} $(use_enable lzo liblzo)" + myconf="${myconf} $(use_enable musepack)" + myconf="${myconf} $(use_enable aac faad-internal)" + myconf="${myconf} $(use_enable vorbis libvorbis)" + myconf="${myconf} $(use_enable theora)" + use speex || myconf="${myconf} --disable-speex" + myconf="${myconf} $(use_enable xmms)" + myconf="${myconf} $(use_enable xvid)" + myconf="${myconf} $(use_enable x264)" + use x86 && myconf="${myconf} $(use_enable real)" + myconf="${myconf} $(use_enable win32codecs win32)" + + ############# + # Video Output # + ############# + myconf="${myconf} $(use_enable 3dfx)" + if use 3dfx; then + myconf="${myconf} --enable-tdfxvid" + else + myconf="${myconf} --disable-tdfxvid" + fi + if use fbcon && use 3dfx; then + myconf="${myconf} --enable-tdfxfb" + else + myconf="${myconf} --disable-tdfxfb" + fi + + if use dvb ; then + myconf="${myconf} --enable-dvbhead" + else + myconf="${myconf} --disable-dvbhead" + fi + + use aalib || myconf="${myconf} --disable-aa" + myconf="${myconf} $(use_enable directfb)" + myconf="${myconf} $(use_enable fbcon fbdev)" + myconf="${myconf} $(use_enable ggi)" + myconf="${myconf} $(use_enable libcaca caca)" + if use matrox && use X; then + myconf="${myconf} $(use_enable matrox xmga)" + fi + myconf="${myconf} $(use_enable matrox mga)" + myconf="${myconf} $(use_enable opengl gl)" + myconf="${myconf} $(use_enable sdl)" + + if use svga + then + myconf="${myconf} --enable-svga" + else + myconf="${myconf} --disable-svga --disable-vidix-internal" + fi + + myconf="${myconf} $(use_enable tga)" + + ( use xvmc && use nvidia ) \ + && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" + + ( use xvmc && use i8x0 ) \ + && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" + + ( use xvmc && use nvidia && use i8x0 ) \ + && { + eerror "Invalid combination of USE flags" + eerror "When building support for xvmc, you may only" + eerror "include support for one video card:" + eerror " nvidia, i8x0" + eerror + eerror "Emerge again with different USE flags" + + exit 1 + } + + ( use xvmc && ! use nvidia && ! use i8x0 ) && { + ewarn "You tried to build with xvmc support." + ewarn "No supported graphics hardware was specified." + ewarn + ewarn "No xvmc support will be included." + ewarn "Please one appropriate USE flag and re-emerge:" + ewarn " nvidia or i8x0" + + myconf="${myconf} --disable-xvmc" + } + + ############# + # Audio Output # + ############# + myconf="${myconf} $(use_enable alsa)" + myconf="${myconf} $(use_enable arts)" + myconf="${myconf} $(use_enable esd)" + myconf="${myconf} $(use_enable mad)" + myconf="${myconf} $(use_enable nas)" + myconf="${myconf} $(use_enable oss ossaudio)" + use jack || myconf="${myconf} --disable-jack" + + ################# + # Advanced Options # + ################# + # Platform specific flags, hardcoded on amd64 (see below) + use x86 && myconf="${myconf} $(use_enable 3dnow)" + if use x86; then + if use 3dnowext; then + myconf="${myconf} --enable-3dnowext" + fi + if use mmxext; then + myconf="${myconf} --enable-mmxext" + fi + fi + use x86 && myconf="${myconf} $(use_enable sse)" + use x86 && myconf="${myconf} $(use_enable sse2)" + use x86 && myconf="${myconf} $(use_enable mmx)" + myconf="${myconf} $(use_enable debug)" + + # mplayer now contains SIMD assembler code for amd64 + # AMD64 Team decided to hardenable SIMD assembler for all users + # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 + if use amd64; then + myconf="${myconf} --enable-3dnow --enable-3dnowext --enable-sse --enable-sse2 --enable-mmx --enable-mmxext" + fi + + if use ppc64 + then + myconf="${myconf} --disable-altivec" + else + myconf="${myconf} $(use_enable altivec)" + use altivec && append-flags -maltivec -mabi=altivec + fi + + + if use xanim + then + myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" + fi + + if [ -e /dev/.devfsd ] + then + myconf="${myconf} --enable-linux-devfs" + fi + + use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" + + use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" + + # support for blinkenlights + use bl && myconf="${myconf} --enable-bl" + + #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. + # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. + # it *will* be removed asap; in the meantime, doesn't hurt anything. + echo "${myconf}" > ${T}/configure-options + + if use custom-cflags + then + # let's play the filtration game! Mplayer hates on all! + strip-flags + # ugly optimizations cause Mplayer to cry on x86 systems! + if use x86; then + replace-flags -O0 -O2 + replace-flags -O3 -O2 + filter-flags -fPIC -fPIE + fi + else + unset CFLAGS CXXFLAGS + fi + + CFLAGS="$CFLAGS" ./configure \ + --prefix=/usr \ + --confdir=/usr/share/mplayer \ + --datadir=/usr/share/mplayer \ + --enable-largefiles \ + --enable-menu \ + --enable-network --enable-ftp \ + --with-reallibdir=${REALLIBDIR} \ + --disable-faad-external \ + ${myconf} || die + + # we run into problems if -jN > -j1 + # see #86245 + MAKEOPTS="${MAKEOPTS} -j1" + + einfo "Make" +# make depend && emake || die "Failed to build MPlayer!" + emake || die "make failed!" + einfo "Make completed" + +} + +src_install() { + + einfo "Make install" + make prefix=${D}/usr \ + BINDIR=${D}/usr/bin \ + LIBDIR=${D}/usr/$(get_libdir) \ + CONFDIR=${D}/usr/share/mplayer \ + DATADIR=${D}/usr/share/mplayer \ + MANDIR=${D}/usr/share/man \ + install || die "Failed to install MPlayer!" + einfo "Make install completed" + + dodoc AUTHORS ChangeLog README + # Install the documentation; DOCS is all mixed up not just html + if use doc ; then + find "${S}/DOCS" -type d | xargs -- chmod 0755 + find "${S}/DOCS" -type f | xargs -- chmod 0644 + cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die + fi + + # Copy misc tools to documentation path, as they're not installed directly + # and yes, we are nuking the +x bit. + find "${S}/TOOLS" -type d | xargs -- chmod 0755 + find "${S}/TOOLS" -type f | xargs -- chmod 0644 + cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die + + # Install the default Skin and Gnome menu entry + if use gtk; then + dodir /usr/share/mplayer/Skin + cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die + + # Fix the symlink + rm -rf ${D}/usr/bin/gmplayer + dosym mplayer /usr/bin/gmplayer + + insinto /usr/share/pixmaps + newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm + insinto /usr/share/applications + doins ${FILESDIR}/mplayer.desktop + fi + + dodir /usr/share/mplayer/fonts + local x= + # Do this generic, as the mplayer people like to change the structure + # of their zips ... + for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') + do + cp -Rd ${x} ${D}/usr/share/mplayer/fonts + done + # Fix the font symlink ... + rm -rf ${D}/usr/share/mplayer/font + dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font + + insinto /etc + newins ${S}/etc/example.conf mplayer.conf + dosed -e 's/include =/#include =/' /etc/mplayer.conf + dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf + dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf + + #mv the midentify script to /usr/bin for emovix. + cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin + chmod a+x ${D}/usr/bin/midentify + + insinto /usr/share/mplayer + doins ${S}/etc/codecs.conf + doins ${S}/etc/input.conf + doins ${S}/etc/menu.conf +} + +pkg_preinst() { + + if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] + then + rm -rf ${ROOT}/usr/share/mplayer/Skin/default + fi +} + +pkg_postinst() { + + if use matrox; then + depmod -a &>/dev/null || : + fi + + if use alsa ; then + einfo "For those using alsa, please note the ao driver name is no longer" + einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." + einfo "The syntax for optional drivers has also changed. For example" + einfo "if you use a dmix driver called 'dmixer,' use" + einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" + einfo "Some users may not need to specify the extra driver with the ao=" + einfo "command." + fi + if use dvdnav; then + if use dvdread; then + einfo " " + einfo "You have attempted to enable dvdread and dvdnav, which " + einfo "don't play well together. dvdnav has been disabled - if" + einfo "you want to try dvdnav, set -dvdread in your USE." + fi + fi +} + +pkg_postrm() { + + # Cleanup stale symlinks + if [ -L ${ROOT}/usr/share/mplayer/font -a \ + ! -e ${ROOT}/usr/share/mplayer/font ] + then + rm -f ${ROOT}/usr/share/mplayer/font + fi + + if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ + ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] + then + rm -f ${ROOT}/usr/share/mplayer/subfont.ttf + fi +} + diff --git a/media-video/mplayerthumbs/Manifest b/media-video/mplayerthumbs/Manifest new file mode 100644 index 0000000..cf9266b --- /dev/null +++ b/media-video/mplayerthumbs/Manifest @@ -0,0 +1,8 @@ +DIST mplayerthumbs-0.5b.tar.bz2 430037 RMD160 1248162367a181ca1aeaa26e77cb512c64bcdedb SHA1 b956f50493409795ad4776b95739cc611ebda137 SHA256 10f802264ec7cf4bed395534f87951fc31d29690077c57b824eb4e774c83b662 +EBUILD mplayerthumbs-0.5b.ebuild 627 RMD160 a22c57a810619e271ee357495185ebb6fa59263d SHA1 fbfa840df62d24c0a1f3818a37b634707b014fca SHA256 b17a1ee70bb7880892d1b476c634ed01625cd4fa510b9701fd50f91eb93d63f1 +MD5 dd59e358c24b216ef6ebe2d0c6195230 mplayerthumbs-0.5b.ebuild 627 +RMD160 a22c57a810619e271ee357495185ebb6fa59263d mplayerthumbs-0.5b.ebuild 627 +SHA256 b17a1ee70bb7880892d1b476c634ed01625cd4fa510b9701fd50f91eb93d63f1 mplayerthumbs-0.5b.ebuild 627 +MD5 be725215f46c2a49c8c032e89a858fd2 files/digest-mplayerthumbs-0.5b 259 +RMD160 b25415f3e3765adcb3510b96b6ae145e1f516ac9 files/digest-mplayerthumbs-0.5b 259 +SHA256 0a0be1bb0db1c9dab61f6ccd1bf7b66dfaa46b17c4d6e6999642c7c958800f57 files/digest-mplayerthumbs-0.5b 259 diff --git a/media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5 b/media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5 new file mode 100644 index 0000000..f345958 --- /dev/null +++ b/media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5 @@ -0,0 +1,3 @@ +MD5 c0d56ecf99bea4c3b04b1bba3e002938 mplayerthumbs-0.5.tar.bz2 429247 +RMD160 e0fe8cdeef865eb8546c0c451cc372762b4ed5cb mplayerthumbs-0.5.tar.bz2 429247 +SHA256 6c59e0311992d268d787a2902160ae480957f495ef3e9eb3cc4a2e2991881b6c mplayerthumbs-0.5.tar.bz2 429247 diff --git a/media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5b b/media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5b new file mode 100644 index 0000000..bf94c2c --- /dev/null +++ b/media-video/mplayerthumbs/files/digest-mplayerthumbs-0.5b @@ -0,0 +1,3 @@ +MD5 df8aadc2ef9484da8e819e9ddec2e020 mplayerthumbs-0.5b.tar.bz2 430037 +RMD160 1248162367a181ca1aeaa26e77cb512c64bcdedb mplayerthumbs-0.5b.tar.bz2 430037 +SHA256 10f802264ec7cf4bed395534f87951fc31d29690077c57b824eb4e774c83b662 mplayerthumbs-0.5b.tar.bz2 430037 diff --git a/media-video/mplayerthumbs/mplayerthumbs-0.5b.ebuild b/media-video/mplayerthumbs/mplayerthumbs-0.5b.ebuild new file mode 100644 index 0000000..439020d --- /dev/null +++ b/media-video/mplayerthumbs/mplayerthumbs-0.5b.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit kde + +DESCRIPTION="A Thumbnail Generator for Video Files on Konqueror." +HOMEPAGE="http://www.kde-look.org/content/show.php?content=41180" +SRC_URI="http://xoomer.alice.it/rockman81/${P}.tar.bz2" +LICENSE="GPL" + +RESTRICT="nomirror" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="( || ( kde-base/konqueror kde-base/kdebase ) ) + ( || ( media-video/mplayer media-video/mplayer-bin media-video/mplayer-svn ) )" + +need-kde 3.3 +src_unpack() { + kde_src_unpack +} +src_compile(){ + kde_src_compile +} |