summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-07-09 09:59:20 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-07-09 09:59:20 +0000
commit4604a2825b476be41cae9715f86cb46d08ed8344 (patch)
treeb3201783624e2111cd0e7fafe6a91343de0756a5 /media-tv
parentAdded local useflags for xdtv. (diff)
downloadgentoo-2-4604a2825b476be41cae9715f86cb46d08ed8344.tar.gz
gentoo-2-4604a2825b476be41cae9715f86cb46d08ed8344.tar.bz2
gentoo-2-4604a2825b476be41cae9715f86cb46d08ed8344.zip
First version of xdtv (supersedes xawdecode). Applied patches for gcc4 support and amd64 mmx/sse support. Thanks to TGL <degrenier@easyconnect.fr> in bug #48129.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/xdtv/ChangeLog12
-rw-r--r--media-tv/xdtv/Manifest3
-rw-r--r--media-tv/xdtv/files/digest-xdtv-2.2.017
-rw-r--r--media-tv/xdtv/metadata.xml9
-rw-r--r--media-tv/xdtv/xdtv-2.2.0.ebuild197
5 files changed, 238 insertions, 0 deletions
diff --git a/media-tv/xdtv/ChangeLog b/media-tv/xdtv/ChangeLog
new file mode 100644
index 000000000000..b230b85b53bf
--- /dev/null
+++ b/media-tv/xdtv/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for media-tv/xdtv
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/xdtv/ChangeLog,v 1.1 2005/07/09 09:59:20 flameeyes Exp $
+
+*xdtv-2.2.0 (09 Jul 2005)
+
+ 09 Jul 2005; Diego Pettenò <flameeyes@gentoo.org> +metadata.xml,
+ +xdtv-2.2.0.ebuild:
+ First version of xdtv (supersedes xawdecode). Applied patches for gcc4
+ support and amd64 mmx/sse support.
+ Thanks to TGL <degrenier@easyconnect.fr> in bug #48129.
+
diff --git a/media-tv/xdtv/Manifest b/media-tv/xdtv/Manifest
new file mode 100644
index 000000000000..d52dacf64f7c
--- /dev/null
+++ b/media-tv/xdtv/Manifest
@@ -0,0 +1,3 @@
+MD5 0dfc4d0a0cad3dc6b761593f69ac917b metadata.xml 252
+MD5 1256158921ee171a1ce725c635e58f8f xdtv-2.2.0.ebuild 5837
+MD5 1a76927ad3fc30c72aa7648bfd77f065 files/digest-xdtv-2.2.0 1252
diff --git a/media-tv/xdtv/files/digest-xdtv-2.2.0 b/media-tv/xdtv/files/digest-xdtv-2.2.0
new file mode 100644
index 000000000000..559f1298d212
--- /dev/null
+++ b/media-tv/xdtv/files/digest-xdtv-2.2.0
@@ -0,0 +1,17 @@
+MD5 5f8069ae7a64e0907c59de26290d9fe7 xdtv-2.2.0.tar.gz 905162
+MD5 83895a4238faee9cb6522891364c0305 gcc4.patch.tar.gz 1279
+MD5 5a2285c301472d21dabf6c9aacdfcd17 xdtv-2.2.0-amd64.patch 19673
+MD5 285dc136629cf4f0e8d5be5f16f06ac5 libxdtv-i18n-ca-1.1.0.tar.gz 561448
+MD5 b2031d1316675e1d6213605a36c21b72 libxdtv-theme-aqua-ca-1.1.0.tar.gz 323941
+MD5 07f6405dd387c34e27d9304e1276328e libxdtv-i18n-en-1.1.0.tar.gz 515474
+MD5 0c30ffb45421be87aed90bb575cffe96 libxdtv-theme-aqua-en-1.1.0.tar.gz 323978
+MD5 d893caca417dfb8bc6abe412ca02b522 libxdtv-i18n-es-1.1.0.tar.gz 559518
+MD5 c7e6bff5c3331612b76c68f535447599 libxdtv-theme-aqua-es-1.1.0.tar.gz 324308
+MD5 13c1e4d2a314ee99f6c4585f88ce5bc4 libxdtv-i18n-fr-1.1.0.tar.gz 564990
+MD5 ae23a092893bf666f3a6802957886884 libxdtv-theme-aqua-fr-1.1.0.tar.gz 324692
+MD5 f3053eb5da5c665248faed1dcce41a30 libxdtv-i18n-de-1.1.0.tar.gz 557322
+MD5 64fa214fb43763ccd1f7373bab4f3693 libxdtv-theme-aqua-de-1.1.0.tar.gz 321170
+MD5 25d0c5bc88b189ecd1abf117663e3502 libxdtv-i18n-ja-1.1.0.tar.gz 545257
+MD5 fbae34314eb7d87813b2b1a5eb2081c6 libxdtv-theme-aqua-ja-1.1.0.tar.gz 305286
+MD5 2e5fc4bd283ecfa752969269f30b6466 libxdtv-i18n-it-1.1.0.tar.gz 560818
+MD5 a98e2fc519ff3724c63610ccb5fb4d79 libxdtv-theme-aqua-it-1.1.0.tar.gz 323139
diff --git a/media-tv/xdtv/metadata.xml b/media-tv/xdtv/metadata.xml
new file mode 100644
index 000000000000..8a61397520f1
--- /dev/null
+++ b/media-tv/xdtv/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>flameeyes@gentoo.org</email>
+<name>Diego Pettenò</name>
+</maintainer>
+</pkgmetadata>
diff --git a/media-tv/xdtv/xdtv-2.2.0.ebuild b/media-tv/xdtv/xdtv-2.2.0.ebuild
new file mode 100644
index 000000000000..87dcb0ce6445
--- /dev/null
+++ b/media-tv/xdtv/xdtv-2.2.0.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/xdtv/xdtv-2.2.0.ebuild,v 1.1 2005/07/09 09:59:20 flameeyes Exp $
+
+inherit font multilib
+
+IUSE="alsa jpeg encode ffmpeg xvid lirc xinerama divx4linux
+ neXt Xaw3d mmx zvbi aqua_theme xv debug dvb"
+# For use.local.desc:
+# media-tv/xdtv:aqua_theme - Adds the Aqua pixmaps theme for the GUI
+# media-tv/xdtv:zvbi - Enable VBI Decoding Library for Scanning channels with the xdtv_scantv program
+
+DESCRIPTION="TV viewer with support for AVI recording and plugins"
+HOMEPAGE="http://xawdecode.sourceforge.net/"
+
+I18N_EN="libxdtv-i18n-en-1.1.0"
+I18N_FR="libxdtv-i18n-fr-1.1.0"
+I18N_CA="libxdtv-i18n-ca-1.1.0"
+I18N_ES="libxdtv-i18n-es-1.1.0"
+I18N_DE="libxdtv-i18n-de-1.1.0"
+I18N_JA="libxdtv-i18n-ja-1.1.0"
+I18N_IT="libxdtv-i18n-it-1.1.0"
+THEME_AQUA_EN="libxdtv-theme-aqua-en-1.1.0"
+THEME_AQUA_FR="libxdtv-theme-aqua-fr-1.1.0"
+THEME_AQUA_CA="libxdtv-theme-aqua-ca-1.1.0"
+THEME_AQUA_ES="libxdtv-theme-aqua-es-1.1.0"
+THEME_AQUA_DE="libxdtv-theme-aqua-de-1.1.0"
+THEME_AQUA_JA="libxdtv-theme-aqua-ja-1.1.0"
+THEME_AQUA_IT="libxdtv-theme-aqua-it-1.1.0"
+
+DOWNLOADS_URL="mirror://sourceforge/xawdecode"
+SRC_URI="${DOWNLOADS_URL}/${P}.tar.gz
+ ${DOWNLOADS_URL}/gcc4.patch.tar.gz
+ http://digilander.libero.it/dgp85/gentoo/${P}-amd64.patch
+
+ linguas_ca? (
+ ${DOWNLOADS_URL}/${I18N_CA}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_CA}.tar.gz ) )
+ linguas_en? (
+ ${DOWNLOADS_URL}/${I18N_EN}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_EN}.tar.gz ) )
+ linguas_es? (
+ ${DOWNLOADS_URL}/${I18N_ES}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_ES}.tar.gz ) )
+ linguas_fr? (
+ ${DOWNLOADS_URL}/${I18N_FR}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_FR}.tar.gz ) )
+ linguas_de? (
+ ${DOWNLOADS_URL}/${I18N_DE}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_DE}.tar.gz ) )
+ linguas_ja? (
+ ${DOWNLOADS_URL}/${I18N_JA}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_JA}.tar.gz ) )
+ linguas_it? (
+ ${DOWNLOADS_URL}/${I18N_IT}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_IT}.tar.gz ) )
+ !linguas_ca? ( !linguas_es? ( !linguas_fr? ( !linguas_de? ( !linguas_ja? ( !linguas_it? (
+ ${DOWNLOADS_URL}/${I18N_EN}.tar.gz
+ aqua_theme? ( ${DOWNLOADS_URL}/${THEME_AQUA_EN}.tar.gz ) ) ) ) ) ) )"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+
+RDEPEND="virtual/x11
+ zvbi? ( >=media-libs/zvbi-0.2.4 )
+ neXt? ( x11-libs/neXtaw )
+ Xaw3d? ( !neXt? ( x11-libs/Xaw3d ) )
+ divx4linux? ( >=media-libs/divx4linux-20030428 )
+ ffmpeg? ( >=media-video/ffmpeg-0.4.7 )
+ xvid? ( =media-libs/xvid-1* )
+ encode? ( >=media-sound/lame-3.93 )
+ jpeg? ( media-libs/jpeg )
+ lirc? ( app-misc/lirc )
+ alsa? ( >=media-libs/alsa-lib-0.9 )"
+
+FONT_S="${S}/font"
+FONT_SUFFIX="pcf.gz"
+
+extension_iter() {
+ local my_a
+ for my_a in ${A} ; do
+ my_a=${my_a%%.tar.gz}
+ if [ -z ${my_a/libxdtv*/} ] ; then
+ eval ${1} ${my_a} || die "${1}(${my_a}) failed."
+ fi
+ done
+}
+
+extension_compile() {
+ einfo "Building ${1}"
+ cd ${WORKDIR}/${1}
+ sed -i -e 's:CFLAGS=.*:\0 -fPIC:' src/Makefile.in
+
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+extension_install() {
+ einfo "Installing ${1}"
+ cd ${WORKDIR}/${1} \
+ && make DESTDIR=${D} LIBDIR="/usr/$(get_libdir)/${PN}" install
+}
+
+src_unpack() {
+ unpack ${A}
+ # Disable font installation
+ sed -i -e '/^install:/,/^$/s:^\t:#:p' ${S}/font/Makefile.in
+ # Disable /usr/share/xdtv/icons/* installation
+ sed -i -e '/^install-data-local:/,${\:share/xdtv/icons:d}' ${S}/Makefile.in
+
+ cd ${S}
+ epatch ${WORKDIR}/gcc4.patch
+ epatch ${DISTDIR}/${P}-amd64.patch
+
+ autoreconf || die "autoreconf failed"
+ libtoolize --copy --force || die "libtoolize failed"
+}
+
+src_compile() {
+ # Makes the xaw widgets choice deterministic
+ local xawconf="--disable-xaw95 --disable-xawm"
+ if use neXt ; then
+ use Xaw3d && ewarn "Both \"neXt\" and \"Xaw3d\" found in USE. Will use neXtaw widgets."
+ xawconf="${xawconf} --enable-nextaw --disable-xaw3d"
+ elif use Xaw3d ; then
+ xawconf="${xawconf} --disable-nextaw --enable-xaw3d"
+ else
+ xawconf="${xawconf} --disable-nextaw --disable-xaw3d"
+ ewarn "If you want a better GUI toolkit, enable either \"neXt\" or \"Xaw3d\" USE flags."
+ fi
+
+ ( use mmx || use amd64 ) && myconf="${myconf} --enable-mmx" || \
+ myconf="${myconf} --disable-mmx"
+
+ econf ${xawconf} \
+ $(use_enable divx4linux) \
+ $(use_enable alsa) \
+ $(use_enable jpeg) \
+ $(use_enable lirc) \
+ $(use_enable ffmpeg) \
+ $(use_enable xvid) \
+ $(use_enable xinerama) \
+ $(use_enable zvbi) \
+ $(use_enable xv xvideo) \
+ $(use_enable encode lame) \
+ $(use_enable !debug nodebug) \
+ $(use_enable dvb) \
+ --enable-pixmaps \
+ --disable-cpu-detection \
+ ${myconf} \
+ || die "Configuration failed."
+
+ emake OPT="${CFLAGS}" PERF_FLAGS="${CFLAGS}" || die "Compilation failed."
+
+ # Build the extensions (i18n and theme libraries)
+ extension_iter extension_compile
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "Installation failed."
+
+ # .desktop file and default icon
+ domenu gentoo/xdtv.desktop
+ insinto /usr/share/icons
+ doins ${S}/src/xdtv.xpm
+
+ # Install the icons in the hicolor theme
+ for dim in 48 32 16; do
+ insinto /usr/share/icons/hicolor/${dim}x${dim}/apps
+ newins ${S}/xdtv-${dim}.png xdtv.png
+ done
+
+ # Install the led-fixed font with font.eclass
+ gzip font/led-fixed.pcf
+ font_src_install
+
+ # Install documentation
+ dodoc ChangeLog AUTHORS INSTALL FAQ* README.* TODO lisez-moi* \
+ xdtvrc.sample lircrc.*.sample
+ docinto alevt
+ dodoc alevt/README alevt/ReadmeGR alevt/CHANGELOG alevt/COPYRIGHT
+
+ # Install the extensions (i18n and theme libraries)
+ extension_iter extension_install
+}
+
+pkg_postinst() {
+ echo
+ einfo "Please note that this ebuild created a suid-binary:"
+ einfo "/usr/bin/xdtv_v4l-conf"
+ echo
+ einfo "The OSD font has moved. You probably should add"
+ einfo "this path to your X configuration:"
+ einfo "/usr/share/fonts/${PN}"
+ echo
+}