1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 GENTOO_VDR_CONDITIONAL=yes
10 DESCRIPTION="VDR Plugin: Xinelib PlugIn"
11 HOMEPAGE="https://sourceforge.net/projects/xineliboutput/"
12 SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tar.xz"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="bluray caps dbus fbcon jpeg libextractor nls opengl +vdr vdpau +X +xine xinerama"
21 >=media-video/vdr-1.6.0
22 libextractor? ( >=media-libs/libextractor-0.5.20 )
23 caps? ( sys-libs/libcap )
27 ( >=media-libs/xine-lib-1.2
29 fbcon? ( jpeg? ( virtual/jpeg:* ) )
34 xinerama? ( x11-libs/libXinerama )
35 dbus? ( dev-libs/dbus-glib dev-libs/glib:2 )
36 vdpau? ( x11-libs/libvdpau >=media-libs/xine-lib-1.2 )
37 jpeg? ( virtual/jpeg:* )
38 bluray? ( media-libs/libbluray )
39 opengl? ( virtual/opengl )
43 DEPEND="${COMMON_DEPEND}
45 sys-kernel/linux-headers
46 nls? ( sys-devel/gettext )
53 RDEPEND="${COMMON_DEPEND}"
55 REQUIRED_USE=" || ( vdr xine )"
57 VDR_CONFD_FILE="${FILESDIR}/confd-2.0.0"
60 vdr-plugin-2_pkg_setup
63 XINE_PLUGIN_DIR=$(pkg-config --variable=plugindir libxine)
64 [ -z "${XINE_PLUGIN_DIR}" ] && die "Could not find xine plugin dir"
71 if has_version ">=media-libs/xine-lib-1.2"; then
72 myconf="${myconf} --enable-libavutil"
74 myconf="${myconf} --disable-libavutil"
77 # No autotools based configure script
82 $(use_enable X xshm) \
83 $(use_enable X xdpms) \
84 $(use_enable X xshape) \
85 $(use_enable X xrender) \
86 $(use_enable fbcon fb) \
88 $(use_enable xine libxine) \
89 $(use_enable libextractor) \
90 $(use_enable caps libcap) \
91 $(use_enable jpeg libjpeg) \
92 $(use_enable xinerama) \
94 $(use_enable dbus dbus-glib-1) \
95 $(use_enable nls i18n) \
96 $(use_enable bluray libbluray) \
97 $(use_enable opengl) \
101 # UINT64_C is needed by ffmpeg headers
102 append-cxxflags -D__STDC_CONSTANT_MACROS
107 vdr-plugin-2_src_install
110 insinto /etc/vdr/plugins/xineliboutput/
111 doins examples/allowed_hosts.conf
112 fowners -R vdr:vdr /etc/vdr/
115 emake DESTDIR="${D}" i18n
119 doinitd "${FILESDIR}"/vdr-frontend
121 insinto $XINE_PLUGIN_DIR
122 doins xineplug_inp_xvdr.so
124 insinto $XINE_PLUGIN_DIR/post
125 doins xineplug_post_*.so
130 insinto $VDR_PLUGIN_DIR
131 doins libxineliboutput-fbfe.so.*
137 insinto $VDR_PLUGIN_DIR
138 doins libxineliboutput-sxfe.so.*
142 emake DESTDIR="${D}" install