summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-xineliboutput
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-xineliboutput
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-xineliboutput')
-rw-r--r--media-plugins/vdr-xineliboutput/Manifest15
-rw-r--r--media-plugins/vdr-xineliboutput/files/confd-1.0.0_pre627
-rw-r--r--media-plugins/vdr-xineliboutput/files/confd-2.0.050
-rw-r--r--media-plugins/vdr-xineliboutput/files/vdr-frontend12
-rw-r--r--media-plugins/vdr-xineliboutput/metadata.xml22
-rw-r--r--media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.1.0.ebuild153
-rw-r--r--media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0.ebuild143
-rw-r--r--media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20130821.ebuild158
-rw-r--r--media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20150220.ebuild148
-rw-r--r--media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild160
10 files changed, 888 insertions, 0 deletions
diff --git a/media-plugins/vdr-xineliboutput/Manifest b/media-plugins/vdr-xineliboutput/Manifest
new file mode 100644
index 000000000000..08be79c4cc85
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/Manifest
@@ -0,0 +1,15 @@
+AUX confd-1.0.0_pre6 856 SHA256 fd30a70c06553463414e93771306a59fdabbcf674218dac49d4af46096d6089b SHA512 67ab65984c2176edb7b3985b4a561bb41c8c529796d5cc44f559e275240c0c25bfee9e340744c7f25192de8a5231ff94f0bc87ace0edbb5b496846b0f8017fed WHIRLPOOL 7e9714a0b79c5cdf16fc57b3ad7a9b24b7c6591f97612cafea76dbb4c54857d881c6eb6e076d8561b14c8c08345ab94c40cff9c6f98c6196ead4aa94425375a5
+AUX confd-2.0.0 1476 SHA256 b0b7c39c58d6a40bd639c031c8526de856aef77c08b46a1f232549c29a7e147e SHA512 8ab8b99e770dacbaadfc97ccc80f3d2c857bf95b662b9152959ccd88b940f4d2f7d2957ea4f6390f30470aca809cb3bb04b8b9e696122131fbb6d9f5d010f579 WHIRLPOOL a6e5995a755fb3e91432b2bcdaf98b1c43d8d18d06bdde3f4ca1032a82cb8556d95d0c245e5196c768f3d5d879c8eea39b5ebc795e5045ed3b8c10f660330663
+AUX vdr-frontend 400 SHA256 5cff1f0468dcf5639b36be461c8994e5c8f5d09ec3ef6a8f9fcadce4469d420a SHA512 e6ef3d51fa02290db8456c5b37f9a97f90557bb7943c1310ff2d8e77ee1beee3c98b1a6f012c9d97e048e3d7079b72cdeab9fa13e2a494bcb6dc58c2cd426e1f WHIRLPOOL 77550dbaf20e2613a9b623fd84a7f14998dd24be5c735d020c4dd63ef4f0899f223838094581b7dc258caf60b2ab0122855c66ce1f77e46beda64d17bac1518a
+DIST vdr-xineliboutput-1.1.0.tgz 404820 SHA256 bddebfbf77e956a50faea1baa44513a31122961357bc502b588c521358da77d3 SHA512 255ae698c1dc9d9098847e62c386a6bd24ec1dc822fb695600ef944e18d0febfac0d5b487de57a17ea9f9bd3935d1d11763a06a5daa527ce95f9557a408c264d WHIRLPOOL be47aeb039bb69e85a0f964940b3173f4371ae911d58df76c6e0135b9843471cd21b27efdfc95001216a508c0bbdc1e4957cb0d50da1a3c49e7c4ba7dd24e55c
+DIST vdr-xineliboutput-2.0.0.tgz 413085 SHA256 d406bd9efbcdde92c6d28131210c508e0a1cd218d57318a3d20978065107656b SHA512 9410072bcd8ae71196e3417c12dc810da109f155748d58b3b0b422cd6d8cd29b3f8a7d0cbffada9dd22af679161ffeb096e952f620ed1c7f1122b46bf111f9ee WHIRLPOOL 6d073611eb9fbb8198bf75a2b36cc571630fbdf8b500a5b3d6df75ab58cb84cd37e3dea1d2f27850245f3b99063fa44655da00bc4aba9c1e7e4e586c325f68ac
+DIST vdr-xineliboutput-2.0.0_p20150220.tar.xz 326520 SHA256 5fac9ed279ab2d5a9a4697a1745560901887fd60a9b1dbdd04f6d8ee5d2dccbf SHA512 8e3a6fe4dad4875b1e2d2c6667e1c5d8f4542742fb74c40148aa5dc403b86743c32a49e1fb0979a59c312aaff4c038347f934105b0ca8d3097b61c59021966f3 WHIRLPOOL cb8958ec5bc2ff76544791e2362b3f89ed9cb4f9e905052fb6b7f42f341399d8ed112694a69205c1759b49f23b1416892e7f70a73816f9d630004d7aebf6fcfa
+DIST xineliboutput-2.0.0_p20130821.tar.bz2 356633 SHA256 3ccff26c1112267e12858bbacd1d9081c999881da77c0da91f1fcc525cc225e9 SHA512 ee25447749dc5b8fe93da3c021823f8dd552619d64575525918c15447135af0d6684e613b20a1aa99a1fd8bd5334344ea03962ab75bbbffb0204d92adf36f9ed WHIRLPOOL 1feabc1f333593fb194065d1a62a0da80374a6c9714c8e1af4623e047ed4f0ef6c5433e8401f072e7c4a460830c2d1b902ce2a78f7ecad5e8533b159eda6db00
+EBUILD vdr-xineliboutput-1.1.0.ebuild 3216 SHA256 2bee71db4496db93fdcb7c00426b76039694e7fa84665f95a6c67802a042d8b8 SHA512 81d665e87a862e939049d2170e9d5d1f2956bf5b7b30185bc2b75d90148f747088dbcee3d4e40a18f07c0104238f0060a2298c49596f1ec146a90827d7cee783 WHIRLPOOL 24b1bd13a439263e93d130951c06b6d42108ea2501fa95152b873b5ce2843ba6dddee7213478458382f790c1ad2f156a5e7b3a9e0f63b3fdaf216535cffd8721
+EBUILD vdr-xineliboutput-2.0.0.ebuild 2957 SHA256 27d3d88483ad1b905561210bf5eecb61e4f1762508e83d46589d3eb162f51460 SHA512 e0d7bfb1cdd1d8136fddacae4428568d8e2730b7490c151f07b190b0237553b1b571b183beb704e41b71c6a1ea6495eac64ebd6c73960755bb008aba055b6a50 WHIRLPOOL 1072876fdb4ee2cdc2582d8f9fda182f6e7d3588b8c28be2ce8a309f1a15c264fed84e18adf82e4d68a49dccc1a24364156b1c4372a6cc3f0aba64414a600c65
+EBUILD vdr-xineliboutput-2.0.0_pre20130821.ebuild 3345 SHA256 de9faca1766a43d323d19a7e311d8e53bb92f43ad29cba8d24ad2a5e6d2d9912 SHA512 b5bda50c513eb377d7a76abd7e1a555635aab6605c4bef224f5ec4b2058435999f88e83190c5aa33176c5a9eed6f221140d44f6268a688940b61beaf9ed2523d WHIRLPOOL ca947aaa19cb57a89061ba19a2bfa502438113266490f4b03ff43d679dba65c843bae8f11275859d813c04f0cc00e4156fdcfaada9bc1896c9ec98360fa30f58
+EBUILD vdr-xineliboutput-2.0.0_pre20150220.ebuild 3116 SHA256 4768d9670b5b078d2fddf8f84eb98ca98cb3a9263a100dfaab5f0c8ddc4c0d30 SHA512 6da29c2a84fc855c653438185b178120eb3c3e9a1f4874cc0584c81c6c97b650b738f7fa5ae8384cc8f4825ecdb0cbf1144a30f34e8319702ad1e5d5d4c8127a WHIRLPOOL 5f27b50752965bef63955c90b7f9151696ee02490fbdaddffa6d8d365935cdbe47d940cedb009782adf260c6ec18d67d8e792c364429c2b5c0fcd859eff9ac4c
+EBUILD vdr-xineliboutput-9999.ebuild 3369 SHA256 9ef0585c866110137a34f6cd3838e08f4ad97b24bb0153332e6863f3e511f9e1 SHA512 158e5a753d55561984ffdbaaf0db58917f4eb1f54e3a6ff7c5eb1305423fa91eae78ff5218c4ef67c687fc656562ef85f58ee19c5ab6be44c7e40e4f1c24b46d WHIRLPOOL 9482924ebb4b6801ae6a327374279e2cb0459b4e5dc4a2909f7c006451af874e3fa140b4aaf60afd62c5f3c7765e8bed8dd0ebd132aa34a8c3000148f955b42c
+MISC ChangeLog 4068 SHA256 bf7d2b8190761ee721bbb52be44c2e3a853dd91590990becf1ec43b3221ccbd1 SHA512 e9285f2023b1c428cf4ee34c5e42b32fa89fe6d0e82412c030c0fff690d5b31e8f36763766e34782947bba634d5561cbf6a644624133a507158cfde221beb130 WHIRLPOOL 0f1a8ceee2c21a783464ded6f06fa88b9662304b5d893aa64b098cd25769ea222e1ead9f4c20af1213733a387ab20c01f597d8fb7c76440ef391ecc04cad4e4b
+MISC ChangeLog-2015 16859 SHA256 f33ee0162a800e72f25eadc86b892b96f7107d088b4943e26f1b9cf96922ad88 SHA512 2fbc4ecb4e5a2e54ac2b6a5a1acb5cb3927515c80593fac91392d496b13b344b33cb493e29f9a38bbc02444e3b87a13471aa6e585710130f2bb904ca382724a9 WHIRLPOOL 52938993a807a7ff24bc0c2b85652a33576f5bf039a7d57df2104f659e5eb101d616aa02fdef160a3fb53dc898a27d4120c19f7aef3686ff1de05ba71cc7535a
+MISC metadata.xml 914 SHA256 062420a5d87f0a4cedb6452aeaffe6d42cf5059f59508aac4c86fefbd18179e2 SHA512 a51975de16515dec059a35494a2c74d13f70a0468395e711cf8c53b5c121b439a0a3b63c755ffcf6caba4ef6def4f927a307a46123f16adcbfa339e4feb921ec WHIRLPOOL 73adfe5debb36cd4041f92a67a60650f7e83045d600fc4ec9e8e228b960ee256f18d09be97f6f78c376f509a11b9bcbe84ba6b66c352183332fdbbd25e354d84
diff --git a/media-plugins/vdr-xineliboutput/files/confd-1.0.0_pre6 b/media-plugins/vdr-xineliboutput/files/confd-1.0.0_pre6
new file mode 100644
index 000000000000..b4fab7ff9690
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/files/confd-1.0.0_pre6
@@ -0,0 +1,27 @@
+#
+# Usage examples (VDR plugin)
+#
+# If no arguments are given, both X11 and framebuffer frontends are tried.
+# First working frontend is used with best available video driver.
+# Complete list of available command-line arguments can be obtained
+# with "vdr --help".
+#
+# Only local frontend, X11/Xv video, alsa audio:
+# _EXTRAOPTS="--local=sxfe --video=xv --audio=alsa --noremote"
+#
+# Only local frontend, (slow) X11 video, oss audio:
+# _EXTRAOPTS="--local=sxfe --video=x11 --audio=oss --noremote"
+#
+# Only local frontend, DirectFB:
+# _EXTRAOPTS="--local=fbfe --video=DirectFB --noremote"
+#
+# Only remote frontend(s):
+# _EXTRAOPTS="--local=none --remote=37890"
+#
+# Local and remote frontends:
+# _EXTRAOPTS="--local=sxfe --remote=37890"
+# or
+# _EXTRAOPTS="--local=fbfe --remote=37890"
+#
+#
+_EXTRAOPTS="--local=none --remote=37890"
diff --git a/media-plugins/vdr-xineliboutput/files/confd-2.0.0 b/media-plugins/vdr-xineliboutput/files/confd-2.0.0
new file mode 100644
index 000000000000..07da46ff5d21
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/files/confd-2.0.0
@@ -0,0 +1,50 @@
+#
+# Usage examples (VDR plugin)
+#
+# If no arguments are given, both X11 and framebuffer frontends are tried.
+# First working frontend is used with best available video driver.
+# Complete list of available command-line arguments can be obtained
+# with "vdr --help".
+#
+# Only local frontend, X11/Xv video, alsa audio:
+# _EXTRAOPTS="--local=sxfe --video=xv --audio=alsa --noremote"
+#
+# Only local frontend, (slow) X11 video, oss audio:
+# _EXTRAOPTS="--local=sxfe --video=x11 --audio=oss --noremote"
+#
+# Only local frontend, DirectFB:
+# _EXTRAOPTS="--local=fbfe --video=DirectFB --noremote"
+#
+# Only remote frontend(s):
+# _EXTRAOPTS="--local=none --remote=37890"
+#
+# Local and remote frontends:
+# _EXTRAOPTS="--local=sxfe --remote=37890"
+# or
+# _EXTRAOPTS="--local=fbfe --remote=37890"
+#
+#
+_EXTRAOPTS="--local=none --remote=37890"
+
+###################################################
+# start sxfe remote frontend #
+###################################################
+#
+# We do not add any start up paramaters by default
+# Please refer for detailed info to
+# media-plugins/vdr-xineliboutput README
+# --> Using remote frontends
+#
+# Example:
+# --display=:1.0 --silent --fullscreen --syslog --reconnect xvdr://localhost &>/dev/null
+#
+# init script --> vdr-frontend
+#
+# DEBUG REQUEST: do we need sxfb support? feedback please!
+#
+# sxfe start parameter
+# allowed values: see README
+# default: no paramters given
+#
+#REMOTE_FRONTEND=""
+
diff --git a/media-plugins/vdr-xineliboutput/files/vdr-frontend b/media-plugins/vdr-xineliboutput/files/vdr-frontend
new file mode 100644
index 000000000000..4159a5ec402e
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/files/vdr-frontend
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Start xineliboutput sxfe/sxfb remote frontend"
+
+source /etc/conf.d/vdr.xineliboutput
+
+command="/usr/bin/vdr-sxfe"
+command_args="${REMOTE_FRONTEND}"
+pidfile="/var/run/vdr-frontend.pid"
+start_stop_daemon_args="--user vdr --group vdr --make-pidfile --background"
diff --git a/media-plugins/vdr-xineliboutput/metadata.xml b/media-plugins/vdr-xineliboutput/metadata.xml
new file mode 100644
index 000000000000..9377b8a46e1f
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <longdescription>
+ Video Disk Recorder Xinelib PlugIn ( VDR )
+ </longdescription>
+ <use>
+ <flag name="cec">Enable CEC support through <pkg>dev-libs/libcec</pkg></flag>
+ <flag name="bluray">Enable BluRay metadata support through <pkg>media-libs/libbluray</pkg></flag>
+ <flag name="libextractor">Use <pkg>media-libs/libextractor</pkg> to gather
+ files' metadata in media-player</flag>
+ <flag name="vdr">Compile the vdr output plugin to use local or remote xine as output</flag>
+ <flag name="xine">Compile the xine input plugin for displaying vdr video and OSD</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">xineliboutput</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.1.0.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.1.0.ebuild
new file mode 100644
index 000000000000..5eace810e33c
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.1.0.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+GENTOO_VDR_CONDITIONAL=yes
+
+DESCRIPTION="Video Disk Recorder Xinelib PlugIn"
+HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
+SRC_URI="mirror://sourceforge/${PN#vdr-}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="bluray caps dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
+
+COMMON_DEPEND="
+ vdr? (
+ >=media-video/vdr-1.6.0
+ libextractor? ( >=media-libs/libextractor-0.5.20 )
+ caps? ( sys-libs/libcap )
+ )
+
+ xine? (
+ ( >=media-libs/xine-lib-1.2
+ virtual/ffmpeg )
+ fbcon? ( jpeg? ( virtual/jpeg:* ) )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ xinerama? ( x11-libs/libXinerama )
+ dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
+ vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
+ jpeg? ( virtual/jpeg:* )
+ bluray? ( media-libs/libbluray )
+ opengl? ( virtual/opengl )
+ )
+ )"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ sys-kernel/linux-headers
+ nls? ( sys-devel/gettext )
+ xine? (
+ X? (
+ x11-proto/xproto
+ x11-libs/libXxf86vm
+ )
+ )"
+RDEPEND="${COMMON_DEPEND}"
+
+REQUIRED_USE=" || ( vdr xine )"
+
+VDR_CONFD_FILE="${FILESDIR}/confd-1.0.0_pre6"
+
+pkg_setup() {
+ vdr-plugin-2_pkg_setup
+
+ if use xine; then
+ XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
+ [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
+ fi
+}
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ if has_version ">=media-video/vdr-2.1.2"; then
+ sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \
+ -i config.c menu.c tools/udp_pes_scheduler.c
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ if has_version ">=media-libs/xine-lib-1.2"; then
+ myconf="${myconf} --enable-libavutil"
+ else
+ myconf="${myconf} --disable-libavutil"
+ fi
+
+ # No autotools based configure script
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cxx=$(tc-getCXX) \
+ $(use_enable X x11) \
+ $(use_enable X xshm) \
+ $(use_enable X xdpms) \
+ $(use_enable X xshape) \
+ $(use_enable X xrender) \
+ $(use_enable fbcon fb) \
+ $(use_enable vdr) \
+ $(use_enable xine libxine) \
+ $(use_enable libextractor) \
+ $(use_enable caps libcap) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable xinerama) \
+ $(use_enable vdpau) \
+ $(use_enable dbus dbus-glib-1) \
+ $(use_enable nls i18n) \
+ $(use_enable bluray libbluray) \
+ $(use_enable opengl) \
+ ${myconf} \
+ || die
+
+ # UINT64_C is needed by ffmpeg headers
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+}
+
+src_install() {
+ if use vdr; then
+ vdr-plugin-2_src_install
+
+ # bug 346989
+ insinto /etc/vdr/plugins/xineliboutput/
+ doins examples/allowed_hosts.conf
+ fowners -R vdr:vdr /etc/vdr/
+
+ if use nls; then
+ emake DESTDIR="${D}" i18n
+ fi
+
+ if use xine; then
+ insinto $XINE_PLUGIN_DIR
+ doins xineplug_inp_xvdr.so
+
+ insinto $XINE_PLUGIN_DIR/post
+ doins xineplug_post_*.so
+
+ if use fbcon; then
+ dobin vdr-fbfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-fbfe.so.*
+ fi
+
+ if use X; then
+ dobin vdr-sxfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-sxfe.so.*
+ fi
+ fi
+ else
+ emake DESTDIR="${D}" install
+
+ dodoc HISTORY README
+ fi
+}
diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0.ebuild
new file mode 100644
index 000000000000..570df0c7c24a
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+GENTOO_VDR_CONDITIONAL=yes
+
+DESCRIPTION="VDR Plugin: Xinelib PlugIn"
+HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
+SRC_URI="mirror://sourceforge/${PN#vdr-}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="bluray caps dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
+
+COMMON_DEPEND="
+ vdr? (
+ >=media-video/vdr-1.6.0
+ libextractor? ( >=media-libs/libextractor-0.5.20 )
+ caps? ( sys-libs/libcap )
+ )
+
+ xine? (
+ ( >=media-libs/xine-lib-1.2
+ virtual/ffmpeg )
+ fbcon? ( jpeg? ( virtual/jpeg:* ) )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ xinerama? ( x11-libs/libXinerama )
+ dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
+ vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
+ jpeg? ( virtual/jpeg:* )
+ bluray? ( media-libs/libbluray )
+ opengl? ( virtual/opengl )
+ )
+ )"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ sys-kernel/linux-headers
+ nls? ( sys-devel/gettext )
+ xine? (
+ X? (
+ x11-proto/xproto
+ x11-libs/libXxf86vm
+ )
+ )"
+RDEPEND="${COMMON_DEPEND}"
+
+REQUIRED_USE=" || ( vdr xine )"
+
+VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
+
+pkg_setup() {
+ vdr-plugin-2_pkg_setup
+
+ if use xine; then
+ XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
+ [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ if has_version ">=media-libs/xine-lib-1.2"; then
+ myconf="${myconf} --enable-libavutil"
+ else
+ myconf="${myconf} --disable-libavutil"
+ fi
+
+ # No autotools based configure script
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cxx=$(tc-getCXX) \
+ $(use_enable X x11) \
+ $(use_enable X xshm) \
+ $(use_enable X xdpms) \
+ $(use_enable X xshape) \
+ $(use_enable X xrender) \
+ $(use_enable fbcon fb) \
+ $(use_enable vdr) \
+ $(use_enable xine libxine) \
+ $(use_enable libextractor) \
+ $(use_enable caps libcap) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable xinerama) \
+ $(use_enable vdpau) \
+ $(use_enable dbus dbus-glib-1) \
+ $(use_enable nls i18n) \
+ $(use_enable bluray libbluray) \
+ $(use_enable opengl) \
+ ${myconf} \
+ || die
+}
+
+src_install() {
+ if use vdr; then
+ vdr-plugin-2_src_install
+
+ # bug 346989
+ insinto /etc/vdr/plugins/xineliboutput/
+ doins examples/allowed_hosts.conf
+ fowners -R vdr:vdr /etc/vdr/
+
+ if use nls; then
+ emake DESTDIR="${D}" i18n
+ fi
+
+ if use xine; then
+ doinitd "${FILESDIR}"/vdr-frontend
+
+ insinto $XINE_PLUGIN_DIR
+ doins xineplug_inp_xvdr.so
+
+ insinto $XINE_PLUGIN_DIR/post
+ doins xineplug_post_*.so
+
+ if use fbcon; then
+ dobin vdr-fbfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-fbfe.so.*
+ fi
+
+ if use X; then
+ dobin vdr-sxfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-sxfe.so.*
+ fi
+ fi
+ else
+ emake DESTDIR="${D}" install
+
+ dodoc HISTORY README
+ fi
+}
diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20130821.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20130821.ebuild
new file mode 100644
index 000000000000..ba800d6eb61f
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20130821.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+GENTOO_VDR_CONDITIONAL=yes
+
+DESCRIPTION="VDR Plugin: Xinelib PlugIn"
+HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
+MY_P=${PN#vdr-}-${PV/_pre/_p}
+SRC_URI="http://vdr.websitec.de/download/${PN}/${MY_P}.tar.bz2"
+S=${WORKDIR}/${MY_P}
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="bluray caps dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
+
+COMMON_DEPEND="
+ vdr? (
+ >=media-video/vdr-1.6.0
+ libextractor? ( >=media-libs/libextractor-0.5.20 )
+ caps? ( sys-libs/libcap )
+ )
+
+ xine? (
+ ( >=media-libs/xine-lib-1.2
+ virtual/ffmpeg )
+ fbcon? ( jpeg? ( virtual/jpeg:* ) )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ xinerama? ( x11-libs/libXinerama )
+ dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
+ vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
+ jpeg? ( virtual/jpeg:* )
+ bluray? ( media-libs/libbluray )
+ opengl? ( virtual/opengl )
+ )
+ )"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ sys-kernel/linux-headers
+ nls? ( sys-devel/gettext )
+ xine? (
+ X? (
+ x11-proto/xproto
+ x11-libs/libXxf86vm
+ )
+ )"
+RDEPEND="${COMMON_DEPEND}"
+
+REQUIRED_USE=" || ( vdr xine )"
+
+VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
+
+pkg_setup() {
+ vdr-plugin-2_pkg_setup
+
+ if use xine; then
+ XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
+ [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
+ fi
+}
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ if has_version ">=media-video/vdr-2.1.10"; then
+ sed -e "s:pm = RenderPixmaps():pm = dynamic_cast<cPixmapMemory *>(RenderPixmaps()):"\
+ -e "s:delete pm;:DestroyPixmap(pm);:"\
+ -i osd.c
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ if has_version ">=media-libs/xine-lib-1.2"; then
+ myconf="${myconf} --enable-libavutil"
+ else
+ myconf="${myconf} --disable-libavutil"
+ fi
+
+ # No autotools based configure script
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cxx=$(tc-getCXX) \
+ $(use_enable X x11) \
+ $(use_enable X xshm) \
+ $(use_enable X xdpms) \
+ $(use_enable X xshape) \
+ $(use_enable X xrender) \
+ $(use_enable fbcon fb) \
+ $(use_enable vdr) \
+ $(use_enable xine libxine) \
+ $(use_enable libextractor) \
+ $(use_enable caps libcap) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable xinerama) \
+ $(use_enable vdpau) \
+ $(use_enable dbus dbus-glib-1) \
+ $(use_enable nls i18n) \
+ $(use_enable bluray libbluray) \
+ $(use_enable opengl) \
+ ${myconf} \
+ || die
+
+ # UINT64_C is needed by ffmpeg headers
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+}
+
+src_install() {
+ if use vdr; then
+ vdr-plugin-2_src_install
+
+ # bug 346989
+ insinto /etc/vdr/plugins/xineliboutput/
+ doins examples/allowed_hosts.conf
+ fowners -R vdr:vdr /etc/vdr/
+
+ if use nls; then
+ emake DESTDIR="${D}" i18n
+ fi
+
+ if use xine; then
+ doinitd "${FILESDIR}"/vdr-frontend
+
+ insinto $XINE_PLUGIN_DIR
+ doins xineplug_inp_xvdr.so
+
+ insinto $XINE_PLUGIN_DIR/post
+ doins xineplug_post_*.so
+
+ if use fbcon; then
+ dobin vdr-fbfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-fbfe.so.*
+ fi
+
+ if use X; then
+ dobin vdr-sxfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-sxfe.so.*
+ fi
+ fi
+ else
+ emake DESTDIR="${D}" install
+
+ dodoc HISTORY README
+ fi
+}
diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20150220.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20150220.ebuild
new file mode 100644
index 000000000000..6f0aac3f5d5d
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-2.0.0_pre20150220.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+GENTOO_VDR_CONDITIONAL=yes
+
+DESCRIPTION="VDR Plugin: Xinelib PlugIn"
+HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
+MY_PV=${PV/_pre/_p}
+SRC_URI="http://vdr.websitec.de/download/${PN}/${PN}-${MY_PV}.tar.xz"
+S="${WORKDIR}/${VDRPLUGIN}-${MY_PV}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="bluray caps dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
+
+COMMON_DEPEND="
+ vdr? (
+ >=media-video/vdr-1.6.0
+ libextractor? ( >=media-libs/libextractor-0.5.20 )
+ caps? ( sys-libs/libcap )
+ )
+
+ xine? (
+ ( >=media-libs/xine-lib-1.2
+ virtual/ffmpeg )
+ fbcon? ( jpeg? ( virtual/jpeg:* ) )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ xinerama? ( x11-libs/libXinerama )
+ dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
+ vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
+ jpeg? ( virtual/jpeg:* )
+ bluray? ( media-libs/libbluray )
+ opengl? ( virtual/opengl )
+ )
+ )"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ sys-kernel/linux-headers
+ nls? ( sys-devel/gettext )
+ xine? (
+ X? (
+ x11-proto/xproto
+ x11-libs/libXxf86vm
+ )
+ )"
+RDEPEND="${COMMON_DEPEND}"
+
+REQUIRED_USE=" || ( vdr xine )"
+
+VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
+
+pkg_setup() {
+ vdr-plugin-2_pkg_setup
+
+ if use xine; then
+ XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
+ [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ if has_version ">=media-libs/xine-lib-1.2"; then
+ myconf="${myconf} --enable-libavutil"
+ else
+ myconf="${myconf} --disable-libavutil"
+ fi
+
+ # No autotools based configure script
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cxx=$(tc-getCXX) \
+ $(use_enable X x11) \
+ $(use_enable X xshm) \
+ $(use_enable X xdpms) \
+ $(use_enable X xshape) \
+ $(use_enable X xrender) \
+ $(use_enable fbcon fb) \
+ $(use_enable vdr) \
+ $(use_enable xine libxine) \
+ $(use_enable libextractor) \
+ $(use_enable caps libcap) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable xinerama) \
+ $(use_enable vdpau) \
+ $(use_enable dbus dbus-glib-1) \
+ $(use_enable nls i18n) \
+ $(use_enable bluray libbluray) \
+ $(use_enable opengl) \
+ ${myconf} \
+ || die
+
+ # UINT64_C is needed by ffmpeg headers
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+}
+
+src_install() {
+ if use vdr; then
+ vdr-plugin-2_src_install
+
+ # bug 346989
+ insinto /etc/vdr/plugins/xineliboutput/
+ doins examples/allowed_hosts.conf
+ fowners -R vdr:vdr /etc/vdr/
+
+ if use nls; then
+ emake DESTDIR="${D}" i18n
+ fi
+
+ if use xine; then
+ doinitd "${FILESDIR}"/vdr-frontend
+
+ insinto $XINE_PLUGIN_DIR
+ doins xineplug_inp_xvdr.so
+
+ insinto $XINE_PLUGIN_DIR/post
+ doins xineplug_post_*.so
+
+ if use fbcon; then
+ dobin vdr-fbfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-fbfe.so.*
+ fi
+
+ if use X; then
+ dobin vdr-sxfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-sxfe.so.*
+ fi
+ fi
+ else
+ emake DESTDIR="${D}" install
+
+ dodoc HISTORY README
+ fi
+}
diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
new file mode 100644
index 000000000000..b3c8f7c0edad
--- /dev/null
+++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
@@ -0,0 +1,160 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GENTOO_VDR_CONDITIONAL=yes
+
+inherit vdr-plugin-2 cvs toolchain-funcs
+
+DESCRIPTION="Video Disk Recorder Xinelib PlugIn"
+HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
+
+ECVS_SERVER="xineliboutput.cvs.sourceforge.net:/cvsroot/xineliboutput"
+ECVS_MODULE="${PN}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS=""
+IUSE="bluray caps cec dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
+
+COMMON_DEPEND="
+ vdr? (
+ >=media-video/vdr-1.6.0
+ libextractor? ( >=media-libs/libextractor-0.5.20 )
+ caps? ( sys-libs/libcap )
+ )
+
+ xine? (
+ ( >=media-libs/xine-lib-1.2
+ virtual/ffmpeg )
+ fbcon? ( jpeg? ( virtual/jpeg:* ) )
+ X? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ xinerama? ( x11-libs/libXinerama )
+ dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
+ vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
+ jpeg? ( virtual/jpeg:* )
+ bluray? ( media-libs/libbluray )
+ opengl? ( virtual/opengl )
+ )
+ )
+
+ cec? ( dev-libs/libcec )"
+
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ sys-kernel/linux-headers
+ nls? ( sys-devel/gettext )
+ xine? (
+ X? (
+ x11-proto/xproto
+ x11-libs/libXxf86vm
+ )
+ )"
+RDEPEND="${COMMON_DEPEND}"
+
+S=${WORKDIR}/${PN}
+VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
+
+pkg_setup() {
+ if ! use vdr && ! use xine; then
+ die "You either need at least one of these flags: vdr xine"
+ fi
+
+ vdr-plugin-2_pkg_setup
+
+ if use xine; then
+ XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
+ [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
+ fi
+}
+
+src_prepare() {
+ # Allow user patches to be applied without modifyfing the ebuild
+ epatch_user
+
+ vdr-plugin-2_src_prepare
+
+ # UINT64_C is needed by ffmpeg headers
+ append-cxxflags -D__STDC_CONSTANT_MACROS
+}
+
+src_configure() {
+ local myconf
+
+ if has_version ">=media-libs/xine-lib-1.2"; then
+ myconf="${myconf} --enable-libavutil"
+ else
+ myconf="${myconf} --disable-libavutil"
+ fi
+
+ # No autotools based configure script
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cxx=$(tc-getCXX) \
+ $(use_enable X x11) \
+ $(use_enable X xshm) \
+ $(use_enable X xdpms) \
+ $(use_enable X xshape) \
+ $(use_enable X xrender) \
+ $(use_enable fbcon fb) \
+ $(use_enable vdr) \
+ $(use_enable xine libxine) \
+ $(use_enable libextractor) \
+ $(use_enable caps libcap) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable xinerama) \
+ $(use_enable vdpau) \
+ $(use_enable dbus dbus-glib-1) \
+ $(use_enable nls i18n) \
+ $(use_enable bluray libbluray) \
+ $(use_enable opengl) \
+ $(use_enable cec libcec) \
+ ${myconf} \
+ || die
+}
+
+src_install() {
+ if use vdr; then
+ vdr-plugin-2_src_install
+
+ # bug 346989
+ insinto /etc/vdr/plugins/xineliboutput/
+ doins examples/allowed_hosts.conf
+ fowners -R vdr:vdr /etc/vdr/
+
+ if use nls; then
+ emake DESTDIR="${D}" i18n
+ fi
+
+ if use xine; then
+ doinitd "${FILESDIR}"/vdr-frontend
+
+ insinto $XINE_PLUGIN_DIR
+ doins xineplug_inp_xvdr.so
+
+ insinto $XINE_PLUGIN_DIR/post
+ doins xineplug_post_*.so
+
+ if use fbcon; then
+ dobin vdr-fbfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-fbfe.so.*
+ fi
+
+ if use X; then
+ dobin vdr-sxfe
+
+ insinto $VDR_PLUGIN_DIR
+ doins libxineliboutput-sxfe.so.*
+ fi
+ fi
+ else
+ emake DESTDIR="${D}" install
+
+ dodoc HISTORY README
+ fi
+}