Current xine-lib doesn't honour -sdl use-flag, because the configure switch doesn't work on it. The attached patch fixes this setting the cache value which disables sdl plugin. It also adds some useflags, specifically opengl faad pic and fb. This should also help fix bug #70281, which needs the -opengl flag. Regards, Diego
Created attachment 44525 [details, diff] Patches over current ebuild
*** Bug 64500 has been marked as a duplicate of this bug. ***
Created attachment 44989 [details, diff] Updated patch with ffmpeg support I have added support for ffmpeg flag, which makes xine-lib use the installed ffmpeg library instead of the packaged one. This is needed to me to read new DivX files, which plays well on mplayer and vlc.
I'm going to attach a new ebuild, with rc8 support and fixed use flags. ChangeLog; * sdl flag now should work (it seems to work for me) * esd, alsa, arts flags now work * Fixed oggvorbis ./configure switches * Preliminary support for macos build (I haven't tested it actually, but it doesn't harm to change the configure switches for macos build). Note: this fixes the two obsolete patches, which was using macosx instead of macos. Sorry. * Added opengl, faad, pic and fb flags. * Added ffmpeg flag which enables the external ffmpeg library (instead of the internal, allow to play recent DivX encoded files). * Added XvMC support, copied from MPlayer USE-flags checks. HTH
Created attachment 46054 [details] xine-lib-1_rc8.ebuild
Created attachment 46058 [details] xine-lib-1_rc8.ebuild I'm sorry, I configured the test xine with the right parameters, but I forgot to fix the ebuild with them, and I posted the ebuild with the mplayer parameters instead of the xine ones for xvmc. This is the right one
I get this error: checking if i686-pc-linux-gnu-gcc supports "-Wall" flags... yes checking __attribute__ ((aligned ())) support... 64 checking if i686-pc-linux-gnu-gcc supports "-mtune=i386" flags... yes checking if i686-pc-linux-gnu-gcc supports "-mtune=athlon" flags... yes tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future checking for sgmltools... no checking for fig2dev... no checking dependency style of ... none configure: error: conditional "HAVE_XV" was never defined. Usually this means the macro was only invoked conditionally. !!! ERROR: media-libs/xine-lib-1_rc8 failed. !!! Function econf, Line 447, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. emerge info Portage 2.0.51-r8 (hardened/x86, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.7-hardened-r17 i686) ================================================================= System uname: 2.6.7-hardened-r17 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 15 2004, 08:16:14)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r1 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-w -pipe -funit-at-a-time -ftracer -frename-registers -fweb -march=athlon -Os -fomit-frame-pointer -fforce-addr -s -fPIC -fpic" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-w -pipe -funit-at-a-time -ftracer -frename-registers -fweb -march=athlon -Os -fomit-frame-pointer -fforce-addr -s -fPIC -fpic" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X alsa avi bindist bonobo cdparanoia cdr crypt curl dlloader dvd encode erandom esd faad fam flac gif gnome gnutls gstreamer gtk gtk2 hal hardened howl imagemagick imlib ithreads jpeg libwww live mad mmx mmx2 mng mpeg ncurses network nls nptl nptlonly oggvorbis opengl oss pam pic pie png quicktime readline real rtc speex spell ssl svg tcpd tetex theora threads tiff truetype truetype-fonts unicode usb userlocales wmf x86 xine xml xml2 xv zlib"
Can you please post the output of emerge -av xine-lib ? (so that I can find which flags are actually turned on, I don't trust emerge info, because usually I have a lot of specific use-flags for packages, especially for multimedia stuff ^^)
Use included DVDNAV support checking how to create empty arrays... configure: error: compiler is unable to creaty empty arrays !!! ERROR: media-libs/xine-lib-1_rc8 failed. !!! Function econf, Line 449, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1-epia i686) ================================================================= System uname: 2.6.9-gentoo-r1-epia i686 VIA Nehemiah Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-Os -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apm avi berkdb bitmap-fonts chroot cle266 crypt directfb divx4linux dvd dvdread emacs encode esd f77 fam fbcon ffmpeg flac foomaticdb fortran freetype gdbm gif gpm gstreamer gtk gtk2 ieee1394 imagemagick imlib javascript jpeg libg++ libwww lirc mad matroska mikmod mmx motif mpeg mpeg4 mplayer mysql mythtv ncurses network nls noivtv oggvorbis opengl oss pam pdflib perl png python qt quicktime readline rtc samba sdl slang spell sse ssl svg svga tcpd tiff transcode truetype unicode usb v4l v4l2 via x86 xine xml2 xmms xosd xv xvid xvmc zlib video_cards_cle266" emerge -av xine-lib These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-libs/xine-lib-1_rc8 [1_rc6] +X +aalib +alsa (-altivec) -arts +avi -debug +directfb +dvd +esd -faad -fb +ffmpeg -gnome* -i8x0 -ipv6 +nls -nvidia +oggvorbis +opengl -pic +sdl -speex -theora +xvmc* 0 kB [1] Total size of downloads: 0 kB
Created attachment 46628 [details] Updated patch with portage fixes I've applied the changes made to rc8 ebuild on official portage.
Created attachment 46629 [details] Ebuild synced with portage and rename faad -> aac Sorry I changed that in my local version, but when I merged portage version I forgot to re-add it. This time it's included the change from faad use-flag to aac (as for other ebuilds).
Created attachment 46767 [details] Ebuild updated with -r1 changes. I'm still updating the changes to the ebuild. Hope these will go on portage in the future.
Created attachment 46896 [details] 1.0 final ebuild Ok updated to 1.0 final, removed djb patch which is no more needed (applied upstream), added new useflags, which makes optional dependency on samba, png, mng and dvdnav (external), and useflags to disable plugins (vidix, dxr3).
Alright, xine-lib is up and ready in portage. There's a seperate bug out though, as libdvdnav and ffmpeg are not marked on all the arches that have marked xine-lib. That will be fixed shortly (I hope :). Thanks for the ebuild postings! I will mention however that $(foo_bar) is preferred over `foo_bar` currently.
Well, the ebuild in thr portage does not work. It complained: configure: error: conditional "HAVE_XV" was never defined. when I just emerged it on my ppc64.
Sorry for $(..) / `..` change, I did it for simplify the edit, and I forgot to re-replace it before attaching. I'm still having the xine-lib ebuild with dvdnav and ffmpeg flags locally because without the external dvdnav I'm not able to play certain DVDs.. if you can leave here a comment when the ebuild is updated with these, so that I can return to the portage version, I'll thank you :)