1 |
beandog 08/04/16 20:02:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mplayer-1.0_rc2_p26454-r1.ebuild |
5 |
Removed: mplayer-1.0_rc2_p26454.ebuild |
6 |
Log: |
7 |
Fix installing man pages, bug 217769, thanks to Daniel Pielmeier for patch |
8 |
(Portage version: 2.1.5_rc3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.567 media-video/mplayer/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.567&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?rev=1.567&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/ChangeLog?r1=1.566&r2=1.567 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v |
20 |
retrieving revision 1.566 |
21 |
retrieving revision 1.567 |
22 |
diff -u -r1.566 -r1.567 |
23 |
--- ChangeLog 16 Apr 2008 15:27:08 -0000 1.566 |
24 |
+++ ChangeLog 16 Apr 2008 20:02:24 -0000 1.567 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-video/mplayer |
27 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.566 2008/04/16 15:27:08 beandog Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/ChangeLog,v 1.567 2008/04/16 20:02:24 beandog Exp $ |
30 |
+ |
31 |
+*mplayer-1.0_rc2_p26454-r1 (16 Apr 2008) |
32 |
+ |
33 |
+ 16 Apr 2008; Steve Dibb <beandog@g.o> |
34 |
+ +files/mplayer-1.0_rc2_p26454-makefile.patch, |
35 |
+ -mplayer-1.0_rc2_p26454.ebuild, +mplayer-1.0_rc2_p26454-r1.ebuild: |
36 |
+ Fix installing man pages, bug 217769, thanks to Daniel Pielmeier for patch |
37 |
|
38 |
*mplayer-1.0_rc2_p26454 (16 Apr 2008) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 media-video/mplayer/mplayer-1.0_rc2_p26454-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26454-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/mplayer/mplayer-1.0_rc2_p26454-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mplayer-1.0_rc2_p26454-r1.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/mplayer/mplayer-1.0_rc2_p26454-r1.ebuild,v 1.1 2008/04/16 20:02:24 beandog Exp $ |
53 |
|
54 |
EAPI="1" |
55 |
|
56 |
inherit eutils flag-o-matic multilib |
57 |
|
58 |
RESTRICT="strip" |
59 |
IUSE="3dnow 3dnowext +a52 aac -aalib +alsa altivec amrnb amrwb -arts bidi bl |
60 |
bindist cddb cdio cdparanoia cpudetection custom-cflags debug dga doc dts dvb |
61 |
directfb +dvd dv enca encode esd -fbcon ftp -gif ggi gtk iconv ipv6 jack joystick |
62 |
-jpeg kernel_linux ladspa -libcaca lirc live lzo +mad -md5sum +mmx mmxext mp2 |
63 |
+mp3 musepack nas nemesi unicode +vorbis opengl openal oss -png -pnm pulseaudio |
64 |
quicktime radio -rar real rtc -samba sdl speex srt sse sse2 ssse3 svga teletext |
65 |
tga +theora -tivo +truetype v4l v4l2 vidix win32codecs +X x264 xanim xinerama |
66 |
+xscreensaver +xv xvid xvmc zoran" |
67 |
|
68 |
VIDEO_CARDS="s3virge mga tdfx vesa" |
69 |
|
70 |
for x in ${VIDEO_CARDS}; do |
71 |
IUSE="${IUSE} video_cards_${x}" |
72 |
done |
73 |
|
74 |
BLUV="1.7" |
75 |
SVGV="1.9.17" |
76 |
AMR_URI="http://www.3gpp.org/ftp/Specs/archive" |
77 |
SRC_URI="mirror://gentoo/${P}.tar.bz2 |
78 |
!truetype? ( 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 |
!iconv? ( mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 |
82 |
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 |
83 |
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 ) |
84 |
gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 ) |
85 |
svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )" |
86 |
|
87 |
DESCRIPTION="Media Player for Linux" |
88 |
HOMEPAGE="http://www.mplayerhq.hu/" |
89 |
|
90 |
RDEPEND="sys-libs/ncurses |
91 |
!bindist? ( |
92 |
x86? ( |
93 |
win32codecs? ( media-libs/win32codecs ) |
94 |
real? ( media-libs/win32codecs |
95 |
media-video/realplayer ) |
96 |
) |
97 |
amd64? ( real? ( media-libs/amd64codecs ) ) |
98 |
) |
99 |
aalib? ( media-libs/aalib ) |
100 |
alsa? ( media-libs/alsa-lib ) |
101 |
amrnb? ( media-libs/amrnb ) |
102 |
amrwb? ( media-libs/amrwb ) |
103 |
arts? ( kde-base/arts ) |
104 |
openal? ( media-libs/openal ) |
105 |
bidi? ( dev-libs/fribidi ) |
106 |
cdio? ( dev-libs/libcdio ) |
107 |
cdparanoia? ( media-sound/cdparanoia ) |
108 |
directfb? ( dev-libs/DirectFB ) |
109 |
dga? ( x11-libs/libXxf86dga ) |
110 |
dts? ( media-libs/libdca ) |
111 |
dv? ( media-libs/libdv ) |
112 |
dvb? ( media-tv/linuxtv-dvb-headers ) |
113 |
encode? ( |
114 |
aac? ( media-libs/faac ) |
115 |
mp2? ( media-sound/twolame ) |
116 |
mp3? ( media-sound/lame ) |
117 |
x264? ( media-libs/x264 ) |
118 |
) |
119 |
esd? ( media-sound/esound ) |
120 |
enca? ( app-i18n/enca ) |
121 |
gif? ( media-libs/giflib ) |
122 |
ggi? ( media-libs/libggi |
123 |
media-libs/libggiwmh ) |
124 |
gtk? ( media-libs/libpng |
125 |
x11-libs/libXxf86vm |
126 |
x11-libs/libXext |
127 |
x11-libs/libXi |
128 |
=x11-libs/gtk+-2* ) |
129 |
jpeg? ( media-libs/jpeg ) |
130 |
ladspa? ( media-libs/ladspa-sdk ) |
131 |
libcaca? ( media-libs/libcaca ) |
132 |
lirc? ( app-misc/lirc ) |
133 |
lzo? ( >=dev-libs/lzo-2 ) |
134 |
mad? ( media-libs/libmad ) |
135 |
musepack? ( >=media-libs/libmpcdec-1.2.2 ) |
136 |
nas? ( media-libs/nas ) |
137 |
opengl? ( virtual/opengl ) |
138 |
png? ( media-libs/libpng ) |
139 |
pnm? ( media-libs/netpbm ) |
140 |
pulseaudio? ( media-sound/pulseaudio ) |
141 |
samba? ( net-fs/samba ) |
142 |
sdl? ( media-libs/libsdl ) |
143 |
speex? ( >=media-libs/speex-1.1.7 ) |
144 |
srt? ( >=media-libs/freetype-2.1 |
145 |
media-libs/fontconfig ) |
146 |
svga? ( media-libs/svgalib ) |
147 |
theora? ( media-libs/libtheora ) |
148 |
live? ( >=media-plugins/live-2007.02.20 ) |
149 |
truetype? ( >=media-libs/freetype-2.1 |
150 |
media-libs/fontconfig ) |
151 |
vidix? ( x11-libs/libXxf86vm |
152 |
x11-libs/libXext ) |
153 |
xanim? ( media-video/xanim ) |
154 |
xinerama? ( x11-libs/libXinerama |
155 |
x11-libs/libXxf86vm |
156 |
x11-libs/libXext ) |
157 |
xscreensaver? ( x11-libs/libXScrnSaver ) |
158 |
xv? ( x11-libs/libXv |
159 |
x11-libs/libXxf86vm |
160 |
x11-libs/libXext |
161 |
xvmc? ( x11-libs/libXvMC ) ) |
162 |
xvid? ( media-libs/xvid ) |
163 |
X? ( x11-libs/libXxf86vm |
164 |
x11-libs/libXext |
165 |
)" |
166 |
|
167 |
DEPEND="${RDEPEND} |
168 |
doc? ( >=app-text/docbook-sgml-dtd-4.1.2 |
169 |
app-text/docbook-xml-dtd |
170 |
>=app-text/docbook-xml-simple-dtd-1.50.0 |
171 |
dev-libs/libxslt ) |
172 |
dga? ( x11-proto/xf86dgaproto ) |
173 |
xinerama? ( x11-proto/xineramaproto ) |
174 |
xv? ( x11-proto/videoproto |
175 |
x11-proto/xf86vidmodeproto ) |
176 |
gtk? ( x11-proto/xextproto |
177 |
x11-proto/xf86vidmodeproto ) |
178 |
X? ( x11-proto/xextproto |
179 |
x11-proto/xf86vidmodeproto ) |
180 |
xscreensaver? ( x11-proto/scrnsaverproto ) |
181 |
iconv? ( virtual/libiconv )" |
182 |
# Make sure the assembler USE flags are unmasked on amd64 |
183 |
# Remove this once default-linux/amd64/2006.1 is deprecated |
184 |
DEPEND="${DEPEND} amd64? ( >=sys-apps/portage-2.1.2 ) |
185 |
mp2? ( >=sys-apps/portage-2.1.2 )" |
186 |
|
187 |
SLOT="0" |
188 |
LICENSE="GPL-2" |
189 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
190 |
|
191 |
pkg_setup() { |
192 |
|
193 |
if [[ -n ${LINGUAS} ]]; then |
194 |
elog "For MPlayer's language support, the configuration will" |
195 |
elog "use your LINGUAS variable from /etc/make.conf. If you have more" |
196 |
elog "than one language enabled, then the first one in the list will" |
197 |
elog "be used to output the messages, if a translation is available." |
198 |
elog "man pages will be created for all languages where translations" |
199 |
elog "are also available." |
200 |
fi |
201 |
|
202 |
if use x86 || use amd64; then |
203 |
if ! use mmx && use custom-cflags; then |
204 |
ewarn "You have the 'mmx' use flag disabled for this package, which" |
205 |
ewarn "means that no CPU optimizations will be used at all." |
206 |
ewarn "The build will either break or encode very slowly. Check your" |
207 |
ewarn "/proc/cpuinfo for possible CPU optimization flags that" |
208 |
ewarn "apply to this ebuild (mmx, mmxext, 3dnow, 3dnowext, sse," |
209 |
ewarn "sse2)." |
210 |
fi |
211 |
fi |
212 |
|
213 |
} |
214 |
|
215 |
src_unpack() { |
216 |
unpack ${A} |
217 |
|
218 |
if ! use truetype ; then |
219 |
unpack font-arial-iso-8859-1.tar.bz2 \ |
220 |
font-arial-iso-8859-2.tar.bz2 \ |
221 |
font-arial-cp1250.tar.bz2 |
222 |
fi |
223 |
|
224 |
use gtk && unpack "Blue-${BLUV}.tar.bz2" |
225 |
|
226 |
use svga && unpack "svgalib_helper-${SVGV}-mplayer.tar.bz2" |
227 |
|
228 |
cd "${S}" |
229 |
|
230 |
#bug 217769 |
231 |
epatch "${FILESDIR}/mplayer-1.0_rc2_p26454-makefile.patch" |
232 |
|
233 |
# Fix hppa compilation |
234 |
use hppa && sed -i -e "s/-O4/-O1/" "${S}/configure" |
235 |
|
236 |
if use svga; then |
237 |
echo |
238 |
einfo "Enabling vidix non-root mode." |
239 |
einfo "(You need a proper svgalib_helper.o module for your kernel" |
240 |
einfo "to actually use this)" |
241 |
echo |
242 |
|
243 |
mv "${WORKDIR}/svgalib_helper" "${S}/libdha" |
244 |
fi |
245 |
|
246 |
# Fix polish spelling errors |
247 |
[[ -n ${LINGUAS} ]] && sed -e 's:Zarządano:Zażądano:' -i help/help_mp-pl.h |
248 |
} |
249 |
|
250 |
src_compile() { |
251 |
|
252 |
local myconf=" --disable-tv-bsdbt848 \ |
253 |
--disable-faad-external" |
254 |
|
255 |
# broken upstream, won't work with recent kernels |
256 |
myconf="${myconf} --disable-ivtv --disable-pvr" |
257 |
|
258 |
# MPlayer reads in the LINGUAS variable from make.conf, and sets |
259 |
# the languages accordingly. Some will have to be altered to match |
260 |
# upstream's naming scheme. |
261 |
[[ -n $LINGUAS ]] && LINGUAS=${LINGUAS/da/dk} |
262 |
|
263 |
################ |
264 |
#Optional features# |
265 |
############### |
266 |
use bidi || myconf="${myconf} --disable-fribidi" |
267 |
use bl && myconf="${myconf} --enable-bl" |
268 |
use enca || myconf="${myconf} --disable-enca" |
269 |
use ftp || myconf="${myconf} --disable-ftp" |
270 |
use nemesi || myconf="${myconf} --disable-nemesi" |
271 |
use tivo || myconf="${myconf} --disable-vstream" |
272 |
use xscreensaver || myconf="${myconf} --disable-xss" |
273 |
|
274 |
# libcdio support: prefer libcdio over cdparanoia |
275 |
# don't check for cddb w/cdio |
276 |
if use cdio; then |
277 |
myconf="${myconf} --disable-cdparanoia" |
278 |
else |
279 |
myconf="${myconf} --disable-libcdio" |
280 |
use cdparanoia || myconf="${myconf} --disable-cdparanoia" |
281 |
use cddb || myconf="${myconf} --disable-cddb" |
282 |
fi |
283 |
|
284 |
# DVD support |
285 |
# dvdread and libdvdcss are internal libs |
286 |
# http://www.mplayerhq.hu/DOCS/HTML/en/dvd.html |
287 |
# You can optionally use external dvdread support, but against |
288 |
# upstream's suggestion. We don't. |
289 |
if ! use dvd; then |
290 |
myconf="${myconf} --disable-dvdnav --disable-dvdread" |
291 |
use a52 || myconf="${myconf} --disable-liba52" |
292 |
fi |
293 |
|
294 |
if use encode; then |
295 |
use aac || myconf="${myconf} --disable-faac" |
296 |
use dv || myconf="${myconf} --disable-libdv" |
297 |
use x264 || myconf="${myconf} --disable-x264" |
298 |
else |
299 |
myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264 \ |
300 |
--disable-faac" |
301 |
fi |
302 |
|
303 |
# SRT (subtitles) requires freetype support |
304 |
# freetype support requires iconv |
305 |
# iconv optionally can use unicode |
306 |
if ! use srt; then |
307 |
myconf="${myconf} --disable-ass" |
308 |
if ! use truetype; then |
309 |
myconf="${myconf} --disable-freetype" |
310 |
if ! use iconv; then |
311 |
myconf="${myconf} --disable-iconv --charset=noconv" |
312 |
fi |
313 |
fi |
314 |
fi |
315 |
use iconv && use unicode && myconf="${myconf} --charset=UTF-8" |
316 |
|
317 |
use lirc || myconf="${myconf} --disable-lirc --disable-lircc" |
318 |
myconf="${myconf} $(use_enable joystick)" |
319 |
use ipv6 || myconf="${myconf} --disable-inet6" |
320 |
use rar || myconf="${myconf} --disable-unrarexec" |
321 |
use rtc || myconf="${myconf} --disable-rtc" |
322 |
use samba || myconf="${myconf} --disable-smb" |
323 |
|
324 |
# DVB / Video4Linux / Radio support |
325 |
if { use dvb || use v4l || use v4l2 || use radio; }; then |
326 |
use dvb || myconf="${myconf} --disable-dvb --disable-dvbhead" |
327 |
use v4l || myconf="${myconf} --disable-tv-v4l1" |
328 |
use v4l2 || myconf="${myconf} --disable-tv-v4l2" |
329 |
use teletext || myconf="${myconf} --disable-tv-teletext" |
330 |
if use radio && { use dvb || use v4l || use v4l2; }; then |
331 |
myconf="${myconf} --enable-radio $(use_enable encode radio-capture)" |
332 |
else |
333 |
myconf="${myconf} --disable-radio-v4l2 --disable-radio-bsdbt848" |
334 |
fi |
335 |
else |
336 |
myconf="${myconf} --disable-tv --disable-tv-v4l1 --disable-tv-v4l2 \ |
337 |
--disable-radio --disable-radio-v4l2 --disable-radio-bsdbt848 \ |
338 |
--disable-dvb --disable-dvbhead --disable-tv-teletext" |
339 |
fi |
340 |
|
341 |
######### |
342 |
# Codecs # |
343 |
######## |
344 |
for x in gif jpeg live mad musepack pnm speex tga theora xanim xvid; do |
345 |
use ${x} || myconf="${myconf} --disable-${x}" |
346 |
done |
347 |
use aac || myconf="${myconf} --disable-faad-internal" |
348 |
use amrnb || myconf="${myconf} --disable-libamr_nb" |
349 |
use amrwb || myconf="${myconf} --disable-libamr_wb" |
350 |
use dts || myconf="${myconf} --disable-libdca" |
351 |
! use png && ! use gtk && myconf="${myconf} --disable-png" |
352 |
use lzo || myconf="${myconf} --disable-liblzo" |
353 |
use encode && use mp2 || myconf="${myconf} --disable-twolame \ |
354 |
--disable-toolame" |
355 |
use mp3 || myconf="${myconf} --disable-mp3lib" |
356 |
use vorbis || myconf="${myconf} --disable-libvorbis" |
357 |
use xanim && myconf="${myconf} --xanimcodecsdir=/usr/lib/xanim/mods" |
358 |
if use x86 || use amd64; then |
359 |
# Real codec support, only available on x86, amd64 |
360 |
if use real && use x86; then |
361 |
myconf="${myconf} --realcodecsdir=/opt/RealPlayer/codecs" |
362 |
elif use real && use amd64; then |
363 |
myconf="${myconf} --realcodecsdir=/usr/$(get_libdir)/codecs" |
364 |
else |
365 |
myconf="${myconf} --disable-real" |
366 |
fi |
367 |
if ! use bindist && ! use real; then |
368 |
myconf="${myconf} $(use_enable win32codecs win32dll)" |
369 |
fi |
370 |
fi |
371 |
# bug 213836 |
372 |
if ! use x86 || ! use win32codecs; then |
373 |
use quicktime || myconf="${myconf} --disable-qtx" |
374 |
fi |
375 |
|
376 |
############# |
377 |
# Video Output # |
378 |
############# |
379 |
for x in directfb ggi md5sum sdl xinerama; do |
380 |
use ${x} || myconf="${myconf} --disable-${x}" |
381 |
done |
382 |
use aalib || myconf="${myconf} --disable-aa" |
383 |
use dga || myconf="${myconf} --disable-dga1 --disable-dga2" |
384 |
use fbcon || myconf="${myconf} --disable-fbdev" |
385 |
use fbcon && use video_cards_s3virge && myconf="${myconf} --enable-s3fb" |
386 |
use libcaca || myconf="${myconf} --disable-caca" |
387 |
use opengl || myconf="${myconf} --disable-gl" |
388 |
use video_cards_vesa || myconf="${myconf} --disable-vesa" |
389 |
use vidix || myconf="${myconf} --disable-vidix-internal \ |
390 |
--disable-vidix-external \ |
391 |
--disable-vidix-pcidb" |
392 |
use zoran || myconf="${myconf} --disable-zr" |
393 |
|
394 |
# GTK gmplayer gui |
395 |
myconf="${myconf} $(use_enable gtk gui)" |
396 |
|
397 |
if use xv; then |
398 |
if use xvmc; then |
399 |
myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCW" |
400 |
else |
401 |
myconf="${myconf} --disable-xvmc" |
402 |
fi |
403 |
else |
404 |
myconf="${myconf} --disable-xv --disable-xvmc" |
405 |
fi |
406 |
|
407 |
if ! use kernel_linux && ! use video_cards_mga; then |
408 |
myconf="${myconf} --disable-mga --disable-xmga" |
409 |
fi |
410 |
|
411 |
if use video_cards_tdfx; then |
412 |
myconf="${myconf} $(use_enable video_cards_tdfx tdfxvid) \ |
413 |
$(use_enable fbcon tdfxfb)" |
414 |
else |
415 |
myconf="${myconf} --disable-3dfx --disable-tdfxvid --disable-tdfxfb" |
416 |
fi |
417 |
|
418 |
############# |
419 |
# Audio Output # |
420 |
############# |
421 |
for x in alsa arts esd jack ladspa nas openal; do |
422 |
use ${x} || myconf="${myconf} --disable-${x}" |
423 |
done |
424 |
use pulseaudio || myconf="${myconf} --disable-pulse" |
425 |
if ! use radio; then |
426 |
use oss || myconf="${myconf} --disable-ossaudio" |
427 |
fi |
428 |
################# |
429 |
# Advanced Options # |
430 |
################# |
431 |
# Platform specific flags, hardcoded on amd64 (see below) |
432 |
if use x86 || use amd64 || use ppc; then |
433 |
if use cpudetection || use bindist; then |
434 |
myconf="${myconf} --enable-runtime-cpudetection" |
435 |
fi |
436 |
fi |
437 |
# Letting users turn off optimizations results in epic build fail |
438 |
# across the board. MPlayer's build system by default will |
439 |
# detect them and use them just fine, so don't let them change |
440 |
# them unless they really know what they are doing anyway. |
441 |
if use custom-cflags; then |
442 |
if use mmx; then |
443 |
for x in 3dnow 3dnowext mmxext sse sse2 ssse3; do |
444 |
use ${x} || myconf="${myconf} --disable-${x}" |
445 |
done |
446 |
else |
447 |
myconf="${myconf} --disable-mmx --disable-mmxext --disable-sse \ |
448 |
--disable-sse2 --disable-ssse3 --disable-3dnow \ |
449 |
--disable-3dnowext" |
450 |
fi |
451 |
fi |
452 |
|
453 |
use debug && myconf="${myconf} --enable-debug=3" |
454 |
|
455 |
myconf="${myconf} $(use_enable altivec)" |
456 |
|
457 |
if use custom-cflags; then |
458 |
# let's play the filtration game! MPlayer hates on all! |
459 |
strip-flags |
460 |
# ugly optimizations cause MPlayer to cry on x86 systems! |
461 |
if use x86 || use x86-fbsd ; then |
462 |
replace-flags -O* -O2 |
463 |
filter-flags -fPIC -fPIE |
464 |
|
465 |
use debug || append-flags -fomit-frame-pointer |
466 |
fi |
467 |
append-flags -D__STDC_LIMIT_MACROS |
468 |
else |
469 |
unset CFLAGS CXXFLAGS |
470 |
fi |
471 |
|
472 |
myconf="--cc=$(tc-getCC) \ |
473 |
--host-cc=$(tc-getBUILD_CC) \ |
474 |
--prefix=/usr \ |
475 |
--confdir=/etc/mplayer \ |
476 |
--datadir=/usr/share/mplayer \ |
477 |
--libdir=/usr/$(get_libdir) \ |
478 |
--enable-menu \ |
479 |
--enable-network \ |
480 |
${myconf}" |
481 |
#echo "CFLAGS=\"${CFLAGS}\" ./configure ${myconf}" |
482 |
CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died" |
483 |
|
484 |
emake || die "Failed to build MPlayer!" |
485 |
use doc && make -C DOCS/xml html-chunked |
486 |
} |
487 |
|
488 |
src_install() { |
489 |
|
490 |
make prefix="${D}/usr" \ |
491 |
BINDIR="${D}/usr/bin" \ |
492 |
LIBDIR="${D}/usr/$(get_libdir)" \ |
493 |
CONFDIR="${D}/etc/mplayer" \ |
494 |
DATADIR="${D}/usr/share/mplayer" \ |
495 |
MANDIR="${D}/usr/share/man" \ |
496 |
install || die "Failed to install MPlayer!" |
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_postrm() { |
566 |
|
567 |
# Cleanup stale symlinks |
568 |
if [ -L "${ROOT}/usr/share/mplayer/font" -a \ |
569 |
! -e "${ROOT}/usr/share/mplayer/font" ] |
570 |
then |
571 |
rm -f "${ROOT}/usr/share/mplayer/font" |
572 |
fi |
573 |
|
574 |
if [ -L "${ROOT}/usr/share/mplayer/subfont.ttf" -a \ |
575 |
! -e "${ROOT}/usr/share/mplayer/subfont.ttf" ] |
576 |
then |
577 |
rm -f "${ROOT}/usr/share/mplayer/subfont.ttf" |
578 |
fi |
579 |
} |
580 |
|
581 |
|
582 |
|
583 |
-- |
584 |
gentoo-commits@l.g.o mailing list |