Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 312295
Collapse All | Expand All

(-)/usr/portage/media-video/mplayer/mplayer-9999.ebuild (-86 / +85 lines)
Lines 4-26 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk"
7
EGIT_REPO_URI="git://repo.or.cz/mplayer-build.git"
8
[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion" || SVN_ECLASS=""
8
EGIT_BOOTSTRAP="./init;./update"
9
EGIT_HAS_SUBMODULES="true"
9
10
10
inherit eutils flag-o-matic multilib base ${SVN_ECLASS}
11
inherit eutils flag-o-matic multilib base git
11
12
12
[[ ${PV} != *9999* ]] && MPLAYER_REVISION=SVN-r30554
13
[[ ${PV} != *9999* ]] && MPLAYER_REVISION=SVN-r30554
13
14
15
namesuf="-git"
16
14
IUSE="3dnow 3dnowext +a52 +aac aalib +alsa altivec +ass bidi bindist bl bs2b
17
IUSE="3dnow 3dnowext +a52 +aac aalib +alsa altivec +ass bidi bindist bl bs2b
15
+cddb +cdio cdparanoia cpudetection custom-cpuopts debug dga +dirac directfb
18
+cddb +cdio cdparanoia cpudetection custom-cpuopts debug dga +dirac directfb
16
doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +encode esd +faac +faad fbcon ftp
19
doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +encode esd +faac +faad fbcon ftp
17
gif ggi -gmplayer +iconv ipv6 jack joystick jpeg jpeg2k kernel_linux ladspa
20
gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa
18
libcaca lirc +live lzo mad md5sum +mmx mmxext mng +mp3 nas +network nut openal
21
libcaca lirc +live lzo mad md5sum +mmx mmxext mng +mp3 nas +network nut openal
19
opencore-amr +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime radio +rar +real +rtc
22
opencore-amr +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime radio +rar +real +rtc
20
samba +shm +schroedinger sdl +speex sse sse2 ssse3 svga tga +theora +tremor
23
samba +shm +schroedinger sdl +speex sse sse2 ssse3 svga tga +theora +tremor
21
+truetype +toolame +twolame +unicode v4l v4l2 vdpau vidix +vorbis win32codecs
24
+truetype +toolame +twolame +unicode v4l v4l2 vdpau vidix +vorbis win32codecs
22
+X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran"
25
+X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran"
23
[[ ${PV} == *9999* ]] && IUSE+=" external-ffmpeg"
26
[[ ${PV} == *9999* ]] && IUSE+=" +ffmpeg-mt -external-ffmpeg symlink"
24
27
25
VIDEO_CARDS="s3virge mga tdfx vesa"
28
VIDEO_CARDS="s3virge mga tdfx vesa"
26
for x in ${VIDEO_CARDS}; do
29
for x in ${VIDEO_CARDS}; do
Lines 42-48 Link Here
42
fi
45
fi
43
SRC_URI="${RELEASE_URI}
46
SRC_URI="${RELEASE_URI}
44
	!truetype? ( ${FONT_URI} )
47
	!truetype? ( ${FONT_URI} )
45
	gmplayer? ( mirror://mplayer/skins/Blue-${BLUV}.tar.bz2 )
46
	svga? (	mirror://gentoo/svgalib_helper-${SVGV}-mplayer.tar.gz )"
48
	svga? (	mirror://gentoo/svgalib_helper-${SVGV}-mplayer.tar.gz )"
47
#	svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )
49
#	svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )
48
50
Lines 58-64 Link Here
58
	x11-libs/libXext
60
	x11-libs/libXext
59
	x11-libs/libXxf86vm
61
	x11-libs/libXxf86vm
60
"
62
"
61
[[ ${PV} == *9999* ]] && RDEPEND+=" external-ffmpeg? ( media-video/ffmpeg )"
63
[[ ${PV} == *9999* ]] && RDEPEND+=" external-ffmpeg? ( !ffmpeg-mt? ( >=media-video/ffmpeg-0.5_p20373 ) )"
62
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
64
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
63
#	nemesi? ( net-libs/libnemesi )
65
#	nemesi? ( net-libs/libnemesi )
64
RDEPEND+="
66
RDEPEND+="
Lines 76-86 Link Here
76
			media-libs/libggi
78
			media-libs/libggi
77
			media-libs/libggiwmh
79
			media-libs/libggiwmh
78
		)
80
		)
79
		gmplayer? (
80
			media-libs/libpng
81
			x11-libs/gtk+:2
82
			x11-libs/libXi
83
		)
84
		opengl? ( virtual/opengl )
81
		opengl? ( virtual/opengl )
85
		truetype? ( ${FONT_RDEPS} )
82
		truetype? ( ${FONT_RDEPS} )
86
		vdpau? ( || ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 ) )
83
		vdpau? ( || ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 ) )
