1 |
beandog 07/09/28 15:39:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mplayer-1.0_rc1_p20070927-r1.ebuild |
5 |
Removed: mplayer-1.0_rc1_p20070927.ebuild |
6 |
Log: |
7 |
Fix a52 typo, bug 194079 |
8 |
(Portage version: 2.1.3.9) |
9 |
|
10 |
Revision Changes Path |
11 |
1.528 media-video/mplayer/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.528&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.528&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?r1=1.527&r2=1.528 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v |
20 |
retrieving revision 1.527 |
21 |
retrieving revision 1.528 |
22 |
diff -u -r1.527 -r1.528 |
23 |
--- ChangeLog 27 Sep 2007 15:35:24 -0000 1.527 |
24 |
+++ ChangeLog 28 Sep 2007 15:39:05 -0000 1.528 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for media-video/mplayer |
27 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.527 2007/09/27 15:35:24 beandog Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.528 2007/09/28 15:39:05 beandog Exp $ |
30 |
+ |
31 |
+*mplayer-1.0_rc1_p20070927-r1 (28 Sep 2007) |
32 |
+ |
33 |
+ 28 Sep 2007; Steve Dibb <beandog@g.o> |
34 |
+ -mplayer-1.0_rc1_p20070927.ebuild, +mplayer-1.0_rc1_p20070927-r1.ebuild: |
35 |
+ Fix a52 typo, bug 194079 |
36 |
|
37 |
*mplayer-1.0_rc1_p20070927 (27 Sep 2007) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 media-video/mplayer/mplayer-1.0_rc1_p20070927-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc1_p20070927-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc1_p20070927-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mplayer-1.0_rc1_p20070927-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2007 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_rc1_p20070927-r1.ebuild,v 1.1 2007/09/28 15:39:05 beandog Exp $ |
52 |
|
53 |
inherit eutils flag-o-matic multilib |
54 |
|
55 |
RESTRICT="strip" |
56 |
IUSE="3dnow 3dnowext a52 aac aalib alsa altivec amrnb amrwb arts bidi bl bindist |
57 |
cddb cdio cdparanoia cpudetection custom-cflags dga doc dts dvb directfb dvd |
58 |
dv enca encode esd fbcon ftp gif ggi gtk iconv ipv6 ivtv jack joystick |
59 |
jpeg libcaca lirc live livecd lzo mad md5sum mmx mmxext mp2 mp3 musepack nas |
60 |
nemesi pvr unicode vorbis opengl openal oss png pnm quicktime radio rar real rtc samba sdl speex srt sse sse2 ssse3 svga teletext tga theora tivo truetype v4l v4l2 vidix win32codecs X x264 xanim xinerama xv xvid xvmc zoran" |
61 |
|
62 |
VIDEO_CARDS="s3virge mga tdfx vesa" |
63 |
|
64 |
for X in ${VIDEO_CARDS}; do |
65 |
IUSE="${IUSE} video_cards_${X}" |
66 |
done |
67 |
|
68 |
BLUV="1.7" |
69 |
SVGV="1.9.17" |
70 |
MY_PV="20070927" |
71 |
MY_P="${PN}-${MY_PV}" |
72 |
S="${WORKDIR}/${MY_P}" |
73 |
AMR_URI="http://www.3gpp.org/ftp/Specs/archive" |
74 |
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2 |
75 |
!truetype? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 |
76 |
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 |
77 |
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 ) |
78 |
!iconv? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 |
79 |
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 |
80 |
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 ) |
81 |
gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 ) |
82 |
svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )" |
83 |
|
84 |
DESCRIPTION="Media Player for Linux" |
85 |
HOMEPAGE="http://www.mplayerhq.hu/" |
86 |
|
87 |
RDEPEND="sys-libs/ncurses |
88 |
!livecd? ( |
89 |
!bindist? ( |
90 |
x86? ( |
91 |
win32codecs? ( media-libs/win32codecs ) |
92 |
real? ( media-libs/win32codecs |
93 |
media-video/realplayer ) |
94 |
) |
95 |
amd64? ( real? ( media-libs/amd64codecs ) ) |
96 |
) |
97 |
) |
98 |
aalib? ( media-libs/aalib ) |
99 |
alsa? ( media-libs/alsa-lib ) |
100 |
amrnb? ( media-libs/amrnb ) |
101 |
amrwb? ( media-libs/amrwb ) |
102 |
arts? ( kde-base/arts ) |
103 |
openal? ( media-libs/openal ) |
104 |
bidi? ( dev-libs/fribidi ) |
105 |
cdio? ( dev-libs/libcdio ) |
106 |
cdparanoia? ( media-sound/cdparanoia ) |
107 |
directfb? ( dev-libs/DirectFB ) |
108 |
dts? ( || ( media-libs/libdca media-libs/libdts ) ) |
109 |
dv? ( media-libs/libdv ) |
110 |
dvb? ( media-tv/linuxtv-dvb-headers ) |
111 |
encode? ( |
112 |
aac? ( media-libs/faac ) |
113 |
mp2? ( media-sound/twolame ) |
114 |
mp3? ( media-sound/lame ) |
115 |
) |
116 |
esd? ( media-sound/esound ) |
117 |
enca? ( app-i18n/enca ) |
118 |
gif? ( media-libs/giflib ) |
119 |
ggi? ( media-libs/libggi ) |
120 |
gtk? ( media-libs/libpng |
121 |
x11-libs/libXxf86vm |
122 |
x11-libs/libXext |
123 |
x11-libs/libXi |
124 |
=x11-libs/gtk+-2* ) |
125 |
jpeg? ( media-libs/jpeg ) |
126 |
libcaca? ( media-libs/libcaca ) |
127 |
lirc? ( app-misc/lirc ) |
128 |
lzo? ( >=dev-libs/lzo-2 ) |
129 |
mad? ( media-libs/libmad ) |
130 |
musepack? ( >=media-libs/libmpcdec-1.2.2 ) |
131 |
nas? ( media-libs/nas ) |
132 |
opengl? ( virtual/opengl ) |
133 |
png? ( media-libs/libpng ) |
134 |
pnm? ( media-libs/netpbm ) |
135 |
samba? ( net-fs/samba ) |
136 |
sdl? ( media-libs/libsdl ) |
137 |
speex? ( >=media-libs/speex-1.1.7 ) |
138 |
srt? ( >=media-libs/freetype-2.1 |
139 |
media-libs/fontconfig ) |
140 |
svga? ( media-libs/svgalib ) |
141 |
theora? ( media-libs/libtheora ) |
142 |
live? ( >=media-plugins/live-2007.02.20 ) |
143 |
truetype? ( >=media-libs/freetype-2.1 |
144 |
media-libs/fontconfig ) |
145 |
vidix? ( x11-libs/libXxf86vm |
146 |
x11-libs/libXext ) |
147 |
x264? ( media-libs/x264-svn ) |
148 |
xanim? ( media-video/xanim ) |
149 |
xinerama? ( x11-libs/libXinerama |
150 |
x11-libs/libXxf86vm |
151 |
x11-libs/libXext ) |
152 |
xv? ( x11-libs/libXv |
153 |
x11-libs/libXxf86vm |
154 |
x11-libs/libXext |
155 |
xvmc? ( x11-libs/libXvMC ) ) |
156 |
xvid? ( media-libs/xvid ) |
157 |
X? ( x11-libs/libXxf86vm |
158 |
x11-libs/libXext |
159 |
)" |
160 |
# video_cards_vesa? ( sys-apps/vbetool ) restrict on x86 first |
161 |
|
162 |
DEPEND="${RDEPEND} |
163 |
doc? ( >=app-text/docbook-sgml-dtd-4.1.2 |
164 |
app-text/docbook-xml-dtd |
165 |
>=app-text/docbook-xml-simple-dtd-1.50.0 |
166 |
dev-libs/libxslt |
167 |
) |
168 |
dga? ( x11-proto/xf86dgaproto ) |
169 |
xinerama? ( x11-proto/xineramaproto ) |
170 |
xv? ( x11-proto/videoproto |
171 |
x11-proto/xf86vidmodeproto ) |
172 |
gtk? ( x11-proto/xextproto |
173 |
x11-proto/xf86vidmodeproto ) |
174 |
X? ( x11-proto/xextproto |
175 |
x11-proto/xf86vidmodeproto ) |
176 |
iconv? ( virtual/libiconv )" |
177 |
# Make sure the assembler USE flags are unmasked on amd64 |
178 |
# Remove this once default-linux/amd64/2006.1 is deprecated |
179 |
DEPEND="${DEPEND} amd64? ( >=sys-apps/portage-2.1.2 ) |
180 |
mp2? ( >=sys-apps/portage-2.1.2 ) |
181 |
ivtv? ( media-tv/ivtv |
182 |
>=sys-apps/portage-2.1.2 )" |
183 |
|
184 |
SLOT="0" |
185 |
LICENSE="GPL-2" |
186 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
187 |
|
188 |
pkg_setup() { |
189 |
|
190 |
if [[ -n ${LINGUAS} ]]; then |
191 |
elog "For MPlayer's language support, the configuration will" |
192 |
elog "use your LINGUAS variable from /etc/make.conf. If you have more" |
193 |
elog "than one language enabled, then the first one in the list will" |
194 |
elog "be used to output the messages, if a translation is available." |
195 |
elog "man pages will be created for all languages where translations" |
196 |
elog "are also available." |
197 |
fi |
198 |
|
199 |
} |
200 |
|
201 |
src_unpack() { |
202 |
|
203 |
unpack ${MY_P}.tar.bz2 |
204 |
|
205 |
if ! use truetype ; then |
206 |
unpack font-arial-iso-8859-1.tar.bz2 \ |
207 |
font-arial-iso-8859-2.tar.bz2 \ |
208 |
font-arial-cp1250.tar.bz2 |
209 |
fi |
210 |
|
211 |
use gtk && unpack Blue-${BLUV}.tar.bz2 |
212 |
|
213 |
use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 |
214 |
|
215 |
cd "${S}" |
216 |
|
217 |
# Fix hppa compilation |
218 |
use hppa && sed -i -e "s/-O4/-O1/" "${S}/configure" |
219 |
|
220 |
if use svga; then |
221 |
echo |
222 |
einfo "Enabling vidix non-root mode." |
223 |
einfo "(You need a proper svgalib_helper.o module for your kernel" |
224 |
einfo " to actually use this)" |
225 |
echo |
226 |
|
227 |
mv "${WORKDIR}/svgalib_helper" "${S}/libdha" |
228 |
fi |
229 |
|
230 |
# Remove kernel-2.6 workaround as the problem it works around is |
231 |
# fixed, and the workaround breaks sparc |
232 |
# use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h |
233 |
|
234 |
# minor fix |
235 |
# sed -i -e "s:-O4:-O4 -D__STDC_LIMIT_MACROS:" configure |
236 |
|
237 |
# Fix XShape detection |
238 |
epatch "${FILESDIR}/${PN}-xshape.patch" |
239 |
epatch "${FILESDIR}/${PN}-dpms.patch" |
240 |
} |
241 |
|
242 |
src_compile() { |
243 |
|
244 |
local myconf=" --disable-tv-bsdbt848 \ |
245 |
--disable-faad-external" |
246 |
|
247 |
# MPlayer reads in the LINGUAS variable from make.conf, and sets |
248 |
# the languages accordingly. Some will have to be altered to match |
249 |
# upstream's naming scheme. |
250 |
[[ -n $LINGUAS ]] && LINGUAS=${LINGUAS/da/dk} |
251 |
|
252 |
################ |
253 |
#Optional features# |
254 |
############### |
255 |
use bidi || myconf="${myconf} --disable-fribidi" |
256 |
use bl && myconf="${myconf} --enable-bl" |
257 |
use enca || myconf="${myconf} --disable-enca" |
258 |
use ftp || myconf="${myconf} --disable-ftp" |
259 |
use nemesi || myconf="${myconf} --disable-nemesi" |
260 |
use tivo || myconf="${myconf} --disable-vstream" |
261 |
|
262 |
# libcdio support: prefer libcdio over cdparanoia |
263 |
# don't check for cddb w/cdio |
264 |
if use cdio; then |
265 |
myconf="${myconf} --disable-cdparanoia" |
266 |
else |
267 |
myconf="${myconf} --disable-libcdio" |
268 |
use cdparanoia || myconf="${myconf} --disable-cdparanoia" |
269 |
use cddb || myconf="${myconf} --disable-cddb" |
270 |
fi |
271 |
|
272 |
# DVD support |
273 |
# dvdread and libdvdcss are internal libs |
274 |
# http://www.mplayerhq.hu/DOCS/HTML/en/dvd.html |
275 |
# You can optionally use external dvdread support, but against |
276 |
# upstream's suggestion. We don't. |
277 |
if ! use dvd; then |
278 |
myconf="${myconf} --disable-dvdnav --disable-dvdread" |
279 |
use a52 || myconf="${myconf} --disable-liba52" |
280 |
fi |
281 |
|
282 |
if use encode; then |
283 |
use aac || myconf="${myconf} --disable-faac" |
284 |
use dv || myconf="${myconf} --disable-libdv" |
285 |
use x264 || myconf="${myconf} --disable-x264" |
286 |
else |
287 |
myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264 \ |
288 |
--disable-faac" |
289 |
fi |
290 |
|
291 |
# SRT (subtitles) requires freetype support |
292 |
# freetype support requires iconv |
293 |
# iconv optionally can use unicode |
294 |
if ! use srt; then |
295 |
myconf="${myconf} --disable-ass" |
296 |
if ! use truetype; then |
297 |
myconf="${myconf} --disable-freetype" |
298 |
if ! use iconv; then |
299 |
myconf="${myconf} --disable-iconv --charset=noconv" |
300 |
fi |
301 |
fi |
302 |
fi |
303 |
use iconv && use unicode && myconf="${myconf} --charset=UTF-8" |
304 |
|
305 |
use lirc || myconf="${myconf} --disable-lirc --disable-lircc" |
306 |
myconf="${myconf} $(use_enable joystick)" |
307 |
use ipv6 || myconf="${myconf} --disable-inet6" |
308 |
use rar || myconf="${myconf} --disable-unrarlib" |
309 |
use rtc || myconf="${myconf} --disable-rtc" |
310 |
use samba || myconf="${myconf} --disable-smb" |
311 |
|
312 |
# DVB / Video4Linux / Radio support |
313 |
if ( use dvb || use v4l || use v4l2 || use radio ); then |
314 |
use dvb || myconf="${myconf} --disable-dvb --disable-dvbhead" |
315 |
use v4l || myconf="${myconf} --disable-tv-v4l1" |
316 |
use v4l2 || myconf="${myconf} --disable-tv-v4l2" |
317 |
use teletext || myconf="${myconf} --disable-tv-teletext" |
318 |
use pvr || myconf="${myconf} --disable-pvr" |
319 |
if ( use dvb || use v4l || use v4l2 ) && use radio; then |
320 |
myconf="${myconf} --enable-radio $(use_enable encode radio-capture)" |
321 |
else |
322 |
myconf="${myconf} --disable-radio-v4l2 --disable-radio-bsdbt848" |
323 |
fi |
324 |
else |
325 |
myconf="${myconf} --disable-tv --disable-tv-v4l1 --disable-tv-v4l2 \ |
326 |
--disable-radio --disable-radio-v4l2 --disable-radio-bsdbt848 \ |
327 |
--disable-dvb --disable-dvbhead --disable-tv-teletext \ |
328 |
--disable-pvr" |
329 |
fi |
330 |
|
331 |
######### |
332 |
# Codecs # |
333 |
######## |
334 |
for x in gif jpeg live mad musepack pnm speex tga theora xanim xvid; do |
335 |
use ${x} || myconf="${myconf} --disable-${x}" |
336 |
done |
337 |
use aac || myconf="${myconf} --disable-faad-internal" |
338 |
use amrnb || myconf="${myconf} --disable-libamr_nb" |
339 |
use amrwb || myconf="${myconf} --disable-libamr_wb" |
340 |
use dts || myconf="${myconf} --disable-libdca" |
341 |
! use png && ! use gtk && myconf="${myconf} --disable-png" |
342 |
use lzo || myconf="${myconf} --disable-liblzo" |
343 |
use encode && use mp2 || myconf="${myconf} --disable-twolame \ |
344 |
--disable-toolame" |
345 |
use mp3 || myconf="${myconf} --disable-mp3lib" |
346 |
use quicktime || myconf="${myconf} --disable-qtx" |
347 |
use vorbis || myconf="${myconf} --disable-libvorbis" |
348 |
use xanim && myconf="${myconf} --xanimcodecsdir=/usr/lib/xanim/mods" |
349 |
if use x86 || use amd64; then |
350 |
# Real codec support, only available on x86, amd64 |
351 |
if use real && use x86; then |
352 |
myconf="${myconf} --realcodecsdir=/opt/RealPlayer/codecs" |
353 |
elif use real && use amd64; then |
354 |
myconf="${myconf} --realcodecsdir=/usr/$(get_libdir)/codecs" |
355 |
else |
356 |
myconf="${myconf} --disable-real" |
357 |
fi |
358 |
if ! use livecd && ! use bindist && ! use real; then |
359 |
myconf="${myconf} $(use_enable win32codecs win32dll)" |
360 |
fi |
361 |
fi |
362 |
|
363 |
############# |
364 |
# Video Output # |
365 |
############# |
366 |
|
367 |
for x in directfb ivtv ggi md5sum sdl xinerama; do |
368 |
use ${x} || myconf="${myconf} --disable-${x}" |
369 |
done |
370 |
use aalib || myconf="${myconf} --disable-aa" |
371 |
use dga || myconf="${myconf} --disable-dga1 --disable-dga2" |
372 |
use fbcon || myconf="${myconf} --disable-fbdev" |
373 |
use fbcon && use video_cards_s3virge && myconf="${myconf} --enable-s3fb" |
374 |
use libcaca || myconf="${myconf} --disable-caca" |
375 |
use opengl || myconf="${myconf} --disable-gl" |
376 |
use video_cards_mga && myconf="${myconf} --enable-mga" |
377 |
( use X && use video_cards_mga ) && myconf="${myconf} --enable-xmga" |
378 |
use video_cards_vesa || myconf="${myconf} --disable-vesa" |
379 |
use vidix || myconf="${myconf} --disable-vidix-internal \ |
380 |
--disable-vidix-external" |
381 |
use zoran || myconf="${myconf} --disable-zr" |
382 |
|
383 |
# GTK gmplayer gui |
384 |
myconf="${myconf} $(use_enable gtk gui)" |
385 |
|
386 |
if use xv; then |
387 |
if use xvmc; then |
388 |
myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCW" |
389 |
else |
390 |
myconf="${myconf} --disable-xvmc" |
391 |
fi |
392 |
else |
393 |
myconf="${myconf} --disable-xv --disable-xvmc" |
394 |
fi |
395 |
|
396 |
if use video_cards_tdfx; then |
397 |
myconf="${myconf} $(use_enable video_cards_tdfx tdfxvid) \ |
398 |
$(use_enable fbcon tdfxfb)" |
399 |
else |
400 |
myconf="${myconf} --disable-3dfx --disable-tdfxvid --disable-tdfxfb" |
401 |
fi |
402 |
|
403 |
############# |
404 |
# Audio Output # |
405 |
############# |
406 |
for x in alsa arts esd jack nas openal; do |
407 |
use ${x} || myconf="${myconf} --disable-${x}" |
408 |
done |
409 |
if ! use radio; then |
410 |
use oss || myconf="${myconf} --disable-ossaudio" |
411 |
fi |
412 |
################# |
413 |
# Advanced Options # |
414 |
################# |
415 |
# Platform specific flags, hardcoded on amd64 (see below) |
416 |
if use x86 || use amd64 || use ppc; then |
417 |
if use cpudetection || use livecd || use bindist; then |
418 |
myconf="${myconf} --enable-runtime-cpudetection" |
419 |
fi |
420 |
fi |
421 |
if use mmx; then |
422 |
for x in 3dnow 3dnowext mmxext sse sse2 ssse3; do |
423 |
use ${x} || myconf="${myconf} --disable-${x}" |
424 |
done |
425 |
else |
426 |
myconf="${myconf} --disable-mmx --disable-mmxext --disable-sse \ |
427 |
--disable-sse2 --disable-ssse3 --disable-3dnow \ |
428 |
--disable-3dnowext" |
429 |
fi |
430 |
|
431 |
# debug broken in this release |
432 |
# use debug && myconf="${myconf} --enable-debug=3" |
433 |
|
434 |
if use altivec; then |
435 |
myconf="${myconf} --enable-altivec" |
436 |
else |
437 |
myconf="${myconf} --disable-altivec" |
438 |
fi |
439 |
|
440 |
if [ -e /dev/.devfsd ]; then |
441 |
myconf="${myconf} --enable-linux-devfs" |
442 |
fi |
443 |
|
444 |
#leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. |
445 |
# it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. |
446 |
# it *will* be removed asap; in the meantime, doesn't hurt anything. |
447 |
echo "${myconf}" > ${T}/configure-options |
448 |
|
449 |
if use custom-cflags; then |
450 |
# let's play the filtration game! MPlayer hates on all! |
451 |
strip-flags |
452 |
# ugly optimizations cause MPlayer to cry on x86 systems! |
453 |
if use x86 ; then |
454 |
replace-flags -O* -O2 |
455 |
filter-flags -fPIC -fPIE |
456 |
|
457 |
# debug broken in this release |
458 |
# use debug || append-flags -fomit-frame-pointer |
459 |
append-flags -fomit-frame-pointer |
460 |
fi |
461 |
append-flags -D__STDC_LIMIT_MACROS |
462 |
else |
463 |
unset CFLAGS CXXFLAGS |
464 |
fi |
465 |
|
466 |
myconf="--cc=$(tc-getCC) \ |
467 |
--host-cc=$(tc-getBUILD_CC) \ |
468 |
--prefix=/usr \ |
469 |
--confdir=/etc/mplayer \ |
470 |
--datadir=/usr/share/mplayer \ |
471 |
--libdir=/usr/$(get_libdir) \ |
472 |
--enable-largefiles \ |
473 |
--enable-menu \ |
474 |
--enable-network \ |
475 |
${myconf}" |
476 |
einfo "Running ./configure" |
477 |
echo "CFLAGS=\"${CFLAGS}\" ./configure ${myconf}" |
478 |
CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died" |
479 |
|
480 |
einfo "Make" |
481 |
emake || die "Failed to build MPlayer!" |
482 |
use doc && make -C DOCS/xml html-chunked |
483 |
einfo "Make completed" |
484 |
} |
485 |
|
486 |
src_install() { |
487 |
|
488 |
einfo "Make install" |
489 |
make prefix=${D}/usr \ |
490 |
BINDIR=${D}/usr/bin \ |
491 |
LIBDIR=${D}/usr/$(get_libdir) \ |
492 |
CONFDIR=${D}/etc/mplayer \ |
493 |
DATADIR=${D}/usr/share/mplayer \ |
494 |
MANDIR=${D}/usr/share/man \ |
495 |
install || die "Failed to install MPlayer!" |
496 |
einfo "Make install completed" |
497 |
|
498 |
dodoc AUTHORS Changelog README |
499 |
# Install the documentation; DOCS is all mixed up not just html |
500 |
if use doc ; then |
501 |
find "${S}/DOCS" -type d | xargs -- chmod 0755 |
502 |
find "${S}/DOCS" -type f | xargs -- chmod 0644 |
503 |
cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die "cp docs died" |
504 |
fi |
505 |
|
506 |
# Copy misc tools to documentation path, as they're not installed directly |
507 |
# and yes, we are nuking the +x bit. |
508 |
find "${S}/TOOLS" -type d | xargs -- chmod 0755 |
509 |
find "${S}/TOOLS" -type f | xargs -- chmod 0644 |
510 |
cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die "cp docs died" |
511 |
|
512 |
# Install the default Skin and Gnome menu entry |
513 |
if use gtk; then |
514 |
dodir /usr/share/mplayer/skins |
515 |
cp -r "${WORKDIR}/Blue" \ |
516 |
"${D}/usr/share/mplayer/skins/default" || die "cp skins died" |
517 |
|
518 |
# Fix the symlink |
519 |
rm -rf "${D}/usr/bin/gmplayer" |
520 |
dosym mplayer /usr/bin/gmplayer |
521 |
fi |
522 |
|
523 |
if ! use srt && ! use truetype; then |
524 |
dodir /usr/share/mplayer/fonts |
525 |
local x= |
526 |
# Do this generic, as the mplayer people like to change the structure |
527 |
# of their zips ... |
528 |
for x in $(find "${WORKDIR}/" -type d -name 'font-arial-*') |
529 |
do |
530 |
cp -pPR "${x}" "${D}/usr/share/mplayer/fonts" |
531 |
done |
532 |
# Fix the font symlink ... |
533 |
rm -rf "${D}/usr/share/mplayer/font" |
534 |
dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font |
535 |
fi |
536 |
|
537 |
insinto /etc/mplayer |
538 |
newins "${S}/etc/example.conf" mplayer.conf |
539 |
|
540 |
if use srt || use truetype; then |
541 |
cat >> "${D}/etc/mplayer/mplayer.conf" << EOT |
542 |
fontconfig=1 |
543 |
subfont-osd-scale=4 |
544 |
subfont-text-scale=3 |
545 |
EOT |
546 |
fi |
547 |
|
548 |
dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf |
549 |
|
550 |
dobin "${D}/usr/share/doc/${PF}/TOOLS/midentify" |
551 |
|
552 |
insinto /usr/share/mplayer |
553 |
doins "${S}/etc/input.conf" |
554 |
doins "${S}/etc/menu.conf" |
555 |
} |
556 |
|
557 |
pkg_preinst() { |
558 |
|
559 |
if [ -d ${ROOT}/usr/share/mplayer/Skin/default ] |
560 |
then |
561 |
rm -rf "${ROOT}/usr/share/mplayer/Skin/default" |
562 |
fi |
563 |
} |
564 |
|
565 |
pkg_postinst() { |
566 |
|
567 |
if use video_cards_mga; then |
568 |
depmod -a &>/dev/null || : |
569 |
fi |
570 |
|
571 |
} |
572 |
|
573 |
pkg_postrm() { |
574 |
|
575 |
# Cleanup stale symlinks |
576 |
if [ -L ${ROOT}/usr/share/mplayer/font -a \ |
577 |
! -e ${ROOT}/usr/share/mplayer/font ] |
578 |
then |
579 |
rm -f ${ROOT}/usr/share/mplayer/font |
580 |
fi |
581 |
|
582 |
if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ |
583 |
! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] |
584 |
then |
585 |
rm -f ${ROOT}/usr/share/mplayer/subfont.ttf |
586 |
fi |
587 |
} |
588 |
|
589 |
|
590 |
|
591 |
-- |
592 |
gentoo-commits@g.o mailing list |