git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2897 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2011-04-21 15:50:49 +00:00
parent c209e291b5
commit cd98434459
33 changed files with 4324 additions and 7 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,6 @@
AUX xine-lib-1.1.19-xvmc.patch 485 RMD160 781a7fbc5dcc9f3c25de83625509fcce3950cca8 SHA1 f78834833e3aeb05f555688ab657ae05cd0691c7 SHA256 6be3ceb8edd7626e93c617de3068374dd638e1445c7308d88b24614e9bbceaf0
DIST xine-lib-1.1.15-textrel-fix.patch 29373 RMD160 4702a26f42251614f5f6c99b4770f82da36577ae SHA1 e04d04dbd736fd17be8cf0583d47630850a89bf9 SHA256 1d6aa047cb0a13f248aea2e06e16b9758b9c39d8b7e42b32d0b52b424d26b33e
DIST xine-lib-1.1.19.tar.xz 5782580 RMD160 7b8c2a4e5bcd0984414360d8d589aa533a9040f3 SHA1 f65f762d2e16adf04b9d715c91ee0bc02c322a7d SHA256 f834f646880bb44186018d12280ac27c8314447de9335b6fe390157b26df9cd9
EBUILD xine-lib-1.1.19-r1.ebuild 5612 RMD160 c54b64eb5ada389a0684b2c7cff5a9cb353f3b63 SHA1 de550ab3c582cc673b392977a0eb054ace77cdcf SHA256 60896322e1581f33e78fed16fde596845821e9bdafdfd6fa38224aeabd37e3c5
MISC ChangeLog 74433 RMD160 29aea8470dc81f1223f0666ca682cd2d985623ae SHA1 b091951fc0a78448dd86fb466baf04f1c3bb5c5d SHA256 7e25aaab047cb7a73d53ff1980995a48addfba84889aa49a3b83de8bcdb0fd26
MISC metadata.xml 2913 RMD160 ea5722272700444f2ffe366feb88dfd0a18636df SHA1 97d2d10cc63bde0a4bfc46b9b8c4474ee0337b45 SHA256 4929566b88860ef0c53c15ed84ce5d8bbd36692461631fd3d4814dc9bc0807cf

View File

