Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291960 - New media-libs/spulibs ebuild split out of media-libs/libsdl, needed for SPU-accelerated video in SDL
Summary: New media-libs/spulibs ebuild split out of media-libs/libsdl, needed for SPU-...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2009-11-05 10:59 UTC by Adrian Perez
Modified: 2018-12-03 12:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed media-libs/spulibs ebuild (spulibs-1.2.14.ebuild,520 bytes, text/plain)
2009-11-05 11:00 UTC, Adrian Perez
Details
libsdl-spulibs-1.2.14.ebuild (libsdl-spulibs-1.2.14.ebuild,909 bytes, text/plain)
2010-05-16 06:25 UTC, Ian Leonard
Details
Destdir-support for libsdl-spulibs (destdir-support.patch,1.07 KB, patch)
2010-05-16 06:27 UTC, Ian Leonard
Details | Diff
libsdl-add-ps3-reqs.patch (libsdl-add-ps3-reqs.patch,580 bytes, patch)
2010-05-16 06:32 UTC, Ian Leonard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2009-11-05 10:59:00 UTC
First of all, this is for the PS3 :D

Currently, building media-libs/libsdl-1.2.14 fails because of the spulibs included in the SDL source tarball are not available in the system (there is not a package nor a special case for them in the SDL ebuilds).

Adding an additional ebuild for them may be a better option, because building spulibs needs a SPU cross-compilation toolchain, for which there are no ebuilds currently. If someone does not have it, this package could be installed from a binary package, or the toolchain manually installed and adding cross-spu-elf/gcc to package.provided.

I think having a separate ebuild for this avoids adding bloat to the libsdl ebuild. Moreover, maybe there are other packages out there which can use those libs.

Reproducible: Always
Comment 1 Adrian Perez 2009-11-05 11:00:18 UTC
Created attachment 209313 [details]
Proposed media-libs/spulibs ebuild

Attaching media-libs/spulibs ebuild, versioning scheme follows SDL version numbers.
Comment 2 Ian Leonard 2010-05-16 03:33:34 UTC
Does the ebuild work for the author?

The default makefile is assuming it's using the cellsdk, not Gentoo's spu toolchain. As such, it's looking for spu-gcc, not the toolchain's spu-elf-gcc. 

It will probably need more work past this, that's just the first error on trying to use.
Comment 3 Ian Leonard 2010-05-16 06:25:49 UTC
Created attachment 231621 [details]
libsdl-spulibs-1.2.14.ebuild

The attached ebuild compiles and installs correctly for me. It will need an additonal patch to support DESTDIR.
Comment 4 Ian Leonard 2010-05-16 06:27:15 UTC
Created attachment 231623 [details, diff]
Destdir-support for libsdl-spulibs

Patch to add DESTDIR support to libsdl-spulibs. This needs to be double checked; I haven't done this before, but it works for me.
Comment 5 Ian Leonard 2010-05-16 06:32:12 UTC
Created attachment 231625 [details, diff]
libsdl-add-ps3-reqs.patch

Patch adds libsdl-spulibs as a requirement of libsdl's ps3 support. It also removes the ppc64 check for libspe2, leaving it as a requirement for the ps3 flag. I'm not sure why the check was in; it was already use_enablde'd so people would be tripping over this already. (Also, ps3 can be just ppc too.)
Comment 6 Ian Leonard 2010-05-16 06:37:06 UTC
This is used like so: mplayer -vo sdl:driver=ps3 movie.file

For me, the functionality is broken. I get the movie window is split into thirds, with each showing part of the decoded video frame. It's sort of like a really slow interlacing effect.

However, I don't know if this is unique to my setup. Other people appear to have this working correctly, albeit they're not on Gentoo.