commit: b9c57a4265f20ade72561b15816285f93304bc4b Author: Gerion Entrup <gerion.entrup <AT> flump <DOT> de> AuthorDate: Mon Apr 2 20:20:52 2018 +0000 Commit: gerion <gerion.entrup <AT> flump <DOT> de> CommitDate: Mon Apr 23 21:30:04 2018 +0000 URL: https://gitweb.gentoo.org/repo/user/gerislay.git/commit/?id=b9c57a42
media-libs/xine-lib: depend on virtual/jack media-libs/xine-lib/Manifest | 4 + .../files/xine-lib-1.2.6-imagemagick7.patch | 13 ++ media-libs/xine-lib/metadata.xml | 69 +++++++ media-libs/xine-lib/xine-lib-1.2.9-r2.ebuild | 227 +++++++++++++++++++++ 4 files changed, 313 insertions(+) diff --git a/media-libs/xine-lib/Manifest b/media-libs/xine-lib/Manifest new file mode 100644 index 0000000..37a7e6d --- /dev/null +++ b/media-libs/xine-lib/Manifest @@ -0,0 +1,4 @@ +AUX xine-lib-1.2.6-imagemagick7.patch 384 SHA256 b0d263ea712f367172a9a23bbd9fa228628c50636220c4201e1c9b41fb1377fe SHA512 13badc72163f41a14fa85d84cbc835a396ab2bc195125025962257de4a41925e29c74159c3941472334f9eb10feee4278ea96288201689d5fcc48c494940ceb9 WHIRLPOOL 283a32868c7c3993b8559e58fd3a31e2709f4dfb6b89af80e89f71ad9194b292656dc896233fd8d4b109951080b74a53633895ae9280dba9907ac650746d09be +DIST xine-lib-1.2.9.tar.xz 5180452 SHA256 32b34e8049feb762d75a551d5d2cdb56c396fdd83e35b9b7de5fd08e498e948d SHA512 bc672b32d6d72e6fa5641319e0bd15d721ea4b65e6d025e3cdbf6ba3655a7b2c714809d919a53fca8a908a7ce37541a341c13dd8a336799c2e942d5f86b84d3c WHIRLPOOL f5759a4fcaa95e3fe3cfa6b6843a21f8c6456569251f7066a20d859794b7a390685e72c2d0755fdea8e74dfc1ad0e566c61ac0a7c6ac1cb8062ef2a301a775c7 +EBUILD xine-lib-1.2.9-r2.ebuild 5465 SHA256 6bcb2f28793486029ea73f5058e3be42b2eb6540fb118a2acf0925305da502c6 SHA512 1e466621be194571a7af5fdcfe1337f55a510b0ae93e33d0c16828c131ee3f494a263e0c85073d71a05ba270fb574b3bf087f9d227b7d0a9011b3596c8b67912 WHIRLPOOL dbd16f622453d7854ca3073d2700b73065c7359c4a638680a6c12596408549946024d240d50beef071281d8b08b5210c85941cdc51ef72b25cb1769c19a5e238 +MISC metadata.xml 2668 SHA256 9ac93ae2c04bad6f6712784dd0b0dd1963e672982b4fb1614c3aafce19a1e22f SHA512 17263da5cdc28752dc9344b9806665d236d8a5d3ccad7b19209912a3510b17c9d6587fd1aa847e509a3c4accd53cc96c7d1fc476f6adf9aa63c90b7eed45183b WHIRLPOOL 169388bb12822ad114445dbe52d0fa2dae041922f98e466cea183fcf892ca1b8db40ebc4f9f4d40cae6323f4e6ae562e8d3166a835e776f5ac9e112f5894f3ed 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 0000000..3406222 --- /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 <wand/magick_wand.h> ++#include <MagickWand/MagickWand.h> + #ifdef PACKAGE_NAME + #undef PACKAGE_BUGREPORT + #undef PACKAGE_NAME diff --git a/media-libs/xine-lib/metadata.xml b/media-libs/xine-lib/metadata.xml new file mode 100644 index 0000000..9d10869 --- /dev/null +++ b/media-libs/xine-lib/metadata.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>media-vi...@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="fusionsound"> + 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.9-r2.ebuild b/media-libs/xine-lib/xine-lib-1.2.9-r2.ebuild new file mode 100644 index 0000000..bfa6c1f --- /dev/null +++ b/media-libs/xine-lib/xine-lib-1.2.9-r2.ebuild @@ -0,0 +1,227 @@ +# Copyright 1999-2018 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 + 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 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 + 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 ) + 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? ( virtual/jack ) + jpeg? ( virtual/jpeg:0 ) + !libav? ( media-video/ffmpeg:0= ) + libav? ( + media-libs/libpostproc:0= + media-video/libav: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:0=[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 + + if [[ "${PV}" = *9999* ]] ; then + 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=( + --disable-directfb + --disable-gnomevfs + --disable-optimizations + --disable-real-codecs + --disable-v4l + --disable-w32dll + --with-external-dvdnav + --with-real-codecs-path=/usr/$(get_libdir)/codecs + --with-w32-path=${win32dir} + --with-xv-path=/usr/$(get_libdir) + --without-esound + $(use_enable a52 a52dec) + $(use_enable aac faad) + $(use_enable aalib) + $(use_enable altivec) + $(use_enable bluray) + $(use_enable dts) + $(use_enable dvb) + $(use_enable dxr3) + $(use_enable fbcon fb) + $(use_enable gtk gdkpixbuf) + $(use_enable ipv6) + $(use_enable jpeg libjpeg) + $(use_enable mad) + $(use_enable mmap) + $(use_enable mng) + $(use_enable modplug) + $(use_enable musepack) + $(use_enable opengl) + $(use_enable opengl glu) + $(use_enable oss) + $(use_enable samba) + $(use_enable v4l libv4l) + $(use_enable v4l v4l2) + $(use_enable vaapi) + $(use_enable vdpau) + $(use_enable vis) + $(use_enable vidix) + $(use_enable xinerama) + $(use_enable xvmc) + $(use_enable vcd) + $(use_enable vdr) + $(use_enable vpx) + $(use_with alsa) + $(use_with flac libflac) + $(use_with fusionsound) + $(use_with imagemagick) + $(use_with jack) + $(use_with libcaca caca) + $(use_with pulseaudio) + $(use_with sdl) + $(use_with speex) + $(use_with theora) + $(use_with truetype fontconfig) + $(use_with truetype freetype) + $(use_with vorbis) + $(use_with wavpack) + $(use_with X x) + $(use_with xcb) + ) + [[ ${PV} == *9999* ]] || myconf+=( $(use_enable nls) ) + + if ! use libav && has_version '>=media-video/ffmpeg-2.2:0'; then + myconf+=( --enable-avformat ) #507474 + fi + + econf "${myconf[@]}" +} + +src_compile() { + # enable verbose building, bug #448140 + emake V=1 +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + rm -f "${ED}"usr/share/doc/${PF}/COPYING +}