Lines 127-133 Link Here
127
	nut? ( >=media-libs/libnut-661 )
124
	nut? ( >=media-libs/libnut-661 )
128
	openal? ( media-libs/openal )
125
	openal? ( media-libs/openal )
129
	opencore-amr? ( media-libs/opencore-amr )
126
	opencore-amr? ( media-libs/opencore-amr )
130
	jpeg2k? ( media-libs/openjpeg )
131
	png? ( media-libs/libpng )
127
	png? ( media-libs/libpng )
132
	pnm? ( media-libs/netpbm )
128
	pnm? ( media-libs/netpbm )
133
	pulseaudio? ( media-sound/pulseaudio )
129
	pulseaudio? ( media-sound/pulseaudio )
Lines 159-165 Link Here
159
		${X_DEPS}
155
		${X_DEPS}
160
		dga? ( x11-proto/xf86dgaproto )
156
		dga? ( x11-proto/xf86dgaproto )
161
		dxr3? ( media-video/em8300-libraries )
157
		dxr3? ( media-video/em8300-libraries )
162
		gmplayer? ( x11-proto/xextproto )
163
		xinerama? ( x11-proto/xineramaproto )
158
		xinerama? ( x11-proto/xineramaproto )
164
		xscreensaver? ( x11-proto/scrnsaverproto )
159
		xscreensaver? ( x11-proto/scrnsaverproto )
165
	)
160
	)
Lines 172-182 Link Here
172
167
173
SLOT="0"
168
SLOT="0"
174
LICENSE="GPL-2"
169
LICENSE="GPL-2"
175
if [[ ${PV} != *9999* ]]; then
170
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
176
	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
177
else
178
	KEYWORDS=""
179
fi
180
171
181
PATCHES=(
172
PATCHES=(
182
)
173
)
Lines 185-202 Link Here
185
	if [[ ${PV} == *9999* ]]; then
176
	if [[ ${PV} == *9999* ]]; then
186
		elog ""
177
		elog ""
187
		elog "This is a live ebuild which installs the latest from upstream's"
178
		elog "This is a live ebuild which installs the latest from upstream's"
188
		elog "subversion repository, and is unsupported by Gentoo."
179
		elog "git repository, and is unsupported by Gentoo."
189
		elog "Everything but bugs in the ebuild itself will be ignored."
180
		elog "Everything but bugs in the ebuild itself will be ignored."
190
		elog ""
181
		elog ""
191
	fi
182
	fi
192
183
193
	if use gmplayer; then
194
		ewarn ""
195
		ewarn "GMPlayer is no longer actively developed upstream"
196
		ewarn "and is not supported by Gentoo.  There are alternatives"
197
		ewarn "for a GUI frontend: smplayer, gnome-mplayer or kmplayer."
198
	fi
199
200
	if use cpudetection; then
184
	if use cpudetection; then
201
		ewarn ""
185
		ewarn ""
202
		ewarn "You've enabled the cpudetection flag.  This feature is"
186
		ewarn "You've enabled the cpudetection flag.  This feature is"
