[MPlayer-dev-eng] Re: [PATCH] Real Audio/Video DLL support for Mac OS X

Donnie Smith xc0bead2d8130df59 at f4n.org
Wed Jun 25 21:20:40 CEST 2003


On Wed, Jun 25, 2003 at 17:19:03 +0200, Diego Biurrun wrote:
> Try having a look at some of the other checks in configure and do some copy
> and paste.  It should not be too hard for you :-)
If you say so... ;)

I made SHLB support active if "Mac OS X specific features" (_macosx)
are available, should give the expected results I guess. Patch for
configure attached. 

Should output such as "Don't forget to copy pncrt.Shlb to the Codecs dir!"
be output when the configure script is run, or should it simply result
in the error (when running mplayer) I mentioned in my last mail, and
letting the user solve it by reading the docs (which I will update
once the questions in my previous mail are answered).

I also found out the cause of the libiconv problems:
libvo/font_load_ft.c uses iconv without checking HAVE_ICONV,
guess font_load_ft.c's maintainer should fix the code... I'll check
why the configure script fails to detect my iconv (I have it installed).

Donnie Smith
-------------- next part --------------
--- configure.orig	2003-06-25 20:32:50.000000000 +0200
+++ configure	2003-06-25 21:13:28.000000000 +0200
@@ -179,6 +179,7 @@
   --enable-jpeg		 enable jpeg input/output support [autodetect]
   --enable-liblzo	 enable external liblzo support [autodetect]
   --disable-win32        disable Win32 DLL support [autodetect]
+  --disable-macshlb      disable Mac OS X SHLB support [autodetect]
   --disable-dshow        disable Win32/DirectShow support [autodetect]
   --disable-qtx          disable Quicktime codecs [autodetect]
   --disable-xanim        disable XAnim DLL support [autodetect]
@@ -1055,6 +1056,7 @@
 _alsa=auto
 _fastmemcpy=yes
 _unrarlib=yes
+_macshlb=auto
 _win32=auto
 _dshow=yes
 _select=yes
@@ -1409,6 +1411,8 @@
   --disable-mmx) # 3Dnow! and MMX2 require MMX
         _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;;
 
+  --enable-macshlb) _macshlb=yes ;;
+  --disable-macshlb) _macshlb=no ;;
   --enable-win32) _win32=yes ;;
   --disable-win32) _win32=no _dshow=no ;;
   --enable-dshow) _win32=yes _dshow=yes ;;
@@ -4225,6 +4229,21 @@
   echores "$_faad"
 fi
 
+echocheck "Mac OS X codec SHLB support"
+if test "$_macshlb" = auto ; then
+  if test "$_macosx" = yes ; then
+    _macshlb=yes
+  else
+    _macshlb=no
+  fi
+fi
+echores "$_macshlb"
+if test "$_macshlb" = yes ; then
+  _def_macshlb='#define USE_MACSHLB 1'
+else
+  _def_macshlb='#undef USE_MACSHLB'
+fi
+
 if test "$_win32" = auto ; then
   if x86 ; then
     qnx && _win32=no
@@ -4371,18 +4390,18 @@
 echocheck "RealPlayer DLL"
 if test "$_real" = auto ; then
   _real=no
-  if test "$_dl" = yes || test "$_win32" = yes ; then
+  if test "$_dl" = yes || test "$_win32" = yes || test "$_macshlb" = yes ; then
 #  if test "$_dl" = yes  ; then
-    if linux || freebsd || netbsd || cygwin || mingw32 ; then
+    if linux || freebsd || netbsd || cygwin || mingw32 || darwin ; then
       _real=yes
     else
-      echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MINGW32)"
+      echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MINGW32/Darwin)"
     fi
     if test "$_real" = yes ; then
       if test -z "$_reallibdir" ; then
 	for I in "$_libdir/codecs" "$_libdir/real" /usr/lib/real \
 	  /usr/lib/RealPlayer{9,8,}/Codecs /usr/local/RealPlayer{9,8,}/Codecs \
-	  /usr/local/lib/RealPlayer{9,8,}/Codecs /opt/RealPlayer{9,8,}/{Real/,}Codecs ; do
+	  /usr/local/lib/RealPlayer{9,8,}/Codecs /opt/RealPlayer{9,8,}/{Real/,}Codecs {~,}/Applications/RealOne\ Player.app/Contents/MacOS/Library/Codecs ; do
           if test -d "$I" ; then
             _reallibdir="$I"
             break
@@ -5655,6 +5674,9 @@
 /* Mac OS X specific features */
 $_def_macosx
 
+/* Mac OS X SHLB support */
+$_def_macshlb
+
 /* Build our Win32-loader */
 $_def_win32_loader
 


More information about the MPlayer-dev-eng mailing list