blob: 31d5669345b59e8be135de3ff2b9f77366b4dc69 (
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-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-r1.ebuild,v 1.2 2002/06/08 05:56:38 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_unpack() {
unpack ${A}
cd ${S}
# The Makefile is patched to install the header files as well.
# This patch was generated using the info in the src.rpm that
# SourceForge provides for this package.
patch -p1 < ${FILESDIR}/libmpeg3-gentoo-patch-part1
}
src_compile() {
export CFLAGS=${CFLAGS}
make ${myconf} || die
}
src_install () {
# This patch patches the .h files that get installed into /usr/include
# to show the correct include syntax '<>' instead of '""' This patch
# was also generated using info from SF's src.rpm
patch -p1 < ${FILESDIR}/libmpeg3-gentoo-patch-part2
dodir /usr/bin
make \
DESTDIR=${D}/usr \
install || die
dolib.a ${CHOST%%-*}/libmpeg3.a
dohtml docs/*.html
}
|