From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-libs/xine-lib/Manifest | 12 ++ media-libs/xine-lib/files/ffmpeg29.patch | 44 ++++ .../files/xine-lib-1.2.6-imagemagick7.patch | 13 ++ .../files/xine-lib-1.2.6-libxcb-1.12.patch | 25 +++ .../xine-lib/files/xine-lib-1.2.6-sysmacros.patch | 15 ++ media-libs/xine-lib/metadata.xml | 69 +++++++ media-libs/xine-lib/xine-lib-1.2.6-r2.ebuild | 228 +++++++++++++++++++++ media-libs/xine-lib/xine-lib-1.2.8.ebuild | 226 ++++++++++++++++++++ media-libs/xine-lib/xine-lib-1.2.9999.ebuild | 227 ++++++++++++++++++++ 9 files changed, 859 insertions(+) create mode 100644 media-libs/xine-lib/Manifest create mode 100644 media-libs/xine-lib/files/ffmpeg29.patch create mode 100644 media-libs/xine-lib/files/xine-lib-1.2.6-imagemagick7.patch create mode 100644 media-libs/xine-lib/files/xine-lib-1.2.6-libxcb-1.12.patch create mode 100644 media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch create mode 100644 media-libs/xine-lib/metadata.xml create mode 100644 media-libs/xine-lib/xine-lib-1.2.6-r2.ebuild create mode 100644 media-libs/xine-lib/xine-lib-1.2.8.ebuild create mode 100644 media-libs/xine-lib/xine-lib-1.2.9999.ebuild (limited to 'media-libs/xine-lib') diff --git a/media-libs/xine-lib/Manifest b/media-libs/xine-lib/Manifest new file mode 100644 index 000000000000..56fd52816a08 --- /dev/null +++ b/media-libs/xine-lib/Manifest @@ -0,0 +1,12 @@ +AUX ffmpeg29.patch 1861 SHA256 50345b87d9d979fdb7c4e4e94e67a5fa6843b016b27e431a0eee58c622c00a64 SHA512 3697cb1ab8801a1d091aead3e50837946e6d8f6c6329341ced40039ebb6ac68b6e186ff2bd2f2ec5d517e5ed45bfb61d0cd21921f255e1ad768c186faf75beca WHIRLPOOL 1104b7d3bf5a439fe73ddbd488067dd8961d97f712db4dfdbd4caeed4b26b95a83e4b302790e2b57efb1f854bc248a3abf929fab0d3685b46fc5e096f26b7c67 +AUX xine-lib-1.2.6-imagemagick7.patch 384 SHA256 b0d263ea712f367172a9a23bbd9fa228628c50636220c4201e1c9b41fb1377fe SHA512 13badc72163f41a14fa85d84cbc835a396ab2bc195125025962257de4a41925e29c74159c3941472334f9eb10feee4278ea96288201689d5fcc48c494940ceb9 WHIRLPOOL 283a32868c7c3993b8559e58fd3a31e2709f4dfb6b89af80e89f71ad9194b292656dc896233fd8d4b109951080b74a53633895ae9280dba9907ac650746d09be +AUX xine-lib-1.2.6-libxcb-1.12.patch 1304 SHA256 f9e9e58ff115d3228fd6ebf41f01291dfc5d2746006548e15e7bb3a20772ae77 SHA512 c3415c9a0f65ec35dcb59b6880905ae525c6cfc38a42578d96ac713a4426b642069613e4234903e46e852e8f33b4eeab3ffce3864ca672efe8170ae987121783 WHIRLPOOL 8b6b504dc05d94512be9e3d8b72d2f9e671826a2fa2d2d2e8b230406e770b64cefd203430449de07752e22762ef86c9575c977ee69518236cc623c8827f7b11a +AUX xine-lib-1.2.6-sysmacros.patch 425 SHA256 bdbb5407764ac9770ff08e2fe8ef01cdfefbb168e8783b758a6e25ad6c62439a SHA512 fed191b8d1c4d1a4b4c5f399a720f07065feda2962f760b7b03bbfc7c19dfbd92e5a621172b84ee6776a55c052b79ecf06707a6d406417796c5f08adced79fe0 WHIRLPOOL 0ab4d11c16861bbf9886af0a25bf0a8acbcafd59a2591ca96b6b3ac854c399f3fdbf66fb766bc630793ef21202c5977de749735dbe022253ef6ea171362cd49f +DIST xine-lib-1.2.6.tar.xz 5020964 SHA256 bd041d738817c7c0c6392a3c0e5bda5a664a47e035135b5a449364f8c9b6a005 SHA512 ed4b1bc29daf85021cb83393d010ddca0ce9da508a8ddb9fec554f18eda1d156fc08f0aeaabeb7afe93fc445f049f84057e0708e6c87cd123c5cd2b20f8a25fd WHIRLPOOL 66d85e75e28598ce3790f08c69ccd912aac115c8071f1795abd51d43b1e35fbc08827ae93fc9ce113cc0c0565b409714103cfeb14aa7acefe6bdb2fdf46ee307 +DIST xine-lib-1.2.8.tar.xz 5151580 SHA256 f1b299a71dcae075bf6792e7b5a2020ed5ac8c46ad5091e004ce266aac40e8a6 SHA512 ef7cdf1090f4e113f441055963dce9751b548398ff1a4da5e45b7fea45d4f8b5443622e675d343984ec956f3fc054ff9214a2aee3edd3a79d8ddb77afc3e17b2 WHIRLPOOL eb4e5d6c44d3975036807ec59a3ce8d3bf3e38088e0604c67b862821d623401d869df576a963952257b3ff13d5ad5fb1431c546b9f2049fa48d5747c14d13235 +EBUILD xine-lib-1.2.6-r2.ebuild 5726 SHA256 f89847c45ace3b839b818e66379aa590b137708ba7a8b50c2752f24a73338a42 SHA512 5b92b1712da307acd84b3e0afa091cbb395e169d434b640cb3b44e4b02fae0d7c48e8296511124679e1e478a948b8a261933b27f8ce64d4f669bdc3ed445bd79 WHIRLPOOL f9d70161ffeadc37f5eb86f102d4db497d30c0e8153fa5de74eb63060e4ba55c4fea47b44b9f4533cf83f2b48dd5e8eefa1043bb2c81c3df218641dfc2722548 +EBUILD xine-lib-1.2.8.ebuild 5700 SHA256 0db5d064d0353dcb9a6480b09c5a527e6ac8da5d94b37eaf978b1cdf8514b409 SHA512 c9eca07b1f4421b0fbc56218885f8e55bfb47836527f755a4625b19f3dadba14b016c4ed642471d31251f247e1d04c19a2924c14f50f5876b9502677ca0818ea WHIRLPOOL f5c793cf8a5b84ab7fedfd95fbd2e9b0818ae31d576706f7b35a68b387a579edd82c7987649ed429c1657b281cfe2a2b301f559aec8e127839c2ace400ea4570 +EBUILD xine-lib-1.2.9999.ebuild 5648 SHA256 6591aea3ad1144e363b44107bf5f5487eeeb258386c9ac9f48f5eacdba75d836 SHA512 fc3bbe13f66ae98f08ce3d8a60970adbf15fd36b461b23cb22a1dbe51413d1cb97d06a22b0fea6145bd7dd58882ead91b95de52436123c2b37416f654f97f2d1 WHIRLPOOL d798c769294935629f55c748d9e2f33ae948bcd8d10000ff1726f9b53ed1174af1f84ff1a67e1f63257b28c0d3bf88f27f7aadc657a50da6c3058c1a0b955568 +MISC ChangeLog 4376 SHA256 6f8a16856b7281e3b3811ef78fe98352d5778b36b1cf7a69feb91735b40b88f5 SHA512 98da6f7782f0896b72e9f2bcd965facaf2ddedc2658be4691cc88afebc03bb06de2fdfd481593b2361258847b5db2a2b7bb56fccb0fcbbd57a594a0761bc9aa7 WHIRLPOOL dadf9e53f057e9f083037415e2c6dec548c9d96377f1db6398ea2174a1bbb3f7c5131afdb05fe2c5f85f18c80dbe09715078dd752c50ac26ee4dfd786f4b0208 +MISC ChangeLog-2015 86007 SHA256 9721cc2b9db14b55a9a018c9ab7c5c092158851e9ecbe51a187a4f37da4a7926 SHA512 25f069a785a340ae89d538f2ac9e7dc859f392173f85585b743db3b4e83877198fac6249f1d673424646e7ee583589d09d04aca6d6c09518b0039afb674e6bdf WHIRLPOOL 0fda6b2cfb986f0840259399f5a85b2fc5a1adba3353dbf7411c529d3a47ed2c31595c0fdb6450a05691c20f59b710c8b9fa623deb4cfbc6fc9477853a249667 +MISC metadata.xml 2668 SHA256 9ac93ae2c04bad6f6712784dd0b0dd1963e672982b4fb1614c3aafce19a1e22f SHA512 17263da5cdc28752dc9344b9806665d236d8a5d3ccad7b19209912a3510b17c9d6587fd1aa847e509a3c4accd53cc96c7d1fc476f6adf9aa63c90b7eed45183b WHIRLPOOL 169388bb12822ad114445dbe52d0fa2dae041922f98e466cea183fcf892ca1b8db40ebc4f9f4d40cae6323f4e6ae562e8d3166a835e776f5ac9e112f5894f3ed diff --git a/media-libs/xine-lib/files/ffmpeg29.patch b/media-libs/xine-lib/files/ffmpeg29.patch new file mode 100644 index 000000000000..a220483218c0 --- /dev/null +++ b/media-libs/xine-lib/files/ffmpeg29.patch @@ -0,0 +1,44 @@ +Index: xine-lib-1.2.6/src/combined/ffmpeg/ff_audio_decoder.c +=================================================================== +--- xine-lib-1.2.6.orig/src/combined/ffmpeg/ff_audio_decoder.c ++++ xine-lib-1.2.6/src/combined/ffmpeg/ff_audio_decoder.c +@@ -590,7 +590,7 @@ static int ff_audio_decode (ff_audio_dec + int got_frame; + float gain = this->class->gain; + if (!this->av_frame) +- this->av_frame = avcodec_alloc_frame (); ++ this->av_frame = av_frame_alloc (); + + consumed = avcodec_decode_audio4 (this->context, this->av_frame, &got_frame, &avpkt); + if ((consumed >= 0) && got_frame) { +@@ -1071,7 +1071,7 @@ static void ff_audio_reset (audio_decode + /* try to reset the wma decoder */ + if( this->decoder_ok ) { + #if AVAUDIO > 3 +- avcodec_free_frame (&this->av_frame); ++ av_frame_free (&this->av_frame); + #endif + pthread_mutex_lock (&ffmpeg_lock); + avcodec_close (this->context); +@@ -1105,7 +1105,7 @@ static void ff_audio_dispose (audio_deco + + if( this->context && this->decoder_ok ) { + #if AVAUDIO > 3 +- avcodec_free_frame (&this->av_frame); ++ av_frame_free (&this->av_frame); + #endif + pthread_mutex_lock (&ffmpeg_lock); + avcodec_close (this->context); +Index: xine-lib-1.2.6/src/combined/ffmpeg/ff_video_decoder.c +=================================================================== +--- xine-lib-1.2.6.orig/src/combined/ffmpeg/ff_video_decoder.c ++++ xine-lib-1.2.6/src/combined/ffmpeg/ff_video_decoder.c +@@ -2523,7 +2523,7 @@ static video_decoder_t *ff_video_open_pl + this->stream = stream; + this->class = (ff_video_class_t *) class_gen; + +- this->av_frame = avcodec_alloc_frame(); ++ this->av_frame = av_frame_alloc(); + this->context = avcodec_alloc_context(); + this->context->opaque = this; + #if AVPALETTE == 1 diff --git a/media-libs/xine-lib/files/xine-lib-1.2.6-imagemagick7.patch b/media-libs/xine-lib/files/xine-lib-1.2.6-imagemagick7.patch new file mode 100644 index 000000000000..34062222e32c --- /dev/null +++ b/media-libs/xine-lib/files/xine-lib-1.2.6-imagemagick7.patch @@ -0,0 +1,13 @@ +http://git.pld-linux.org/?p=packages/xine-lib.git;a=blob;f=imagemagick7.patch;h=d050323cdf509c9bb5f8edbad90084e8ce5c1b38;hb=HEAD + +--- xine-lib-1.2.6/src/video_dec/image.c ++++ xine-lib-1.2.6/src/video_dec/image.c +@@ -39,7 +39,7 @@ + #define LOG + */ + +-#include ++#include + #ifdef PACKAGE_NAME + #undef PACKAGE_BUGREPORT + #undef PACKAGE_NAME diff --git a/media-libs/xine-lib/files/xine-lib-1.2.6-libxcb-1.12.patch b/media-libs/xine-lib/files/xine-lib-1.2.6-libxcb-1.12.patch new file mode 100644 index 000000000000..cc17643d9c56 --- /dev/null +++ b/media-libs/xine-lib/files/xine-lib-1.2.6-libxcb-1.12.patch @@ -0,0 +1,25 @@ +https://bugs.xine-project.org/show_bug.cgi?id=572 +https://bugs.gentoo.org/584640 + +--- xine-lib-1.2.6/m4/video_out.m4 ++++ xine-lib-1.2.6/m4/video_out.m4 +@@ -305,7 +305,7 @@ + dnl xcb + XINE_ARG_WITH([xcb], [Enable support for XCB video out plugins]) + if test x"$with_xcb" != x"no"; then +- PKG_CHECK_MODULES([XCB], [xcb-shape >= 1.0], [have_xcb=yes], [have_xcb=no]) ++ PKG_CHECK_MODULES([XCB], [xcb xcb-shape >= 1.0], [have_xcb=yes], [have_xcb=no]) + if test x"$hard_enable_xcb" = x"yes" && test x"$have_xcb" != x"yes"; then + AC_MSG_ERROR([XCB support requested, but XCB not found]) + elif test x"$have_xcb" = x"yes"; then +--- xine-lib-1.2.6/src/video_out/Makefile.am ++++ xine-lib-1.2.6/src/video_out/Makefile.am +@@ -147,7 +147,7 @@ + xineplug_vo_out_xcbshm_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS) $(XCBSHM_CFLAGS) $(AVUTIL_CFLAGS) + + xineplug_vo_out_xcbxv_la_SOURCES = video_out_xcbxv.c $(XCBOSD) +-xineplug_vo_out_xcbxv_la_LIBADD = $(XINE_LIB) $(PTHREAD_LIBS) $(LTLIBINTL) $(XCBXV_LIBS) $(XCB_LIBS) ++xineplug_vo_out_xcbxv_la_LIBADD = $(XINE_LIB) $(PTHREAD_LIBS) $(LTLIBINTL) $(XCBXV_LIBS) $(XCBSHM_LIBS) $(XCB_LIBS) + xineplug_vo_out_xcbxv_la_CFLAGS = $(AM_CFLAGS) $(XCB_CFLAGS) $(XCBXV_CFLAGS) + + xineplug_vo_out_xshm_la_SOURCES = video_out_xshm.c $(X11OSD) diff --git a/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch b/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch new file mode 100644 index 000000000000..a7168d5b4506 --- /dev/null +++ b/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch @@ -0,0 +1,15 @@ +fix build w/newer glibc due to major/minor includes being dropped from sys/types.h + +https://bugs.gentoo.org/580012 +https://bugs.xine-project.org/show_bug.cgi?id=574 + +--- a/src/xine-utils/xine_check.c ++++ b/src/xine-utils/xine_check.c +@@ -55,6 +55,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/media-libs/xine-lib/metadata.xml b/media-libs/xine-lib/metadata.xml new file mode 100644 index 000000000000..9d10869197e7 --- /dev/null +++ b/media-libs/xine-lib/metadata.xml @@ -0,0 +1,69 @@ + + + + + media-video@gentoo.org + + An open source library for media applications + + + Enable playback of Blu-ray filesystems using media-libs/libbluray + + + Enable support for DXR3 mpeg acceleration cards. + + + Build the media-libs/flac 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. + + + Enable support for the Fusion audio sub system + + + Build the gdkpixbuf-based image decoder plugin. + + + Build the ImageMagick-based image decoder plugin. + + + Build the media-libs/libmad 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. + + + 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. + + + Use media-libs/freetype for font rendering and + media-libs/fontconfig 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. + + + Build the VDR plugin + + + Enable support for vidix video output. + + + Adds support for SIMD optimizations for UltraSPARC processors. + + + Enable VP8 codec support via media-libs/libvpx. + + + Enable support for XVideo Motion Compensation (accelerated mpeg playback). + + + + xine + + diff --git a/media-libs/xine-lib/xine-lib-1.2.6-r2.ebuild b/media-libs/xine-lib/xine-lib-1.2.6-r2.ebuild new file mode 100644 index 000000000000..46fdc6533c60 --- /dev/null +++ b/media-libs/xine-lib/xine-lib-1.2.6-r2.ebuild @@ -0,0 +1,228 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools flag-o-matic libtool multilib eutils + +if [[ ${PV} == *9999* ]]; then + EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2" + inherit 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 fusionsound 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 ) + fusionsound? ( >=dev-libs/DirectFB-1.7.1[fusionsound] ) + gtk? ( x11-libs/gdk-pixbuf:2 ) + imagemagick? ( virtual/imagemagick-tools ) + 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:0=[-minimal] + ) + vdpau? ( x11-libs/libvdpau ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + vpx? ( media-libs/libvpx:0= ) + 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 )" + +PATCHES=( + "${FILESDIR}/${P}-libxcb-1.12.patch" + "${FILESDIR}/${P}-sysmacros.patch" +) + +src_prepare() { + default + + sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die + has_version '>=media-video/ffmpeg-2.9' && eapply "${FILESDIR}/ffmpeg29.patch" + + eautoreconf + + 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 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.8.ebuild b/media-libs/xine-lib/xine-lib-1.2.8.ebuild new file mode 100644 index 000000000000..a2171f2e6216 --- /dev/null +++ b/media-libs/xine-lib/xine-lib-1.2.8.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools flag-o-matic libtool multilib eutils + +if [[ ${PV} == *9999* ]]; then + EHG_REPO_URI="http://hg.debian.org/hg/xine-lib/xine-lib-1.2" + inherit mercurial eutils + unset NLS_IUSE + NLS_DEPEND="sys-devel/gettext" + NLS_RDEPEND="virtual/libintl" +else + KEYWORDS="~amd64 ~arm64 ~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 fusionsound 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 ) + fusionsound? ( >=dev-libs/DirectFB-1.7.1[fusionsound] ) + gtk? ( x11-libs/gdk-pixbuf:2 ) + imagemagick? ( virtual/imagemagick-tools ) + 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[X,opengl] ) + vcd? ( + >=media-video/vcdimager-0.7.23 + dev-libs/libcdio:0=[-minimal] + ) + vdpau? ( x11-libs/libvdpau ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + vpx? ( media-libs/libvpx:0= ) + 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() { + default + + if has_version '>=media-gfx/imagemagick-7.0.1.0' ; then + eapply "${FILESDIR}/${PN}-1.2.6-imagemagick7.patch" + fi + + sed -i -e '/define VDR_ABS_FIFO_DIR/s|".*"|"/var/vdr/xine"|' src/vdr/input_vdr.c || die + + eautoreconf + + 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 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..a7d83b367faa --- /dev/null +++ b/media-libs/xine-lib/xine-lib-1.2.9999.ebuild @@ -0,0 +1,227 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 ~arm64 ~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 fusionsound 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 ) + fusionsound? ( >=dev-libs/DirectFB-1.7.1[fusionsound] ) + gtk? ( x11-libs/gdk-pixbuf:2 ) + imagemagick? ( virtual/imagemagick-tools ) + 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[X,opengl] ) + vcd? ( + >=media-video/vcdimager-0.7.23 + dev-libs/libcdio:0=[-minimal] + ) + vdpau? ( x11-libs/libvdpau ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + ) + vpx? ( media-libs/libvpx:0= ) + 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() { + default + + 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 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 +} -- cgit v1.2.3