@@ -0,0 +1,19 @@
Quoting ChangeLog of X11's videoproto package:
vldXvMC.h: stop uselessly including XvMClib.h
http://bugs.gentoo.org/332389
--- src/video_out/xxmc.h
+++ src/video_out/xxmc.h
@@ -77,10 +77,10 @@
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xv.h>
#include <X11/extensions/Xvlib.h>
+#include <X11/extensions/XvMClib.h>
#ifdef HAVE_VLDXVMC
#include <X11/extensions/vldXvMC.h>
#else
- #include <X11/extensions/XvMClib.h>
#include <X11/extensions/XvMC.h>
#endif

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>video</herd>
<maintainer>
<email>media-video@gentoo.org</email>
</maintainer>
<longdescription>An open source library for media applications</longdescription>
<use>
<flag name="real">
Enable support for loading and using RealPlayer binary codecs on x86 and
amd64 Linux. Enabling this USE flag might make the package
non-redistributable in binary form.
</flag>
<flag name="win32codecs">
Enable support for loading and using Windows 32-bit binary codecs on x86
Linux and FreeBSD. Enabling this USE flag might make the package
non-redistributable in binary form.
</flag>
<flag name="mad">
Build the <pkg>media-libs/libmad</pkg> based mp3 decoder. This mp3 decoder
has superior support compared to the one coming from FFmpeg that is used as
a fallback. If you experience any bad behaviour with mp3 files (skipping,
distorted sound) make sure you enabled this USE flag.
</flag>
<flag name="flac">
Build the <pkg>media-libs/flac</pkg> based FLAC demuxer and decoder. This
flag is not needed for playing FLAC content, neither standalone nor in Ogg
container (OggFLAC), but might have better support for exotic features like
24-bit samples or 96kHz sample rates.
</flag>
<flag name="gtk">
Build the gdkpixbuf-based image decoder plugin.
</flag>
<flag name="imagemagick">
Build the ImageMagick-based image decoder plugin.
</flag>
<flag name="gnome">
Build the <pkg>gnome-base/gnome-vfs</pkg> based input plugin. This plugin is
used to access any resource that can be accessed through Nautilus's (and
others') URLs.
</flag>
<flag name="mmap">
Use mmap() function while reading file from local disks. Using mmap() will
use more virtual memory space, but leaves to the Kernel the task of caching
the file's data. mmap() access should be faster, but might misbehave if the
device where the file resides in is removed during playback.
</flag>
<flag name="truetype">
Use <pkg>media-libs/freetype</pkg> for font rendering and
<pkg>media-libs/fontconfig</pkg> for font discovery. Enabling this USE flag
will allow OSD (such as subtitles) to use more advanced font and to more
easily select which font to use. The support for TrueType fonts in xine-lib
is still experimental, and might not be as good looking as the bitmap fonts
used with this USE flag disabled.
</flag>
<flag name="xvmc">
Enable support for XVideo Motion Compensation (accelerated mpeg playback).
</flag>
<flag name="dxr3">
Enable support for DXR3 mpeg acceleration cards.
</flag>
<flag name="vidix">
Enable support for vidix video output.
</flag>
<flag name="vis">
Adds support for SIMD optimizations for UltraSPARC processors.
</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,182 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/xine-lib/xine-lib-1.1.19.ebuild,v 1.12 2011/03/31 15:24:18 scarabeus Exp $
EAPI=3
inherit eutils flag-o-matic toolchain-funcs multilib
# This should normally be empty string, unless a release has a suffix.
if [[ "${P/_pre/}" != "${P}" ]]; then
SRC_URI="mirror://gentoo/${P}.tar.xz"
else
MY_PKG_SUFFIX=""
MY_P="${PN}-${PV/_/-}${MY_PKG_SUFFIX}"
S="${WORKDIR}/${MY_P}"
SRC_URI="mirror://sourceforge/xine/${MY_P}.tar.xz"
fi
SRC_URI="${SRC_URI}
mirror://gentoo/${PN}-1.1.15-textrel-fix.patch"
DESCRIPTION="Core libraries for Xine movie player"
HOMEPAGE="http://xine.sourceforge.net"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="-aalib -libcaca esd win32codecs nls +css +X directfb +vorbis +alsa
gnome sdl speex +theora ipv6 altivec opengl aac -fbcon +xv xvmc
-samba dxr3 vidix mng -flac -oss +v4l xinerama vcd +a52 +mad -imagemagick +dts
+modplug -gtk pulseaudio -mmap -truetype wavpack +musepack +xcb -jack
-real +vis"
RDEPEND="X? ( x11-libs/libXext
x11-libs/libX11 )
xv? ( x11-libs/libXv )
xvmc? ( x11-libs/libXvMC )
xinerama? ( x11-libs/libXinerama )
win32codecs? ( >=media-libs/win32codecs-0.50 )
esd? ( media-sound/esound )
css? ( >=media-libs/libdvdcss-1.2.7 )
alsa? ( media-libs/alsa-lib )
aalib? ( media-libs/aalib )
directfb? ( >=dev-libs/DirectFB-0.9.9 )
gnome? ( >=gnome-base/gnome-vfs-2.0 )
flac? ( >=media-libs/flac-1.1.2 )
sdl? ( >=media-libs/libsdl-1.1.5 )
dxr3? ( >=media-libs/libfame-0.9.0 )
vorbis? ( media-libs/libogg media-libs/libvorbis )
theora? ( media-libs/libogg media-libs/libvorbis >=media-libs/libtheora-1.0_alpha6 )
speex? ( media-libs/libogg media-libs/libvorbis media-libs/speex )
libcaca? ( >=media-libs/libcaca-0.99_beta14 )
samba? ( net-fs/samba )
mng? ( media-libs/libmng )
vcd? ( media-video/vcdimager
dev-libs/libcdio[-minimal] )
a52? ( >=media-libs/a52dec-0.7.4-r5 )
mad? ( media-libs/libmad )
imagemagick? ( media-gfx/imagemagick )
dts? ( media-libs/libdca )
aac? ( >=media-libs/faad2-2.6.1 )
>=virtual/ffmpeg-0.5
modplug? ( >=media-libs/libmodplug-0.8.8.1 )
nls? ( virtual/libintl )
gtk? ( x11-libs/gtk+:2 )
pulseaudio? ( media-sound/pulseaudio )
truetype? ( media-libs/freetype:2 media-libs/fontconfig )
virtual/libiconv
wavpack? ( >=media-sound/wavpack-4.31 )
musepack? ( >=media-sound/musepack-tools-444 )
xcb? ( >=x11-libs/libxcb-1.0 )
jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
real? (
x86? ( media-libs/win32codecs )
x86-fbsd? ( media-libs/win32codecs )
amd64? ( media-libs/amd64codecs ) )
v4l? ( media-libs/libv4l )"
DEPEND="${RDEPEND}
app-arch/xz-utils
X? ( x11-libs/libXt
x11-proto/xproto
x11-proto/videoproto
x11-proto/xf86vidmodeproto
xinerama? ( x11-proto/xineramaproto ) )
v4l? ( virtual/os-headers )
dev-util/pkgconfig
sys-devel/libtool
nls? ( sys-devel/gettext )"
src_prepare() {
epatch "${DISTDIR}"/${PN}-1.1.15-textrel-fix.patch \
"${FILESDIR}"/${P}-xvmc.patch
}
src_configure() {
#prevent quicktime crashing
append-flags -frename-registers -ffunction-sections
# Specific workarounds for too-few-registers arch...
if [[ $(tc-arch) == "x86" ]]; then
filter-flags -fforce-addr
filter-flags -momit-leaf-frame-pointer # break on gcc 3.4/4.x
filter-flags -fno-omit-frame-pointer #breaks per bug #149704
is-flag -O? || append-flags -O2
fi
# Set the correct win32 dll path, bug #197236
local win32dir
if has_multilib_profile ; then
win32dir=/usr/$(ABI="x86" get_libdir)/win32
else
win32dir=/usr/$(get_libdir)/win32
fi
# Too many file names are the same (xine_decoder.c), change the builddir
# So that the relative path is used to identify them.
mkdir "${WORKDIR}/build"
ECONF_SOURCE="${S}" econf \
$(use_enable gnome gnomevfs) \
$(use_enable nls) \
$(use_enable ipv6) \
$(use_enable samba) \
$(use_enable altivec) \
$(use_enable v4l) \
$(use_enable v4l libv4l) \
$(use_enable mng) \
$(use_with imagemagick) \
$(use_enable gtk gdkpixbuf) \
$(use_enable aac faad) --with-external-libfaad \
$(use_with flac libflac) \
$(use_with vorbis) \
$(use_with speex) \
$(use_with theora) \
$(use_with wavpack) \
$(use_enable modplug) \
$(use_enable a52 a52dec) --with-external-a52dec \
$(use_enable mad) --with-external-libmad \
$(use_enable dts) --with-external-libdts \
$(use_enable musepack) --with-external-libmpcdec \
$(use_with X x) \
$(use_enable xinerama) \
$(use_enable vidix) \
$(use_enable dxr3) \
$(use_enable directfb) \
$(use_enable fbcon fb) \
$(use_enable opengl) \
$(use_enable aalib) \
$(use_with libcaca caca) \
$(use_with sdl) \
$(use_enable xvmc) \
$(use_with xcb) \
$(use_enable oss) \
$(use_with alsa) \
--without-arts \
$(use_with esd esound) \
$(use_with pulseaudio) \
$(use_with jack) \
$(use_enable vcd) --without-internal-vcdlibs \
$(use_enable win32codecs w32dll) \
$(use_enable real real-codecs) \
$(use_enable mmap) \
$(use_with truetype freetype) $(use_with truetype fontconfig) \
$(use_enable vis) \
--enable-asf \
--with-external-ffmpeg \
--disable-optimizations \
--disable-syncfb \
--with-xv-path=/usr/$(get_libdir) \
--with-w32-path=${win32dir} \
--with-real-codecs-path=/usr/$(get_libdir)/codecs \
--enable-fast-install \
--disable-dependency-tracking
}
src_install() {
emake DESTDIR="${D}" \
docdir="/usr/share/doc/${PF}" htmldir="/usr/share/doc/${PF}/html" \
install || die
dodoc ChangeLog
}