summaryrefslogtreecommitdiff
blob: 01604f353b61d78e5e1d977b725633eb0b4dc343 (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
53
54
55
# Copyright 2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Seemant Kulleen <seemant@gentoo.org> 
# $Header: /var/cvsroot/gentoo-x86/media-video/avi4xmms/avi4xmms-0.1-r1.ebuild,v 1.2 2002/05/27 17:27:38 drobbins Exp $

S=${WORKDIR}/${PN}
DESCRIPTION="A plugin for XMMS to play AVI/DivX/ASF movies"
SRC_URI="mirror://sourceforge/my-xmms-plugs/${P}.tar.gz"
HOMEPAGE="http://sourceforge.net/projects/my-xmms-plugs/"

DEPEND="virtual/glibc
	>=media-video/avifile-0.7.4.20020426-r2
	>=media-sound/xmms-1.2.7-r6"

src_unpack() {

	unpack ${A}

	cd ${S}
	patch -p1 < ${FILESDIR}/${P}-avif0.7.patch || die
}

src_compile() {

	libtoolize --copy --force

    ./configure \
		--prefix=/usr \
		--host=${CHOST} || die

    emake || die
}

src_install () {

    make \
		libdir=/usr/lib/xmms/Input \
		DESTDIR=${D} install || die

    dodoc AUTHORS COPYING ChangeLog README TODO
}

pkg_postinst() {
	
	einfo
	einfo "**************************************************************"
	einfo "  For avi4xmms to work, you need to remerge xmms with \"avi\""
	einfo "  in your USE flags if you havent at the time."
	einfo
	einfo "  # USE=\"avi\" emerge xmms"
	einfo
	einfo "**************************************************************"
	einfo
}