diff options
author | 2009-03-24 21:27:28 +0000 | |
---|---|---|
committer | 2009-03-24 21:27:28 +0000 | |
commit | 52b8e92abf987f88402470d6a6caedd618e92b26 (patch) | |
tree | 44aab10e0e4094b3aee1f9ce6d9f3ef54737557e /media-plugins/vdr-xineliboutput | |
parent | Giving up maintainership of this package. (diff) | |
download | gentoo-2-52b8e92abf987f88402470d6a6caedd618e92b26.tar.gz gentoo-2-52b8e92abf987f88402470d6a6caedd618e92b26.tar.bz2 gentoo-2-52b8e92abf987f88402470d6a6caedd618e92b26.zip |
Version bumped. Added use-flags vdr and xine to only compile the selected plugins.
(Portage version: 2.1.6.10/cvs/Linux i686)
Diffstat (limited to 'media-plugins/vdr-xineliboutput')
-rw-r--r-- | media-plugins/vdr-xineliboutput/ChangeLog | 11 | ||||
-rw-r--r-- | media-plugins/vdr-xineliboutput/metadata.xml | 2 | ||||
-rw-r--r-- | media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild | 151 |
3 files changed, 162 insertions, 2 deletions
diff --git a/media-plugins/vdr-xineliboutput/ChangeLog b/media-plugins/vdr-xineliboutput/ChangeLog index 5d633be310ba..83a678392098 100644 --- a/media-plugins/vdr-xineliboutput/ChangeLog +++ b/media-plugins/vdr-xineliboutput/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-plugins/vdr-xineliboutput -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.42 2008/11/03 08:17:45 zzam Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.43 2009/03/24 21:27:28 zzam Exp $ + +*vdr-xineliboutput-1.0.4 (24 Mar 2009) + + 24 Mar 2009; Matthias Schwarzott <zzam@gentoo.org> metadata.xml, + +vdr-xineliboutput-1.0.4.ebuild: + Version bumped. Added use-flags vdr and xine to only compile the selected + plugins. *vdr-xineliboutput-1.0.3 (03 Nov 2008) diff --git a/media-plugins/vdr-xineliboutput/metadata.xml b/media-plugins/vdr-xineliboutput/metadata.xml index 89e69080a6f5..94ce61857b87 100644 --- a/media-plugins/vdr-xineliboutput/metadata.xml +++ b/media-plugins/vdr-xineliboutput/metadata.xml @@ -12,5 +12,7 @@ <use> <flag name='libextractor'>Use <pkg>media-libs/libextract</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> </pkgmetadata> diff --git a/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild new file mode 100644 index 000000000000..f1bc1e5b7fa7 --- /dev/null +++ b/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild,v 1.1 2009/03/24 21:27:28 zzam Exp $ + +GENTOO_VDR_CONDITIONAL=yes + +EAPI="2" + +inherit vdr-plugin eutils multilib versionator + +MY_PV=${PV/_/} +MY_P=${PN}-${MY_PV} + +SO_VERSION="${PV%_p*}" +SO_VERSION="${SO_VERSION/_/}" + +DESCRIPTION="Video Disk Recorder Xinelib PlugIn" +HOMEPAGE="http://sourceforge.net/projects/xineliboutput/" +SRC_URI="mirror://sourceforge/${PN#vdr-}/${MY_P}.tgz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="+vdr +xine fbcon X libextractor" + +# both vdr plugin or vdr-sxfe can use X11 +COMMON_DEPEND=" + vdr? ( >=media-video/vdr-1.4.0 ) + + xine? ( >=media-libs/xine-lib-1.1.1 ) + + media-libs/jpeg + libextractor? ( >=media-libs/libextractor-0.5.20 )" + +DEPEND="${COMMON_DEPEND} + sys-kernel/linux-headers + X? ( + x11-libs/libX11 + x11-libs/libXv + x11-libs/libXext + x11-libs/libXrender + )" +RDEPEND="${COMMON_DEPEND} + X? ( + x11-proto/xextproto + x11-proto/xf86vidmodeproto + x11-proto/xproto + x11-proto/renderproto + )" + + +S=${WORKDIR}/${MY_P#vdr-} + +VDR_CONFD_FILE=${FILESDIR}/confd-1.0.0_pre6 + +pkg_setup() { + vdr-plugin_pkg_setup + + if ! use vdr && ! use xine; then + eerror "Compiling ${PN} with USE='-vdr -xine' is not possible." + eerror "You either need at least one of these flags." + #die "${PN} cannot be used with vdr support and xine support disabled!" + fi +} + +use_onoff() { + if use "$1"; then + echo 1 + else + echo 0 + fi +} + +use_onoff_xine() { + if use xine && use "$1"; then + echo 1 + else + echo 0 + fi +} + +src_prepare() { + vdr-plugin_src_prepare + + if use xine; then + XINE_PLUGIN_DIR=$(xine-config --plugindir) + if [[ ${XINE_PLUGIN_DIR} = "" ]]; then + eerror "Could not find xine plugin dir" + die "Could not find xine plugin dir" + fi + fi + + # stop some automagic overwriting of the stuff we set + sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \ + -e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \ + -i Makefile + + cat >>Make.config <<-EOF + XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine) + XINELIBOUTPUT_VDRPLUGIN = $(use_onoff vdr) + + XINELIBOUTPUT_FB = $(use_onoff_xine fbcon) + XINELIBOUTPUT_X11 = $(use_onoff_xine X) + + HAVE_XRENDER = 1 + HAVE_XDPMS = 1 + HAVE_EXTRACTOR_H = $(use_onoff libextractor) + EOF + + # patching makefile to work with this + # $ rm ${outdir}/file; cp file ${outdir}/file + # work in the sandbox + sed -i Makefile \ + -e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \ + -e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:' + mkdir -p "${WORKDIR}/lib" +} + +src_install() { + if use vdr; then + # install vdr plugin + vdr-plugin_src_install + + # There may be no sub-plugin, depending on use-flags + insinto ${VDR_PLUGIN_DIR} + local f + for f in libxineliboutput*.so.${SO_VERSION}; do + [[ -f "$f" ]] || continue + doins "${f}" || die "could not install sub-plugin ${f}" + done + fi + + if use xine; then + # install xine-plugins + insinto "${XINE_PLUGIN_DIR}" + doins xineplug_inp_*.so + + insinto "${XINE_PLUGIN_DIR}"/post + doins xineplug_post_*.so + + # install xine-based frontends + use fbcon && dobin vdr-fbfe + use X && dobin vdr-sxfe + + fi +} + +pkg_config() { + einfo "emerge --config is not supported" +} + |