Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 453012

Summary: media-tv/xbmc-fernetmenta-9999 - New ebuild for the FernetMenta branch of XBMC.
Product: Gentoo Linux Reporter: wippie <gentoo>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: gentoo, xbox
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://github.com/FernetMenta/xbmc
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: media-tv/xbmc-fernetmenta-9999.ebuild
media-tv/xbmc-fernetmenta-9999.ebuild

Description wippie 2013-01-19 16:45:50 UTC
New ebuild for the FernetMenta master branch of XBMC. This is the main branch for xvba-support in xbmc, i.e. Amd's UVD hardware. Anyone running xbmc on Amd hardware using ati-drivers will probably want this. I publish this since the official XBMC 12 Frodo will not have xvba support. Not a perfect ebuild but it gets the job done. I'm still learning this.
PVR should be supported but not yet tested.

References:
http://en.wikipedia.org/wiki/Xvba
http://en.wikipedia.org/wiki/UVD

Reproducible: Always
Comment 1 wippie 2013-01-19 16:47:53 UTC
Created attachment 336144 [details]
media-tv/xbmc-fernetmenta-9999.ebuild
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-19 16:53:17 UTC
Some suggestions:

1. Use the proper header obtained through `head -n3 /usr/portage/skel.ebuild`.
2. You can switch to the latest stable EAPI="5".
3. Don't leave clutter like #EGIT_REPO_URI... or #ISUE behind, it does nothing but stand in your way.
4. You might want to adjust the DESCRIPTION and HOMEPAGE to describe the branch.
Comment 3 wippie 2013-01-19 20:46:39 UTC
Created attachment 336164 [details]
media-tv/xbmc-fernetmenta-9999.ebuild

Updated ebuild from suggestions.

Note:
Due to the design of XBMC; if PulseAudio support is enabled, ALSA support will be disabled.

Note:
This ebuild is based on FernetMentas master branch, which sometimes can be a bit unstable. If you wish for a more stable release, use FernetMentas frodo branch.
You can use the same ebuild for this. Just replace
EGIT_BRANCH="master"
with
EGIT_BRANCH="frodo"
in the ebuild.
Comment 4 SpanKY gentoo-dev 2013-01-20 19:39:38 UTC
you can already use xbmc-9999.ebuild with specific branches and repos

use /etc/portage/env/ and set EGIT_* and xbmc_LIVE_REPO to something special
Comment 5 wippie 2013-01-27 11:56:20 UTC
Well almost..
Original ebuild does not have support for xvba; 

  xvba? ( x11-libs/xvba-video )
  ..
  $(use_enable xvba) \

Nor does it have support for hardened systems;

  inherit eutils python pax-utils
  ..
  pax-mark -m "${D}"usr/lib64/xbmc/xbmc.bin

So even if you build it from the FernetMenta sources, it will not have xvba support enabled.
The configure looks for amdxvba.h, which is included in the x11-libs/xvba-sdk.
Unfortunately, xvba-sdk is not available in the main portage tree, but it's on bgo, available here: https://bugs.gentoo.org/show_bug.cgi?id=356749
Comment 6 SpanKY gentoo-dev 2013-01-27 16:19:25 UTC
(In reply to comment #5)

that's because mainline doesn't support xvba.  but that isn't stopping you from passing custom flags to the build process via per-package env.  not a bug, and no missing functionality.