summaryrefslogtreecommitdiff
blob: 76d3240ecf82d69e7b8f273cdb7f5d333a25a8f2 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xine-d5d/xine-d5d-0.2.7-r1.ebuild,v 1.6 2003/02/28 16:54:59 liquidx Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Captain CSS menu plugin for the xine media player"
HOMEPAGE="http://www.captaincss.tk/"
SRC_URI="http://debianlinux.net/${P}.tgz"

DEPEND="=media-libs/xine-lib-0.9*"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"

src_unpack() {

	unpack ${A}

	cd ${WORKDIR}
	patch -p0 < ${FILESDIR}/${PF}-gentoo.diff || die "Patching failed"

}

src_compile() {

	econf

	if use ppc || use sparc || use sparc64
	then
		einfo "Configuring for Big-Endian Architecture"
		echo "#define WORDS_BIGENDIAN" >> config.h
	fi
	
	emake || die
}

src_install () {

	make DESTDIR=${D} install || die
	dodoc AUTHORS COPYING ChangeLog INSTALL README NEWS
}