blob: b8a434408984953d526d49d66571e643bd4c5d01 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmp4v2/libmp4v2-1.5.0.1.ebuild,v 1.10 2007/03/09 13:31:11 gustavoz Exp $
inherit libtool
DESCRIPTION="libmp4v2 extracted from mpeg4ip"
HOMEPAGE="http://www.mpeg4ip.net/"
SRC_URI="mirror://sourceforge/mpeg4ip/mpeg4ip-${PV}.tar.gz"
LICENSE="MPL-1.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 sh sparc x86 ~x86-fbsd"
IUSE=""
DEPEND=""
RDEPEND="!<media-video/mpeg4ip-1.4.1
!<media-libs/faad2-2.0-r9"
S=${WORKDIR}/mpeg4ip-${PV}
src_unpack() {
unpack ${A}
cd "${S}"
elibtoolize
}
src_compile() {
touch bootstrapped
econf \
--disable-warns-as-err \
--disable-server \
--disable-player \
--disable-mp4live \
--disable-id3tags \
--disable-xvid \
--disable-a52dec \
--disable-mad \
--disable-mpeg2dec \
--disable-srtp \
--disable-mp3lame \
--disable-faac \
--disable-ffmpeg \
--disable-x264 \
|| die "econf failed"
cd "${S}/lib/mp4v2"
sed -i -e 's:SUBDIRS = . test util:SUBDIRS = .:' Makefile \
|| die "sed failed"
emake || die "emake failed"
}
src_install() {
cd "${S}/lib/mp4v2"
make DESTDIR="${D}" install || die
dodoc README INTERNALS API_CHANGES TODO
sed -i -e 's:"mpeg4ip.h":<libmp4v2/mpeg4ip.h>:' \
"${D}/usr/include/mp4.h" || die "sed failed"
dodir /usr/include/libmp4v2
cp "${S}/include/mpeg4ip.h" "${D}/usr/include/libmp4v2/"
sed -i -e 's:mpeg4ip_config.h:libmp4v2/mpeg4ip_config.h:' \
-e 's:"mpeg4ip_version.h":<libmp4v2/mpeg4ip_version.h>:' \
"${D}/usr/include/libmp4v2/mpeg4ip.h" || die "sed failed"
cp "${S}/include/mpeg4ip_version.h" "${D}/usr/include/libmp4v2/"
cp "${S}/mpeg4ip_config.h" "${D}/usr/include/libmp4v2/"
}
|