Lines 228-234 Link Here
228
}
212
}
229
213
230
src_unpack() {
214
src_unpack() {
231
	[[ ${PV} = *9999* ]] && subversion_src_unpack || unpack ${A}
215
	[[ ${PV} = *9999* ]] && git_src_unpack || unpack ${A}
216
217
	cd "${S}"
218
	use ffmpeg-mt && python ./enable-mt
219
220
	if use dvd; then
221
		svn export svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread/src mplayer/libdvdread4
222
		use dvdnav && svn export svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav/src mplayer/libdvdnav
223
	fi
232
224
233
	if ! use truetype; then
225
	if ! use truetype; then
234
		unpack font-arial-iso-8859-1.tar.bz2 \
226
		unpack font-arial-iso-8859-1.tar.bz2 \
Lines 236-255 Link Here
236
			font-arial-cp1250.tar.bz2
228
			font-arial-cp1250.tar.bz2
237
	fi
229
	fi
238
230
239
	use gmplayer && unpack "Blue-${BLUV}.tar.bz2"
240
	use svga && unpack "svgalib_helper-${SVGV}-mplayer.tar.gz"
231
	use svga && unpack "svgalib_helper-${SVGV}-mplayer.tar.gz"
241
}
232
}
242
233
243
src_prepare() {
234
src_prepare() {
244
	if [[ ${PV} = *9999* ]]; then
235
	if [[ ${PV} = *9999* ]]; then
245
		# Set SVN version manually
236
		git_src_prepare
246
		subversion_wc_info
237
		# Set GIT version manually
247
		sed -i s/UNKNOWN/${ESVN_WC_REVISION}/ "${S}/version.sh"
238
		cd "${S}/mplayer"
239
		sed -i s/UNKNOWN/$(git describe --always)/ version.sh || die "sed failed"
240
		cd "${S}"
248
	else
241
	else
249
		# Set version #
242
		# Set version #
250
		sed -i s/UNKNOWN/${MPLAYER_REVISION}/ "${S}/version.sh"
243
		sed -i s/UNKNOWN/${MPLAYER_REVISION}/ "${S}/version.sh"
251
	fi
244
	fi
252
245
246
	# We want mplayer${namesuf}
247
	if [[ "${namesuf}" != "" ]]; then
248
		sed -i -e "/elif linux ; then/a\  _exesuf=\"${namesuf}\"" \
249
			mplayer/configure || die "sed configure failed"
250
		sed -i -e "/ -m 644 DOCS\/man\/en\/mplayer/i\	mv DOCS\/man\/en\/mplayer.1 DOCS\/man\/en\/mplayer${namesuf}.1" \
251
			-e "/ -m 644 DOCS\/man\/\$(lang)\/mplayer/i\	mv DOCS\/man\/\$(lang)\/mplayer.1 DOCS\/man\/\$(lang)\/mplayer${namesuf}.1" \
252
			-e "s/er.1/er${namesuf}.1/g" \
253
			mplayer/Makefile || die "sed Makefile failed"
254
		sed -i -e "s/mplayer/mplayer${namesuf}/" \
255
			mplayer/TOOLS/midentify.sh || die "sed midentify failed"
256
	fi
257
258
	! use ffmpeg-mt && use external-ffmpeg && \
259
		sed -i -e 's/mplayer: ffmpeg/mplayer:/' Makefile
260
261
	use ffmpeg-mt && use external-ffmpeg && \
262
		ewarn "USE flags ffmpeg-mt and external-ffmpeg are not compatible, ffmpeg-mt will be used"
263
253
	if use svga; then
264
	if use svga; then
254
		echo
265
		echo
255
		einfo "Enabling vidix non-root mode."
266
		einfo "Enabling vidix non-root mode."
Lines 266-271 Link Here
266
src_configure() {
277
src_configure() {
267
	local myconf=""
278
	local myconf=""
268
	local uses i
279
	local uses i
280
	local ffconf="--enable-version3"
269
281
270
	# set LINGUAS
282
	# set LINGUAS
271
	[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
283
	[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
Lines 284-295 Link Here
284
		$(use_enable network)
296
		$(use_enable network)
285
		$(use_enable joystick)
297
		$(use_enable joystick)
286
	"
298
	"
287
	uses="bl enca ftp rtc" # nemesi <- not working with in-tree ebuild
299
	uses="ass bl enca ftp rtc" # nemesi <- not working with in-tree ebuild
288
	myconf+=" --disable-nemesi" # nemesi automagic disable
300
	myconf+=" --disable-nemesi" # nemesi automagic disable
289
	for i in ${uses}; do
301
	for i in ${uses}; do
290
		use ${i} || myconf+=" --disable-${i}"
302
		use ${i} || myconf+=" --disable-${i}"
291
	done
303
	done
292
	use ass || myconf+=" --disable-ass --disable-ass-internal"
293
	use bidi || myconf+=" --disable-fribidi"
304
	use bidi || myconf+=" --disable-fribidi"
294
	use encode || myconf+=" --disable-mencoder"
305
	use encode || myconf+=" --disable-mencoder"
295
	use ipv6 || myconf+=" --disable-inet6"
306
	use ipv6 || myconf+=" --disable-inet6"
Lines 405-434 Link Here
405
	myconf+=" --disable-musepack"
416
	myconf+=" --disable-musepack"
406
417
407
	use aac || myconf+=" --disable-faad-internal"
418
	use aac || myconf+=" --disable-faad-internal"
408
	use dirac || myconf+=" --disable-libdirac-lavc"
409
	use dts || myconf+=" --disable-libdca"
419
	use dts || myconf+=" --disable-libdca"
410
	use dv || myconf+=" --disable-libdv"
420
	use dv || myconf+=" --disable-libdv"
411
	use faad || myconf+=" --disable-faad"
421
	use faad || myconf+=" --disable-faad"
412
	use lzo || myconf+=" --disable-liblzo"
422
	use lzo || myconf+=" --disable-liblzo"
413
	if ! use mp3; then
414
		myconf+="
415
			--disable-mp3lame
416
			--disable-mp3lame-lavc
417
			--disable-mp3lib
418
		"
419
	fi
420
	use bs2b || myconf+=" --disable-libbs2b"
423
	use bs2b || myconf+=" --disable-libbs2b"
421
	use schroedinger || myconf+=" --disable-libschroedinger-lavc"
422
	use xanim && myconf+=" --xanimcodecsdir=/usr/lib/xanim/mods"
424
	use xanim && myconf+=" --xanimcodecsdir=/usr/lib/xanim/mods"
423
	if ! use png && ! use gmplayer; then
424
		myconf+=" --disable-png"
425
	fi
426
425
427
	uses="gif jpeg live mad mng pnm speex tga theora xanim"
426
	uses="gif jpeg live mad mng pnm speex tga theora xanim"
428
	for i in ${uses}; do
427
	for i in ${uses}; do
429
		use ${i} || myconf+=" --disable-${i}"
428
		use ${i} || myconf+=" --disable-${i}"
430
	done
429
	done
431
	use jpeg2k || myconf+=" --disable-libopenjpeg"
432
	if use vorbis || use tremor; then
430
	if use vorbis || use tremor; then
433
		use tremor || myconf+=" --disable-tremor-internal"
431
		use tremor || myconf+=" --disable-tremor-internal"
434
		use vorbis || myconf+=" --disable-libvorbis"
432
		use vorbis || myconf+=" --disable-libvorbis"
Lines 439-459 Link Here
439
			--disable-libvorbis
437
			--disable-libvorbis
440
		"
438
		"
441
	fi
439
	fi
440
441
	# ffmpeg decoders
442
	for i in faad dirac schroedinger speex; do
443
		use $i && ffconf+=" --enable-lib$i"
444
	done
445
442
	# Encoding
446
	# Encoding
443
	if use encode; then
447
	if use encode; then
444
		uses="faac x264 xvid toolame twolame"
448
		uses="faac x264 xvid toolame twolame"
445
		for i in ${uses}; do
449
		for i in ${uses}; do
446
			use ${i} || myconf+=" --disable-${i}"
450
			use ${i} || myconf+=" --disable-${i}"
447
		done
451
		done
448
		use aac || myconf+=" --disable-faac-lavc"
449
	else
452
	else
450
		myconf+="
453
		myconf+="
451
			--disable-faac-lavc
452
			--disable-faac
454
			--disable-faac
453
			--disable-x264
455
			--disable-x264
454
			--disable-xvid
456
			--disable-xvid
455
			--disable-x264-lavc
456
			--disable-xvid-lavc
457
			--disable-twolame
457
			--disable-twolame
458
			--disable-toolame
458
			--disable-toolame
459
		"
459
		"
Lines 581-590 Link Here
581
		use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb"
581
		use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb"
582
		use xscreensaver || myconf+=" --disable-xss"
582
		use xscreensaver || myconf+=" --disable-xss"
583
583
584
		# GTK gmplayer gui
585
		# Unsupported by Gentoo, upstream has dropped development
586
		myconf+=" $(use_enable gmplayer gui)"
587
588
		if use xv; then
584
		if use xv; then
589
			if use xvmc; then
585
			if use xvmc; then
590
				myconf+=" --enable-xvmc --with-xvmclib=XvMCW"
586
				myconf+=" --enable-xvmc --with-xvmclib=XvMCW"
Lines 626-640 Link Here
626
		use external-ffmpeg && myconf+=" --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a"
622
		use external-ffmpeg && myconf+=" --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --disable-libswscale_a"
627
	fi
623
	fi
628
624
629
	myconf="--cc=$(tc-getCC) \
625
	common_options="--cc=$(tc-getCC)
630
		--host-cc=$(tc-getBUILD_CC) \
626
		--host-cc=$(tc-getBUILD_CC)
627
	"
628
	myconf="
631
		--prefix=/usr \
629
		--prefix=/usr \
632
		--confdir=/etc/mplayer \
630
		--confdir=/etc/mplayer \
633
		--datadir=/usr/share/mplayer \
631
		--datadir=/usr/share/mplayer${namesuf} \
634
		--libdir=/usr/$(get_libdir) \
632
		--libdir=/usr/$(get_libdir) \
635
		${myconf}"
633
		${myconf}"
636
634
637
	CFLAGS="${CFLAGS}" ./configure ${myconf} || die "configure died"
635
	echo "${common_options}" > common_options
636
	echo "${myconf}" > mplayer_options
637
	echo "${ffconf}" > ffmpeg_options
638
	sed -i -e 's/ --/\n--/g' \
639
		common_options mplayer_options ffmpeg_options || die "sed _options failed"
638
}
640
}
639
641
640
src_compile() {
642
src_compile() {
Lines 650-660 Link Here
650
		BINDIR="${D}/usr/bin" \
652
		BINDIR="${D}/usr/bin" \
651
		LIBDIR="${D}/usr/$(get_libdir)" \
653
		LIBDIR="${D}/usr/$(get_libdir)" \
652
		CONFDIR="${D}/etc/mplayer" \
654
		CONFDIR="${D}/etc/mplayer" \
653
		DATADIR="${D}/usr/share/mplayer" \
655
		DATADIR="${D}/usr/share/mplayer${namesuf}" \
654
		MANDIR="${D}/usr/share/man" \
656
		MANDIR="${D}/usr/share/man" \
655
		INSTALLSTRIP="" \
657
		INSTALLSTRIP="" \
656
		install || die "emake install failed"
658
		install || die "emake install failed"
657
659
660
	S="${S}/mplayer"
661
	cd "${S}"
658
	dodoc AUTHORS Changelog Copyright README etc/codecs.conf || die
662
	dodoc AUTHORS Changelog Copyright README etc/codecs.conf || die
659
663
660
	docinto tech/
664
	docinto tech/
Lines 674-700 Link Here
674
		dohtml -r "${S}"/DOCS/HTML/* || die
678
		dohtml -r "${S}"/DOCS/HTML/* || die
675
	fi
679
	fi
676
680
677
	# Install the default Skin and Gnome menu entry
678
	if use gmplayer; then
679
		dodir /usr/share/mplayer/skins
680
		cp -r "${WORKDIR}/Blue" \
681
			"${D}/usr/share/mplayer/skins/default" || die "cp skins died"
682
683
		# Fix the symlink
684
		rm -rf "${D}/usr/bin/gmplayer"
685
		dosym mplayer /usr/bin/gmplayer
686
	fi
687
688
	if ! use ass && ! use truetype; then
681
	if ! use ass && ! use truetype; then
689
		dodir /usr/share/mplayer/fonts
682
		dodir /usr/share/mplayer${namesuf}/fonts
690
		# Do this generic, as the mplayer people like to change the structure
683
		# Do this generic, as the mplayer people like to change the structure
691
		# of their zips ...
684
		# of their zips ...
692
		for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
685
		for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
693
			cp -pPR "${i}" "${D}/usr/share/mplayer/fonts"
686
			cp -pPR "${i}" "${D}/usr/share/mplayer${namesuf}/fonts"
694
		done
687
		done
695
		# Fix the font symlink ...
688
		# Fix the font symlink ...
696
		rm -rf "${D}/usr/share/mplayer/font"
689
		rm -rf "${D}/usr/share/mplayer${namesuf}/font"
697
		dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
690
		dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer${namesuf}/font
698
	fi
691
	fi
699
692
700
	insinto /etc/mplayer
693
	insinto /etc/mplayer
Lines 719-740 Link Here
719
_EOF_
712
_EOF_
720
	fi
713
	fi
721
714
722
	dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
715
	dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer${namesuf}/mplayer.conf
723
	newbin "${S}/TOOLS/midentify.sh" midentify || die
716
	newbin "${S}/TOOLS/midentify.sh" midentify${namesuf} || die
717
718
	if [[ "${namesuf}" != "" ]] && use symlink; then
719
		dosym mplayer-git /usr/bin/mplayer
720
		dosym mencoder-git /usr/bin/mencoder
721
		dosym midentify-git /usr/bin/midentify
722
	fi
724
}
723
}
725
724
726
pkg_preinst() {
725
pkg_preinst() {
727
	[[ -d ${ROOT}/usr/share/mplayer/Skin/default ]] && \
726
	[[ -d ${ROOT}/usr/share/mplayer${namesuf}/Skin/default ]] && \
728
		rm -rf "${ROOT}/usr/share/mplayer/Skin/default"
727
		rm -rf "${ROOT}/usr/share/mplayer${namesuf}/Skin/default"
729
}
728
}
730
729
731
pkg_postrm() {
730
pkg_postrm() {
732
	# Cleanup stale symlinks
731
	# Cleanup stale symlinks
733
	[ -L "${ROOT}/usr/share/mplayer/font" -a \
732
	[ -L "${ROOT}/usr/share/mplayer${namesuf}/font" -a \
734
			! -e "${ROOT}/usr/share/mplayer/font" ] && \
733
			! -e "${ROOT}/usr/share/mplayer${namesuf}/font" ] && \
735
		rm -f "${ROOT}/usr/share/mplayer/font"
734
		rm -f "${ROOT}/usr/share/mplayer${namesuf}/font"
736
735
737
	[ -L "${ROOT}/usr/share/mplayer/subfont.ttf" -a \
736
	[ -L "${ROOT}/usr/share/mplayer${namesuf}/subfont.ttf" -a \
738
			! -e "${ROOT}/usr/share/mplayer/subfont.ttf" ] && \
737
			! -e "${ROOT}/usr/share/mplayer${namesuf}/subfont.ttf" ] && \
739
		rm -f "${ROOT}/usr/share/mplayer/subfont.ttf"
738
		rm -f "${ROOT}/usr/share/mplayer${namesuf}/subfont.ttf"
740
}
739
}

Return to bug 312295