summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/xine-lib
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/xine-lib')
-rw-r--r--media-libs/xine-lib/Manifest2
-rw-r--r--media-libs/xine-lib/files/accel_vaapi.h135
-rw-r--r--media-libs/xine-lib/metadata.xml70
-rw-r--r--media-libs/xine-lib/xine-lib-1.2.3.ebuild214
-rw-r--r--media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild226
-rw-r--r--media-libs/xine-lib/xine-lib-1.2.6.ebuild223
-rw-r--r--media-libs/xine-lib/xine-lib-1.2.9999.ebuild226
7 files changed, 1096 insertions, 0 deletions
diff --git a/media-libs/xine-lib/Manifest b/media-libs/xine-lib/Manifest
new file mode 100644
index 000000000000..dbd68dc11707
--- /dev/null
+++ b/media-libs/xine-lib/Manifest
@@ -0,0 +1,2 @@
+DIST xine-lib-1.2.3.tar.xz 4905356 SHA256 e06a9e01d2632530e694d4a96bba71810e2f447f9ac036d2a150c43baa27852a SHA512 1abbced7c67fe04492bb28ada9d847e82be4bbcc426378dae1056dd6b01e22b8fa78218f5a96a0947ff1e9f70ebc1ee4bb06c330b0e17ca8d7c4d9be49982887 WHIRLPOOL 0e6bfb61ce77d14fbd0a807499b2a0b3f04ac976e8b7c06a5b34be06cbecb822339451031b80c4dc8faa5265adb1883861d96d0e7dc43a0b3ebe7040b619fb65
+DIST xine-lib-1.2.6.tar.xz 5020964 SHA256 bd041d738817c7c0c6392a3c0e5bda5a664a47e035135b5a449364f8c9b6a005 SHA512 ed4b1bc29daf85021cb83393d010ddca0ce9da508a8ddb9fec554f18eda1d156fc08f0aeaabeb7afe93fc445f049f84057e0708e6c87cd123c5cd2b20f8a25fd WHIRLPOOL 66d85e75e28598ce3790f08c69ccd912aac115c8071f1795abd51d43b1e35fbc08827ae93fc9ce113cc0c0565b409714103cfeb14aa7acefe6bdb2fdf46ee307
diff --git a/media-libs/xine-lib/files/accel_vaapi.h b/media-libs/xine-lib/files/accel_vaapi.h
new file mode 100644
index 000000000000..666b23fd6033
--- /dev/null
+++ b/media-libs/xine-lib/files/accel_vaapi.h
@@ -0,0 +1,135 @@
+/*
+ * Copyright (C) 2008 the xine project
+ *
+ * This file is part of xine, a free video player.
+ *
+ * xine is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * xine is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ *
+ *
+ * Common acceleration definitions for vdpau
+ *
+ *
+ */
+
+#ifndef HAVE_XINE_ACCEL_VAAPI_H
+#define HAVE_XINE_ACCEL_VAAPI_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <va/va_x11.h>
+#include <pthread.h>
+#ifdef HAVE_FFMPEG_AVUTIL_H
+# include <avcodec.h>
+#else
+# include <libavcodec/avcodec.h>
+#endif
+
+#if LIBAVCODEC_VERSION_MAJOR >= 53 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 32)
+# define AVVIDEO 2
+#else
+# define AVVIDEO 1
+# define pp_context pp_context_t
+# define pp_mode pp_mode_t
+#endif
+
+#define NUM_OUTPUT_SURFACES 22
+
+#define SURFACE_FREE 0
+#define SURFACE_ALOC 1
+#define SURFACE_RELEASE 2
+#define SURFACE_RENDER 3
+#define SURFACE_RENDER_RELEASE 5
+
+struct vaapi_equalizer {
+ VADisplayAttribute brightness;
+ VADisplayAttribute contrast;
+ VADisplayAttribute hue;
+ VADisplayAttribute saturation;
+};
+
+typedef struct ff_vaapi_context_s ff_vaapi_context_t;
+
+struct ff_vaapi_context_s {
+ VADisplay va_display;
+ VAContextID va_context_id;
+ VAConfigID va_config_id;
+ int width;
+ int height;
+ int sw_width;
+ int sw_height;
+ int va_profile;
+ unsigned int va_colorspace;
+ VAImage va_subpic_image;
+ VASubpictureID va_subpic_id;
+ int va_subpic_width;
+ int va_subpic_height;
+ int is_bound;
+ void *gl_surface;
+ unsigned int soft_head;
+ unsigned int valid_context;
+ unsigned int va_head;
+ unsigned int va_soft_head;
+ vo_driver_t *driver;
+ unsigned int last_sub_image_fmt;
+ VASurfaceID last_sub_surface_id;
+ struct vaapi_equalizer va_equalizer;
+ VAImageFormat *va_image_formats;
+ int va_num_image_formats;
+ VAImageFormat *va_subpic_formats;
+ int va_num_subpic_formats;
+};
+
+typedef struct ff_vaapi_surface_s ff_vaapi_surface_t;
+typedef struct vaapi_accel_s vaapi_accel_t;
+
+struct ff_vaapi_surface_s {
+ unsigned int index;
+ vaapi_accel_t *accel;
+ VASurfaceID va_surface_id;
+ unsigned int status;
+};
+
+struct vaapi_accel_s {
+ unsigned int index;
+ vo_frame_t *vo_frame;
+
+#if AVVIDEO > 1
+ int (*avcodec_decode_video2)(vo_frame_t *frame_gen, AVCodecContext *avctx, AVFrame *picture,
+ int *got_picture_ptr, AVPacket *avpkt);
+#else
+ int (*avcodec_decode_video)(vo_frame_t *frame_gen, AVCodecContext *avctx, AVFrame *picture,
+ int *got_picture_ptr, uint8_t *buf, int buf_size);
+#endif
+ VAStatus (*vaapi_init)(vo_frame_t *frame_gen, int va_profile, int width, int height, int softrender);
+ int (*profile_from_imgfmt)(vo_frame_t *frame_gen, enum PixelFormat pix_fmt, int codec_id, int vaapi_mpeg_sofdec);
+ ff_vaapi_context_t *(*get_context)(vo_frame_t *frame_gen);
+ int (*guarded_render)(vo_frame_t *frame_gen);
+ ff_vaapi_surface_t *(*get_vaapi_surface)(vo_frame_t *frame_gen);
+ void (*render_vaapi_surface)(vo_frame_t *frame_gen, ff_vaapi_surface_t *va_surface);
+ void (*release_vaapi_surface)(vo_frame_t *frame_gen, ff_vaapi_surface_t *va_surface);
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
diff --git a/media-libs/xine-lib/metadata.xml b/media-libs/xine-lib/metadata.xml
new file mode 100644
index 000000000000..b870e92015a9
--- /dev/null
+++ b/media-libs/xine-lib/metadata.xml
@@ -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="bluray">
+ Enable playback of Blu-ray filesystems using <pkg>media-libs/libbluray</pkg>
+ </flag>
+ <flag name="dxr3">
+ Enable support for DXR3 mpeg acceleration cards.
+ </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="fusion">
+ Enable support for the Fusion audio sub system
+ </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="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="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="vdr">
+ Build the VDR plugin
+ </flag>
+ <flag name="vidix">
+ Enable support for vidix video output.
+ </flag>
+ <flag name="vis">
+ Adds support for SIMD optimizations for UltraSPARC processors.
+ </flag>
+ <flag name="vpx">
+ Enable VP8 codec support via media-libs/libvpx.
+ </flag>
+ <flag name="xvmc">
+ Enable support for XVideo Motion Compensation (accelerated mpeg playback).
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">xine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-libs/xine-lib/xine-lib-1.2.3.ebuild b/media-libs/xine-lib/xine-lib-1.2.3.ebuild
new file mode 100644
index 000000000000..4a0645f9ef06
--- /dev/null
+++ b/media-libs/xine-lib/xine-lib-1.2.3.ebuild
@@ -0,0 +1,214 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic libtool multilib
+
+if [[ ${PV} == *9999* ]]; then
+ EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2"
+ inherit autotools mercurial eutils
+ unset NLS_IUSE
+ NLS_DEPEND="sys-devel/gettext"
+ NLS_RDEPEND="virtual/libintl"
+else
+ KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+ SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
+ NLS_IUSE="nls"
+ NLS_DEPEND="nls? ( sys-devel/gettext )"
+ NLS_RDEPEND="nls? ( virtual/libintl )"
+fi
+
+DESCRIPTION="Core libraries for Xine movie player"
+HOMEPAGE="http://xine.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="1"
+IUSE="a52 aac aalib +alsa altivec bluray +css directfb dts dvb dxr3 fbcon flac fusion gtk imagemagick ipv6 jack jpeg libcaca mad +mmap mng modplug musepack opengl oss pulseaudio samba sdl speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis wavpack +X +xcb xinerama +xv xvmc ${NLS_IUSE}"
+
+RDEPEND="${NLS_RDEPEND}
+ dev-libs/libxdg-basedir
+ media-libs/libdvdnav
+ sys-libs/zlib
+ || ( media-video/ffmpeg:0 media-libs/libpostproc <media-video/libav-0.8.2-r1 )
+ virtual/ffmpeg
+ virtual/libiconv
+ a52? ( media-libs/a52dec )
+ aac? ( media-libs/faad2 )
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ bluray? ( >=media-libs/libbluray-0.2.1 )
+ css? ( >=media-libs/libdvdcss-1.2.10 )
+ directfb? ( dev-libs/DirectFB )
+ dts? ( media-libs/libdca )
+ dxr3? ( media-libs/libfame )
+ flac? ( media-libs/flac )
+ fusion? ( media-libs/FusionSound )
+ gtk? ( x11-libs/gdk-pixbuf:2 )
+ imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ jpeg? ( virtual/jpeg )
+ libcaca? ( media-libs/libcaca )
+ mad? ( media-libs/libmad )
+ mng? ( media-libs/libmng )
+ modplug? ( >=media-libs/libmodplug-0.8.8.1 )
+ musepack? ( >=media-sound/musepack-tools-444 )
+ opengl? (
+ virtual/glu
+ virtual/opengl
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ samba? ( <net-fs/samba-4 )
+ sdl? ( media-libs/libsdl )
+ speex? (
+ media-libs/libogg
+ media-libs/speex
+ )
+ theora? (
+ media-libs/libogg
+ media-libs/libtheora
+ )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ )
+ v4l? ( media-libs/libv4l )
+ vaapi? ( x11-libs/libva )
+ vcd? (
+ >=media-video/vcdimager-0.7.23
+ dev-libs/libcdio[-minimal]
+ )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ wavpack? ( media-sound/wavpack )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ xcb? ( x11-libs/libxcb )
+ xinerama? ( x11-libs/libXinerama )
+ xv? ( x11-libs/libXv )
+ xvmc? ( x11-libs/libXvMC )"
+DEPEND="${RDEPEND}
+ ${NLS_DEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ >=sys-devel/libtool-2.2.6b
+ oss? ( virtual/os-headers )
+ v4l? ( virtual/os-headers )
+ X? (
+ x11-libs/libXt
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto
+ )
+ xv? ( x11-proto/videoproto )
+ xvmc? ( x11-proto/videoproto )
+ xinerama? ( x11-proto/xineramaproto )"
+REQUIRED_USE="vidix? ( || ( X fbcon ) )
+ xv? ( X )
+ xinerama? ( X )"
+
+src_prepare() {
+ cp "${FILESDIR}"/accel_vaapi.h src/xine-engine/
+
+ sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
+
+ if [[ ${PV} == *9999* ]]; then
+ epatch_user
+ eautoreconf
+ else
+ elibtoolize
+ fi
+}
+
+src_configure() {
+ [[ ${CHOST} == i?86-* ]] && append-flags -fomit-frame-pointer #422519
+
+ local win32dir #197236
+ if has_multilib_profile; then
+ win32dir=/usr/$(ABI="x86" get_libdir)/win32
+ else
+ win32dir=/usr/$(get_libdir)/win32
+ fi
+
+ local myconf
+ [[ ${PV} == *9999* ]] || myconf="$(use_enable nls)"
+
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable altivec) \
+ $(use_enable vis) \
+ --disable-optimizations \
+ $(use_enable mmap) \
+ $(use_enable oss) \
+ $(use_enable aalib) \
+ $(use_enable directfb) \
+ $(use_enable dxr3) \
+ $(use_enable fbcon fb) \
+ $(use_enable opengl) $(use_enable opengl glu) \
+ $(use_enable vidix) \
+ $(use_enable xinerama) \
+ $(use_enable xvmc) \
+ $(use_enable vdpau) \
+ $(use_enable vaapi) \
+ $(use_enable dvb) \
+ --disable-gnomevfs \
+ $(use_enable samba) \
+ --disable-v4l $(use_enable v4l v4l2) $(use_enable v4l libv4l) \
+ $(use_enable vcd) \
+ $(use_enable vdr) \
+ $(use_enable bluray) \
+ $(use_enable a52 a52dec) \
+ $(use_enable aac faad) \
+ $(use_enable gtk gdkpixbuf) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable dts) \
+ $(use_enable mad) \
+ $(use_enable modplug) \
+ $(use_enable musepack) \
+ $(use_enable mng) \
+ --disable-real-codecs \
+ --disable-w32dll \
+ $(use_with truetype freetype) $(use_with truetype fontconfig) \
+ $(use_with X x) \
+ $(use_with alsa) \
+ --without-esound \
+ $(use_with fusion fusionsound) \
+ $(use_with jack) \
+ $(use_with pulseaudio) \
+ $(use_with libcaca caca) \
+ $(use_with sdl) \
+ $(use_with xcb) \
+ --with-xv-path=/usr/$(get_libdir) \
+ $(use_with imagemagick) \
+ --with-external-dvdnav \
+ $(use_with flac libflac) \
+ $(use_with speex) \
+ $(use_with theora) \
+ $(use_with vorbis) \
+ --with-real-codecs-path=/usr/$(get_libdir)/codecs \
+ --with-w32-path=${win32dir} \
+ $(use_with wavpack) \
+ ${myconf}
+}
+
+src_compile() {
+ # enable verbose building, bug #448140
+ emake V=1
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="/usr/share/doc/${PF}" \
+ htmldir="/usr/share/doc/${PF}/html" \
+ install
+
+ rm -f \
+ "${ED}"usr/lib*/libxine*.la \
+ "${ED}"usr/share/doc/${PF}/COPYING
+}
diff --git a/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild b/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
new file mode 100644
index 000000000000..ac9f0f4fcb69
--- /dev/null
+++ b/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
@@ -0,0 +1,226 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic libtool multilib
+
+if [[ ${PV} == *9999* ]]; then
+ EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2"
+ inherit autotools mercurial eutils
+ unset NLS_IUSE
+ NLS_DEPEND="sys-devel/gettext"
+ NLS_RDEPEND="virtual/libintl"
+else
+ KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+ SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
+ NLS_IUSE="nls"
+ NLS_DEPEND="nls? ( sys-devel/gettext )"
+ NLS_RDEPEND="nls? ( virtual/libintl )"
+fi
+
+DESCRIPTION="Core libraries for Xine movie player"
+HOMEPAGE="http://xine.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="1"
+IUSE="a52 aac aalib +alsa altivec bluray +css directfb dts dvb dxr3 fbcon flac fusion gtk imagemagick ipv6 jack jpeg libav libcaca mad +mmap mng modplug musepack opengl oss pulseaudio samba sdl speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack +X +xcb xinerama +xv xvmc ${NLS_IUSE}"
+
+RDEPEND="${NLS_RDEPEND}
+ dev-libs/libxdg-basedir
+ media-libs/libdvdnav
+ sys-libs/zlib
+ !libav? ( media-video/ffmpeg:0= )
+ libav? (
+ media-libs/libpostproc:0=
+ media-video/libav:0=
+ )
+ virtual/libiconv
+ a52? ( media-libs/a52dec )
+ aac? ( media-libs/faad2 )
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ bluray? ( >=media-libs/libbluray-0.2.1 )
+ css? ( >=media-libs/libdvdcss-1.2.10 )
+ directfb? ( dev-libs/DirectFB )
+ dts? ( media-libs/libdca )
+ dxr3? ( media-libs/libfame )
+ flac? ( media-libs/flac )
+ fusion? ( media-libs/FusionSound )
+ gtk? ( x11-libs/gdk-pixbuf:2 )
+ imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ jpeg? ( virtual/jpeg:0 )
+ libcaca? ( media-libs/libcaca )
+ mad? ( media-libs/libmad )
+ mng? ( media-libs/libmng )
+ modplug? ( >=media-libs/libmodplug-0.8.8.1 )
+ musepack? ( >=media-sound/musepack-tools-444 )
+ opengl? (
+ virtual/glu
+ virtual/opengl
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ samba? ( net-fs/samba )
+ sdl? ( media-libs/libsdl )
+ speex? (
+ media-libs/libogg
+ media-libs/speex
+ )
+ theora? (
+ media-libs/libogg
+ media-libs/libtheora
+ )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ )
+ v4l? ( media-libs/libv4l )
+ vaapi? ( x11-libs/libva )
+ vcd? (
+ >=media-video/vcdimager-0.7.23
+ dev-libs/libcdio[-minimal]
+ )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ vpx? ( media-libs/libvpx )
+ wavpack? ( media-sound/wavpack )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ xcb? ( x11-libs/libxcb )
+ xinerama? ( x11-libs/libXinerama )
+ xv? ( x11-libs/libXv )
+ xvmc? ( x11-libs/libXvMC )"
+DEPEND="${RDEPEND}
+ ${NLS_DEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ >=sys-devel/libtool-2.2.6b
+ oss? ( virtual/os-headers )
+ v4l? ( virtual/os-headers )
+ X? (
+ x11-libs/libXt
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto
+ )
+ xv? ( x11-proto/videoproto )
+ xvmc? ( x11-proto/videoproto )
+ xinerama? ( x11-proto/xineramaproto )"
+REQUIRED_USE="vidix? ( || ( X fbcon ) )
+ xv? ( X )
+ xinerama? ( X )"
+
+src_prepare() {
+ sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
+
+ if [[ ${PV} == *9999* ]]; then
+ epatch_user
+ eautoreconf
+ else
+ elibtoolize
+ fi
+
+ local x
+ for x in 0 1 2 3; do
+ sed -i -e "/^O${x}_CFLAGS=\"-O${x}\"/d" configure || die
+ done
+}
+
+src_configure() {
+ [[ ${CHOST} == i?86-* ]] && append-flags -fomit-frame-pointer #422519
+
+ local win32dir #197236
+ if has_multilib_profile; then
+ win32dir=/usr/$(ABI="x86" get_libdir)/win32
+ else
+ win32dir=/usr/$(get_libdir)/win32
+ fi
+
+ local myconf=()
+ [[ ${PV} == *9999* ]] || myconf=( $(use_enable nls) )
+
+ if ! use libav && has_version '>=media-video/ffmpeg-2.2:0'; then
+ myconf+=( --enable-avformat ) #507474
+ fi
+
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable altivec) \
+ $(use_enable vis) \
+ --disable-optimizations \
+ $(use_enable mmap) \
+ $(use_enable oss) \
+ $(use_enable aalib) \
+ $(use_enable directfb) \
+ $(use_enable dxr3) \
+ $(use_enable fbcon fb) \
+ $(use_enable opengl) $(use_enable opengl glu) \
+ $(use_enable vidix) \
+ $(use_enable xinerama) \
+ $(use_enable xvmc) \
+ $(use_enable vdpau) \
+ $(use_enable vaapi) \
+ $(use_enable dvb) \
+ --disable-gnomevfs \
+ $(use_enable samba) \
+ --disable-v4l $(use_enable v4l v4l2) $(use_enable v4l libv4l) \
+ $(use_enable vcd) \
+ $(use_enable vdr) \
+ $(use_enable bluray) \
+ $(use_enable a52 a52dec) \
+ $(use_enable aac faad) \
+ $(use_enable gtk gdkpixbuf) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable dts) \
+ $(use_enable mad) \
+ $(use_enable modplug) \
+ $(use_enable musepack) \
+ $(use_enable mng) \
+ --disable-real-codecs \
+ --disable-w32dll \
+ $(use_enable vpx) \
+ $(use_with truetype freetype) $(use_with truetype fontconfig) \
+ $(use_with X x) \
+ $(use_with alsa) \
+ --without-esound \
+ $(use_with fusion fusionsound) \
+ $(use_with jack) \
+ $(use_with pulseaudio) \
+ $(use_with libcaca caca) \
+ $(use_with sdl) \
+ $(use_with xcb) \
+ --with-xv-path=/usr/$(get_libdir) \
+ $(use_with imagemagick) \
+ --with-external-dvdnav \
+ $(use_with flac libflac) \
+ $(use_with speex) \
+ $(use_with theora) \
+ $(use_with vorbis) \
+ --with-real-codecs-path=/usr/$(get_libdir)/codecs \
+ --with-w32-path=${win32dir} \
+ $(use_with wavpack) \
+ "${myconf[@]}"
+}
+
+src_compile() {
+ # enable verbose building, bug #448140
+ emake V=1
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="/usr/share/doc/${PF}" \
+ htmldir="/usr/share/doc/${PF}/html" \
+ install
+
+ rm -f \
+ "${ED}"usr/lib*/libxine*.la \
+ "${ED}"usr/share/doc/${PF}/COPYING
+}
diff --git a/media-libs/xine-lib/xine-lib-1.2.6.ebuild b/media-libs/xine-lib/xine-lib-1.2.6.ebuild
new file mode 100644
index 000000000000..194a93c41e2d
--- /dev/null
+++ b/media-libs/xine-lib/xine-lib-1.2.6.ebuild
@@ -0,0 +1,223 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic libtool multilib
+
+if [[ ${PV} == *9999* ]]; then
+ EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2"
+ inherit autotools mercurial eutils
+ unset NLS_IUSE
+ NLS_DEPEND="sys-devel/gettext"
+ NLS_RDEPEND="virtual/libintl"
+else
+ KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+ SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
+ NLS_IUSE="nls"
+ NLS_DEPEND="nls? ( sys-devel/gettext )"
+ NLS_RDEPEND="nls? ( virtual/libintl )"
+fi
+
+DESCRIPTION="Core libraries for Xine movie player"
+HOMEPAGE="http://xine.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="1"
+IUSE="a52 aac aalib +alsa altivec bluray +css directfb dts dvb dxr3 fbcon flac fusion gtk imagemagick ipv6 jack jpeg libcaca mad +mmap mng modplug musepack opengl oss pulseaudio samba sdl speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack +X +xcb xinerama +xv xvmc ${NLS_IUSE}"
+
+RDEPEND="${NLS_RDEPEND}
+ dev-libs/libxdg-basedir
+ media-libs/libdvdnav
+ sys-libs/zlib
+ || ( media-video/ffmpeg:0 media-libs/libpostproc <media-video/libav-0.8.2-r1 )
+ virtual/ffmpeg
+ virtual/libiconv
+ a52? ( media-libs/a52dec )
+ aac? ( media-libs/faad2 )
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ bluray? ( >=media-libs/libbluray-0.2.1 )
+ css? ( >=media-libs/libdvdcss-1.2.10 )
+ directfb? ( dev-libs/DirectFB )
+ dts? ( media-libs/libdca )
+ dxr3? ( media-libs/libfame )
+ flac? ( media-libs/flac )
+ fusion? ( media-libs/FusionSound )
+ gtk? ( x11-libs/gdk-pixbuf:2 )
+ imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ jpeg? ( virtual/jpeg:0 )
+ libcaca? ( media-libs/libcaca )
+ mad? ( media-libs/libmad )
+ mng? ( media-libs/libmng )
+ modplug? ( >=media-libs/libmodplug-0.8.8.1 )
+ musepack? ( >=media-sound/musepack-tools-444 )
+ opengl? (
+ virtual/glu
+ virtual/opengl
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ samba? ( net-fs/samba )
+ sdl? ( media-libs/libsdl )
+ speex? (
+ media-libs/libogg
+ media-libs/speex
+ )
+ theora? (
+ media-libs/libogg
+ media-libs/libtheora
+ )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ )
+ v4l? ( media-libs/libv4l )
+ vaapi? ( x11-libs/libva )
+ vcd? (
+ >=media-video/vcdimager-0.7.23
+ dev-libs/libcdio[-minimal]
+ )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ vpx? ( media-libs/libvpx )
+ wavpack? ( media-sound/wavpack )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ xcb? ( x11-libs/libxcb )
+ xinerama? ( x11-libs/libXinerama )
+ xv? ( x11-libs/libXv )
+ xvmc? ( x11-libs/libXvMC )"
+DEPEND="${RDEPEND}
+ ${NLS_DEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ >=sys-devel/libtool-2.2.6b
+ oss? ( virtual/os-headers )
+ v4l? ( virtual/os-headers )
+ X? (
+ x11-libs/libXt
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto
+ )
+ xv? ( x11-proto/videoproto )
+ xvmc? ( x11-proto/videoproto )
+ xinerama? ( x11-proto/xineramaproto )"
+REQUIRED_USE="vidix? ( || ( X fbcon ) )
+ xv? ( X )
+ xinerama? ( X )"
+
+src_prepare() {
+ sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
+
+ if [[ ${PV} == *9999* ]]; then
+ epatch_user
+ eautoreconf
+ else
+ elibtoolize
+ fi
+
+ local x
+ for x in 0 1 2 3; do
+ sed -i -e "/^O${x}_CFLAGS=\"-O${x}\"/d" configure || die
+ done
+}
+
+src_configure() {
+ [[ ${CHOST} == i?86-* ]] && append-flags -fomit-frame-pointer #422519
+
+ local win32dir #197236
+ if has_multilib_profile; then
+ win32dir=/usr/$(ABI="x86" get_libdir)/win32
+ else
+ win32dir=/usr/$(get_libdir)/win32
+ fi
+
+ local myconf=()
+ [[ ${PV} == *9999* ]] || myconf=( $(use_enable nls) )
+
+ if has_version '>=media-video/ffmpeg-2.2:0'; then
+ myconf+=( --enable-avformat ) #507474
+ fi
+
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable altivec) \
+ $(use_enable vis) \
+ --disable-optimizations \
+ $(use_enable mmap) \
+ $(use_enable oss) \
+ $(use_enable aalib) \
+ $(use_enable directfb) \
+ $(use_enable dxr3) \
+ $(use_enable fbcon fb) \
+ $(use_enable opengl) $(use_enable opengl glu) \
+ $(use_enable vidix) \
+ $(use_enable xinerama) \
+ $(use_enable xvmc) \
+ $(use_enable vdpau) \
+ $(use_enable vaapi) \
+ $(use_enable dvb) \
+ --disable-gnomevfs \
+ $(use_enable samba) \
+ --disable-v4l $(use_enable v4l v4l2) $(use_enable v4l libv4l) \
+ $(use_enable vcd) \
+ $(use_enable vdr) \
+ $(use_enable bluray) \
+ $(use_enable a52 a52dec) \
+ $(use_enable aac faad) \
+ $(use_enable gtk gdkpixbuf) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable dts) \
+ $(use_enable mad) \
+ $(use_enable modplug) \
+ $(use_enable musepack) \
+ $(use_enable mng) \
+ --disable-real-codecs \
+ --disable-w32dll \
+ $(use_enable vpx) \
+ $(use_with truetype freetype) $(use_with truetype fontconfig) \
+ $(use_with X x) \
+ $(use_with alsa) \
+ --without-esound \
+ $(use_with fusion fusionsound) \
+ $(use_with jack) \
+ $(use_with pulseaudio) \
+ $(use_with libcaca caca) \
+ $(use_with sdl) \
+ $(use_with xcb) \
+ --with-xv-path=/usr/$(get_libdir) \
+ $(use_with imagemagick) \
+ --with-external-dvdnav \
+ $(use_with flac libflac) \
+ $(use_with speex) \
+ $(use_with theora) \
+ $(use_with vorbis) \
+ --with-real-codecs-path=/usr/$(get_libdir)/codecs \
+ --with-w32-path=${win32dir} \
+ $(use_with wavpack) \
+ "${myconf[@]}"
+}
+
+src_compile() {
+ # enable verbose building, bug #448140
+ emake V=1
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="/usr/share/doc/${PF}" \
+ htmldir="/usr/share/doc/${PF}/html" \
+ install
+
+ rm -f \
+ "${ED}"usr/lib*/libxine*.la \
+ "${ED}"usr/share/doc/${PF}/COPYING
+}
diff --git a/media-libs/xine-lib/xine-lib-1.2.9999.ebuild b/media-libs/xine-lib/xine-lib-1.2.9999.ebuild
new file mode 100644
index 000000000000..eb4ee3b1c288
--- /dev/null
+++ b/media-libs/xine-lib/xine-lib-1.2.9999.ebuild
@@ -0,0 +1,226 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic libtool multilib
+
+if [[ ${PV} == *9999* ]]; then
+ EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2"
+ inherit autotools mercurial eutils
+ unset NLS_IUSE
+ NLS_DEPEND="sys-devel/gettext"
+ NLS_RDEPEND="virtual/libintl"
+else
+ KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd"
+ SRC_URI="mirror://sourceforge/xine/${P}.tar.xz"
+ NLS_IUSE="nls"
+ NLS_DEPEND="nls? ( sys-devel/gettext )"
+ NLS_RDEPEND="nls? ( virtual/libintl )"
+fi
+
+DESCRIPTION="Core libraries for Xine movie player"
+HOMEPAGE="http://xine.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="1"
+IUSE="a52 aac aalib +alsa altivec bluray +css directfb dts dvb dxr3 fbcon flac fusion gtk imagemagick ipv6 jack jpeg libav libcaca mad +mmap mng modplug musepack opengl oss pulseaudio samba sdl speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack +X +xcb xinerama +xv xvmc ${NLS_IUSE}"
+
+RDEPEND="${NLS_RDEPEND}
+ dev-libs/libxdg-basedir
+ media-libs/libdvdnav
+ sys-libs/zlib
+ !libav? ( media-video/ffmpeg:0= )
+ libav? (
+ media-libs/libpostproc:0=
+ media-video/libav:0=
+ )
+ virtual/libiconv
+ a52? ( media-libs/a52dec )
+ aac? ( media-libs/faad2 )
+ aalib? ( media-libs/aalib )
+ alsa? ( media-libs/alsa-lib )
+ bluray? ( >=media-libs/libbluray-0.2.1 )
+ css? ( >=media-libs/libdvdcss-1.2.10 )
+ directfb? ( dev-libs/DirectFB )
+ dts? ( media-libs/libdca )
+ dxr3? ( media-libs/libfame )
+ flac? ( media-libs/flac )
+ fusion? ( media-libs/FusionSound )
+ gtk? ( x11-libs/gdk-pixbuf:2 )
+ imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick ) )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
+ jpeg? ( virtual/jpeg:0 )
+ libcaca? ( media-libs/libcaca )
+ mad? ( media-libs/libmad )
+ mng? ( media-libs/libmng )
+ modplug? ( >=media-libs/libmodplug-0.8.8.1 )
+ musepack? ( >=media-sound/musepack-tools-444 )
+ opengl? (
+ virtual/glu
+ virtual/opengl
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ samba? ( net-fs/samba )
+ sdl? ( media-libs/libsdl )
+ speex? (
+ media-libs/libogg
+ media-libs/speex
+ )
+ theora? (
+ media-libs/libogg
+ media-libs/libtheora
+ )
+ truetype? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ )
+ v4l? ( media-libs/libv4l )
+ vaapi? ( x11-libs/libva )
+ vcd? (
+ >=media-video/vcdimager-0.7.23
+ dev-libs/libcdio[-minimal]
+ )
+ vdpau? ( x11-libs/libvdpau )
+ vorbis? (
+ media-libs/libogg
+ media-libs/libvorbis
+ )
+ vpx? ( media-libs/libvpx )
+ wavpack? ( media-sound/wavpack )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ )
+ xcb? ( x11-libs/libxcb )
+ xinerama? ( x11-libs/libXinerama )
+ xv? ( x11-libs/libXv )
+ xvmc? ( x11-libs/libXvMC )"
+DEPEND="${RDEPEND}
+ ${NLS_DEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ >=sys-devel/libtool-2.2.6b
+ oss? ( virtual/os-headers )
+ v4l? ( virtual/os-headers )
+ X? (
+ x11-libs/libXt
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto
+ )
+ xv? ( x11-proto/videoproto )
+ xvmc? ( x11-proto/videoproto )
+ xinerama? ( x11-proto/xineramaproto )"
+REQUIRED_USE="vidix? ( || ( X fbcon ) )
+ xv? ( X )
+ xinerama? ( X )"
+
+src_prepare() {
+ sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die
+
+ if [[ ${PV} == *9999* ]]; then
+ epatch_user
+ eautoreconf
+ else
+ elibtoolize
+ fi
+
+ local x
+ for x in 0 1 2 3; do
+ sed -i -e "/^O${x}_CFLAGS=\"-O${x}\"/d" configure || die
+ done
+}
+
+src_configure() {
+ [[ ${CHOST} == i?86-* ]] && append-flags -fomit-frame-pointer #422519
+
+ local win32dir #197236
+ if has_multilib_profile; then
+ win32dir=/usr/$(ABI="x86" get_libdir)/win32
+ else
+ win32dir=/usr/$(get_libdir)/win32
+ fi
+
+ local myconf=()
+ [[ ${PV} == *9999* ]] || myconf=( $(use_enable nls) )
+
+ if ! use libav && has_version '>=media-video/ffmpeg-2.2:0'; then
+ myconf+=( --enable-avformat ) #507474
+ fi
+
+ econf \
+ $(use_enable ipv6) \
+ $(use_enable altivec) \
+ $(use_enable vis) \
+ --disable-optimizations \
+ $(use_enable mmap) \
+ $(use_enable oss) \
+ $(use_enable aalib) \
+ $(use_enable directfb) \
+ $(use_enable dxr3) \
+ $(use_enable fbcon fb) \
+ $(use_enable opengl) $(use_enable opengl glu) \
+ $(use_enable vidix) \
+ $(use_enable xinerama) \
+ $(use_enable xvmc) \
+ $(use_enable vdpau) \
+ $(use_enable vaapi) \
+ $(use_enable dvb) \
+ --disable-gnomevfs \
+ $(use_enable samba) \
+ --disable-v4l $(use_enable v4l v4l2) $(use_enable v4l libv4l) \
+ $(use_enable vcd) \
+ $(use_enable vdr) \
+ $(use_enable bluray) \
+ $(use_enable a52 a52dec) \
+ $(use_enable aac faad) \
+ $(use_enable gtk gdkpixbuf) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable dts) \
+ $(use_enable mad) \
+ $(use_enable modplug) \
+ $(use_enable musepack) \
+ $(use_enable mng) \
+ --disable-real-codecs \
+ --disable-w32dll \
+ $(use_enable vpx) \
+ $(use_with truetype freetype) $(use_with truetype fontconfig) \
+ $(use_with X x) \
+ $(use_with alsa) \
+ --without-esound \
+ $(use_with fusion fusionsound) \
+ $(use_with jack) \
+ $(use_with pulseaudio) \
+ $(use_with libcaca caca) \
+ $(use_with sdl) \
+ $(use_with xcb) \
+ --with-xv-path=/usr/$(get_libdir) \
+ $(use_with imagemagick) \
+ --with-external-dvdnav \
+ $(use_with flac libflac) \
+ $(use_with speex) \
+ $(use_with theora) \
+ $(use_with vorbis) \
+ --with-real-codecs-path=/usr/$(get_libdir)/codecs \
+ --with-w32-path=${win32dir} \
+ $(use_with wavpack) \
+ "${myconf[@]}"
+}
+
+src_compile() {
+ # enable verbose building, bug #448140
+ emake V=1
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ docdir="/usr/share/doc/${PF}" \
+ htmldir="/usr/share/doc/${PF}/html" \
+ install
+
+ rm -f \
+ "${ED}"usr/lib*/libxine*.la \
+ "${ED}"usr/share/doc/${PF}/COPYING
+}