summaryrefslogtreecommitdiff
blob: d88adb566dc76d074d4b781c1baafe130e421a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Martin Schlemmer <azarah@gentoo.org>

S=${WORKDIR}/${P}
DESCRIPTION="Xine is a free gpl-licensed video player for unix-like systems"
SRC_URI="http://skyblade.homeip.net/xine/XINE-${PV}/source.TAR.BZ2s/xine-ui-${PV}.tar.bz2"
HOMEPAGE="http://xine.sourceforge.net/"

DEPEND="virtual/glibc
	>=media-libs/libdvdcss-0.0.3
	>=media-libs/libdvdread-0.9.1
	>=media-video/xine-lib-0.9.1
	X? ( virtual/x11 )
	esd? ( media-sound/esound )
	aalib? ( media-libs/aalib )
	arts? ( kde-base/kdelibs )
	alsa? ( media-libs/alsa-lib )"


src_compile() {

	# Most of these are not working currently, but are here for completeness
	local myconf
	use X     || myconf="${myconf} --disable-x11 --disable-xv"
	use alsa  || myconf="${myconf} --disable-alsa --disable-alsatest"
	use esd   || myconf="${myconf} --disable-esd --disable-esdtest"
	use aalib || myconf="${myconf} --disable-aalib --disable-aalibtest"
	use arts  || myconf="${myconf} --disable-arts --disable-artstest"
  
	./configure --host=${CHOST}					\
		    --prefix=/usr					\
		    --mandir=/usr/share/man				\
		    --infodir=/usr/share/info				\
		    --sysconfdir=/etc					\
		    ${myconf} || die
	make || die
}

src_install() {
	
	make prefix=${D}/usr						\
	     mandir=${D}/usr/share/man					\
	     infodir=${D}/usr/share/info				\
	     sysconfdir=${D}/etc					\
	     install || die

	dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README
	cd ${S}/doc
	dodoc bug_report_form FAQ* README*
}