Subject: mplayer vs. realplayer codecs on != Linux
To: None <tech-pkg@netbsd.org>
From: Marc Recht <recht@netbsd.org>
List: tech-pkg
Date: 08/23/2004 22:53:17
--==========3069F68C001CC31300E0==========
Content-Type: multipart/mixed;
boundary="==========A4E127CB098F884EE1AD=========="
--==========A4E127CB098F884EE1AD==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi!
Currently the mplayer depends on the RealPlayer codes on i386, powerpc and=20
alpha regardless to the used operating system.. Since the RealPlayer codecs =
are Linux shared libs that doesn't really work out on any other system.=20
Unfortunately, the fallback to the win32 DLLs also doesn't work in the case =
that mplayer has been built with --with-reallibdir (at least not on my=20
NetBSD 2.0_BETA system). So, if nobody objects then I'll commit the=20
attached fix.
Cheers,
Marc
--==========A4E127CB098F884EE1AD==========
Content-Type: text/plain; charset=iso-8859-1; name="mplayer-rp.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="mplayer-rp.diff"; size=1403
Index: Makefile.common
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/multimedia/mplayer-share/Makefile.common,v
retrieving revision 1.16
diff -u -u -b -r1.16 Makefile.common
--- Makefile.common 20 Jul 2004 22:04:44 -0000 1.16
+++ Makefile.common 23 Aug 2004 20:46:15 -0000
@@ -63,7 +63,7 @@
BUILD_DEFS+=3D MPLAYER_ENABLE_RUNTIME_CPU_DETECTION
.endif
=20
-.if ${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "powerpc" || =
${MACHINE_ARCH} =3D=3D "alpha"
+.if (${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "powerpc" || =
${MACHINE_ARCH} =3D=3D "alpha") && ${OPSYS} =3D=3D "Linux"
CONFIGURE_ARGS+=3D --with-reallibdir=3D"${LOCALBASE}/lib/RealPlayer8-Codecs=
"
.endif
=20
Index: Makefile.depends
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/multimedia/mplayer-share/Makefile.depends,v
retrieving revision 1.12
diff -u -u -b -r1.12 Makefile.depends
--- Makefile.depends 18 Aug 2004 13:35:06 -0000 1.12
+++ Makefile.depends 23 Aug 2004 20:46:15 -0000
@@ -17,7 +17,7 @@
DEPENDS+=3D win32-codecs>=3D011227:../../multimedia/win32-codecs
.endif
=20
-.if ${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "powerpc" || =
${MACHINE_ARCH} =3D=3D "alpha"
+.if (${MACHINE_ARCH} =3D=3D "i386" || ${MACHINE_ARCH} =3D=3D "powerpc" || =
${MACHINE_ARCH} =3D=3D "alpha") && ${OPSYS} =3D=3D "Linux"
DEPENDS+=3D realplayer-codecs>=3D8nb2:../../multimedia/realplayer-codecs
.endif
=20
--==========A4E127CB098F884EE1AD==========--
--==========3069F68C001CC31300E0==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; size=186
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (NetBSD)
iD8DBQFBKllD7YQCetAaG3MRAqoyAJ9vLnoVnOTEmoGMyuo1cNtKJTNA2ACeLlIS
wy89qZ1nDo/7qRwC/leYnYw=
=9IAB
-----END PGP SIGNATURE-----
--==========3069F68C001CC31300E0==========--