summaryrefslogtreecommitdiff
blob: 1b6ae4f24ad5935add72bed38b92e3ef35c82110 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg3/libmpeg3-1.5.ebuild,v 1.1 2002/04/14 12:25:41 seemant Exp $

S=${WORKDIR}/${PN}
DESCRIPTION="An mpeg library for linux"
SRC_URI="http://heroinewarrior.com/${P}.tar.gz"
HOMEPAGE="http://heroinewarrior.com/libmpeg3.php3"

RDEPEND="sys-libs/zlib 
	media-libs/jpeg"

DEPEND="${RDEPEND}
	dev-lang/nasm"

src_compile() {
	
	cp Makefile Makefile.orig

	sed 's:cp $(UTILS) /usr/bin:cp $(UTILS) ${D}/usr/bin:' \
		Makefile.orig > Makefile
	
	export CFLAGS=${CFLAGS}
	make ${myconf} || die
}

src_install () {
	
	dodir /usr/bin
	make install || die
	
	dolib.a ${CHOST%%-*}/libmpeg3.a
	
	insinto /usr/include/libmpeg3/${CHOST%%-*}
	doins *.{h,inc}

	insinto /usr/include/libmpeg3/audio
	doins audio/*.h

	insinto /usr/include/libmpeg3/video
	doins video/*.h

	dohtml docs/*.html

}