[50040] trunk/dports/multimedia/mplayer-devel

jeremyhu at macports.org jeremyhu at macports.org
Thu Apr 23 02:18:03 PDT 2009


Revision: 50040
          http://trac.macports.org/changeset/50040
Author:   jeremyhu at macports.org
Date:     2009-04-23 02:18:02 -0700 (Thu, 23 Apr 2009)
Log Message:
-----------
mplayer-devel: Fix symbol loading with the GLX output plugin.

Modified Paths:
--------------
    trunk/dports/multimedia/mplayer-devel/Portfile

Added Paths:
-----------
    trunk/dports/multimedia/mplayer-devel/files/gl_dlsym.patch

Modified: trunk/dports/multimedia/mplayer-devel/Portfile
===================================================================
--- trunk/dports/multimedia/mplayer-devel/Portfile	2009-04-23 08:43:41 UTC (rev 50039)
+++ trunk/dports/multimedia/mplayer-devel/Portfile	2009-04-23 09:18:02 UTC (rev 50040)
@@ -6,7 +6,7 @@
 
 name                mplayer-devel
 version             29181
-revision            0
+revision            1
 categories          multimedia
 maintainers         acho openmaintainer
 platforms           darwin
@@ -78,7 +78,7 @@
 	--disable-esd --disable-lirc --disable-mng --disable-libdirac-lavc \
 	--disable-libschroedinger-lavc
 
-patchfiles configure.x11.patch
+patchfiles configure.x11.patch gl_dlsym.patch
 
 post-destroot {
     xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
@@ -250,11 +250,18 @@
 }
 
 variant glx requires x11 description {Enable glx output support.  Due to a bug in Mplayer's build system, this disables OSX-specific features} {
-    depends_lib-append port:mesa
+    depends_lib-append      port:mesa
     configure.args-delete   --disable-gl --enable-macosx --enable-macosx-finder-support --enable-macosx-bundle --enable-qtx
     configure.args-append   --enable-gl --disable-macosx
 }
 
+variant debug description {Compile with debugging symbols} {
+    configure.args-append   --enable-debug=gdb3 --disable-altivec
+    #post-patch {
+    #    reinplace "s:-O2:-O0:g" ${worksrcpath}/configure
+    #}
+}
+
 platform darwin {
     build.env           LD=cc
 }

Added: trunk/dports/multimedia/mplayer-devel/files/gl_dlsym.patch
===================================================================
--- trunk/dports/multimedia/mplayer-devel/files/gl_dlsym.patch	                        (rev 0)
+++ trunk/dports/multimedia/mplayer-devel/files/gl_dlsym.patch	2009-04-23 09:18:02 UTC (rev 50040)
@@ -0,0 +1,11 @@
+--- libvo/gl_common.c.bak	2009-04-23 02:09:43.000000000 -0700
++++ libvo/gl_common.c	2009-04-23 02:10:18.000000000 -0700
+@@ -1547,7 +1547,7 @@ static void *getdladdr(const char *s) {
+     handle = dlopen(NULL, RTLD_LAZY);
+   return dlsym(handle, s);
+ #else
+-  return dlsym(0, s);
++  return dlsym(RTLD_DEFAULT, s);
+ #endif
+ #else
+   return NULL;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090423/d5162fb1/attachment.html>


More information about the macports-changes mailing list