1 |
yngwin 08/06/21 21:24:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mpeg4ip-1.5.0.1-r5.ebuild |
5 |
Log: |
6 |
Add patches to make mpeg4ip compile with new ffmpeg headers location, thanks to Andrew Church in bug 218105. |
7 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-hh5 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.61 media-video/mpeg4ip/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mpeg4ip/ChangeLog?rev=1.61&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mpeg4ip/ChangeLog?rev=1.61&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mpeg4ip/ChangeLog?r1=1.60&r2=1.61 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/ChangeLog,v |
19 |
retrieving revision 1.60 |
20 |
retrieving revision 1.61 |
21 |
diff -u -r1.60 -r1.61 |
22 |
--- ChangeLog 7 May 2008 21:12:13 -0000 1.60 |
23 |
+++ ChangeLog 21 Jun 2008 21:24:35 -0000 1.61 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for media-video/mpeg4ip |
26 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/ChangeLog,v 1.60 2008/05/07 21:12:13 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/ChangeLog,v 1.61 2008/06/21 21:24:35 yngwin Exp $ |
29 |
+ |
30 |
+*mpeg4ip-1.5.0.1-r5 (21 Jun 2008) |
31 |
+ |
32 |
+ 21 Jun 2008; Ben de Groot <yngwin@g.o> |
33 |
+ +files/mpeg4ip-1.5.0.1-avcodec_extern_c-2.patch, |
34 |
+ +files/mpeg4ip-1.5.0.1-ffmpeg-headers.patch, +mpeg4ip-1.5.0.1-r5.ebuild: |
35 |
+ Add patches to make mpeg4ip compile with new ffmpeg headers location, |
36 |
+ thanks to Andrew Church in bug 218105. |
37 |
|
38 |
07 May 2008; Diego Pettenò <flameeyes@g.o> |
39 |
+files/mpeg4ip-1.5.0.1+gcc-4.3.patch, mpeg4ip-1.5.0.1-r4.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-video/mpeg4ip/mpeg4ip-1.5.0.1-r5.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r5.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r5.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mpeg4ip-1.5.0.1-r5.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2008 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-video/mpeg4ip/mpeg4ip-1.5.0.1-r5.ebuild,v 1.1 2008/06/21 21:24:35 yngwin Exp $ |
53 |
|
54 |
WANT_AUTOMAKE="1.9" |
55 |
|
56 |
inherit eutils multilib autotools |
57 |
|
58 |
DESCRIPTION="MPEG 4 implementation library" |
59 |
HOMEPAGE="http://www.mpeg4ip.net/" |
60 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
61 |
LICENSE="MPL-1.1 LGPL-2 GPL-2 LGPL-2.1 BSD UCL MPEG4" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~ppc ~x86" |
64 |
IUSE="ipv6 mmx v4l2 xvid nas alsa esd arts ffmpeg a52 mpeg2 lame aac id3 player mp4live x264" |
65 |
|
66 |
RDEPEND=" media-libs/libsdl |
67 |
player? ( |
68 |
>=x11-libs/gtk+-2 |
69 |
ffmpeg? ( >=media-video/ffmpeg-0.4.7 ) |
70 |
mpeg2? ( media-libs/libmpeg2 ) |
71 |
id3? ( media-libs/libid3tag ) |
72 |
a52? ( media-libs/a52dec ) |
73 |
) |
74 |
xvid? ( >=media-libs/xvid-0.9.8 ) |
75 |
mp4live? ( |
76 |
>=x11-libs/gtk+-2 |
77 |
lame? ( >=media-sound/lame-3.92 ) |
78 |
aac? ( >=media-libs/faac-1.24-r1 ) |
79 |
ffmpeg? ( >=media-video/ffmpeg-0.4.7 ) |
80 |
x264? ( media-libs/x264 ) |
81 |
) |
82 |
nas? ( media-libs/nas x11-libs/libXt ) |
83 |
alsa? ( media-libs/alsa-lib ) |
84 |
arts? ( kde-base/arts ) |
85 |
esd? ( media-sound/esound ) |
86 |
=media-libs/libmp4v2-1.5.0.1* |
87 |
!<media-libs/faad2-2.0-r9 " |
88 |
|
89 |
DEPEND="${RDEPEND} |
90 |
>=x11-libs/gtk+-2 |
91 |
media-libs/alsa-lib |
92 |
>=dev-libs/glib-2 |
93 |
dev-util/pkgconfig |
94 |
player? ( mmx? ( >=dev-lang/nasm-0.98.19 ) )" |
95 |
|
96 |
pkg_setup() { |
97 |
if ! built_with_use media-libs/libsdl X; |
98 |
then |
99 |
eerror "media-libs/libsdl does not has X support" |
100 |
eerror "You need to rebuild media-libs/libsdl with USE=X" |
101 |
die |
102 |
fi |
103 |
} |
104 |
|
105 |
src_unpack() { |
106 |
unpack ${A} |
107 |
|
108 |
cd "${S}" |
109 |
epatch "${FILESDIR}/mpeg4ip-1.4.1-disable-faac-test.patch" |
110 |
epatch "${FILESDIR}/${P}-x264.patch" |
111 |
epatch "${FILESDIR}/mpeg4ip-1.5.0.1-newffmpeg.patch" |
112 |
epatch "${FILESDIR}/mpeg4ip-1.5.0.1-ffmpeg-headers.patch" |
113 |
epatch "${FILESDIR}/mpeg4ip-1.5.0.1-lX11.patch" |
114 |
epatch "${FILESDIR}/mpeg4ip-1.5.0.1-as-needed.patch" |
115 |
epatch "${FILESDIR}/${P}-gcc42.patch" |
116 |
epatch "${FILESDIR}/${P}-nasm-r.patch" |
117 |
epatch "${FILESDIR}/mpeg4ip-1.5.0.1-avcodec_extern_c-2.patch" |
118 |
epatch "${FILESDIR}/${P}+gcc-4.3.patch" |
119 |
|
120 |
find "${S}" -name Makefile.am -print0 | xargs -0 \ |
121 |
sed -i -e 's:-Werror::' |
122 |
|
123 |
find "${S}" -name configure.in -print0 | xargs -0 \ |
124 |
sed -i -e 's:-Werror::' |
125 |
|
126 |
eautoreconf |
127 |
} |
128 |
|
129 |
src_compile() { |
130 |
local myconf |
131 |
myconf=" --datadir=/usr/share/mpeg4ip |
132 |
$(use_enable ipv6) |
133 |
$(use_enable ppc) |
134 |
$(use_enable player) |
135 |
$(use_enable mp4live) |
136 |
$(use_enable xvid) |
137 |
$(use_enable nas) |
138 |
$(use_enable esd) |
139 |
$(use_enable alsa) |
140 |
$(use_enable arts) |
141 |
--disable-srtp" # need ot add libsrtp to portage |
142 |
|
143 |
# Those are possible for both player and mp4live |
144 |
if use player || use mp4live ; then |
145 |
myconf="${myconf} --enable-gtk-glib |
146 |
$(use_enable ffmpeg)" |
147 |
fi |
148 |
|
149 |
# Those are only relevant for the player |
150 |
use player && myconf="${myconf} |
151 |
$(use_enable mmx) |
152 |
$(use_enable a52 a52dec) |
153 |
$(use_enable mpeg2 mpeg2dec) |
154 |
$(use_enable id3 id3tags)" |
155 |
use player || myconf="${myconf} |
156 |
--disable-a52 |
157 |
--disable-mmx |
158 |
--disable-mpeg2dec |
159 |
--disable-id3tags" |
160 |
|
161 |
# those can only be used for mp4live |
162 |
use mp4live && myconf="${myconf} |
163 |
$(use_enable v4l2) |
164 |
$(use_enable lame mp3lame) |
165 |
$(use_enable aac faac) |
166 |
$(use_enable x264)" |
167 |
# $(use_enable alsa mp4live-alsa) |
168 |
use mp4live || myconf="${myconf} |
169 |
--disable-v4l2 |
170 |
--disable-mp3lame |
171 |
--disable-faac |
172 |
--disable-mp4live-alsa |
173 |
--disable-x264" |
174 |
|
175 |
./bootstrap --prefix=/usr \ |
176 |
--host=${CHOST} \ |
177 |
--mandir=/usr/share/man \ |
178 |
--infodir=/usr/share/info \ |
179 |
--datadir=/usr/share \ |
180 |
--sysconfdir=/etc \ |
181 |
--libdir=/usr/$(get_libdir) \ |
182 |
--localstatedir=/var/lib \ |
183 |
--disable-warns-as-err \ |
184 |
--enable-server \ |
185 |
${EXTRA_ECONF} \ |
186 |
${myconf} || die "configure failed" |
187 |
|
188 |
sed -i -e 's:-Werror::' common/video/iso-mpeg4/src/Makefile || die "sed failed" |
189 |
|
190 |
emake || die "make failed" |
191 |
} |
192 |
|
193 |
src_install () { |
194 |
make install DESTDIR="${D}" || die "make install failed" |
195 |
|
196 |
rm -f "${D}"/usr/include/mp4.h |
197 |
rm -f "${D}"/usr/$(get_libdir)/libmp4v2* |
198 |
|
199 |
dodoc doc/MPEG4IP_Guide.pdf doc/*txt AUTHORS TODO |
200 |
|
201 |
dohtml doc/*.html FEATURES.html || die |
202 |
|
203 |
docinto ietf |
204 |
dodoc doc/ietf/*.txt || die |
205 |
|
206 |
docinto mcast |
207 |
dodoc doc/mcast/mcast.txt doc/mcast/mcast_example doc/mcast/playlist_example || die |
208 |
|
209 |
} |
210 |
|
211 |
|
212 |
|
213 |
-- |
214 |
gentoo-commits@l.g.o mailing list |