Author: ajorg
Date: 2008-01-11 19:20:06 -0500 (Fri, 11 Jan 2008)
New Revision: 92697
Modified:
trunk/moon/ChangeLog
trunk/moon/configure.ac
trunk/moon/plugin/ChangeLog
trunk/moon/plugin/Makefile.am
trunk/moon/plugin/plugin-proxy.cpp
Log:
2008-10-11 Andrew Jorgensen <[EMAIL PROTECTED]>
* plugin-proxy.cpp: Add conditionals for ffmpeg inclusion
* Makefile.am: Respect ffmpeg inclusion in xpi install
* configure.ac: Fixed a problem with ifs that prevented --without-ffmpeg
working with --enable-user-plugin
Modified: trunk/moon/ChangeLog
===================================================================
--- trunk/moon/ChangeLog 2008-01-12 00:11:10 UTC (rev 92696)
+++ trunk/moon/ChangeLog 2008-01-12 00:20:06 UTC (rev 92697)
@@ -1,3 +1,8 @@
+2008-01-11 Andrew Jorgensen <[EMAIL PROTECTED]>
+
+ * configure.ac: Fixed a problem with ifs that prevented --without-ffmpeg
+ working with --enable-user-plugin
+
2008-01-11 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* configure.ac, README: Rename SL 1.1 to SL 2.0.
Modified: trunk/moon/configure.ac
===================================================================
--- trunk/moon/configure.ac 2008-01-12 00:11:10 UTC (rev 92696)
+++ trunk/moon/configure.ac 2008-01-12 00:20:06 UTC (rev 92697)
@@ -147,7 +147,6 @@
AC_MSG_ERROR([ffmpeg and its associated libraries are not installed.
You need libavcodec, libavformat and libswscale development kits])
fi
- if test $user_plugin = yes; then
avutil_libdir="$(pkg-config --variable=libdir libavutil)"
swscale_libdir="$(pkg-config --variable=libdir libswscale)"
avcodec_libdir="$(pkg-config --variable=libdir libavcodec)"
@@ -166,7 +165,6 @@
AC_SUBST([mono_libdir])
AC_SUBST([mono_dlldir])
AC_SUBST([mono_sysconfdir])
-fi
AC_MSG_CHECKING(alsa)
if pkg-config alsa ; then
Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2008-01-12 00:11:10 UTC (rev 92696)
+++ trunk/moon/plugin/ChangeLog 2008-01-12 00:20:06 UTC (rev 92697)
@@ -1,3 +1,8 @@
+2008-10-11 Andrew Jorgensen <[EMAIL PROTECTED]>
+
+ * plugin-proxy.cpp: Add conditionals for ffmpeg inclusion
+ * Makefile.am: Respect ffmpeg inclusion in xpi install
+
2008-01-10 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* plugin.mdp: Added.
Modified: trunk/moon/plugin/Makefile.am
===================================================================
--- trunk/moon/plugin/Makefile.am 2008-01-12 00:11:10 UTC (rev 92696)
+++ trunk/moon/plugin/Makefile.am 2008-01-12 00:20:06 UTC (rev 92697)
@@ -56,11 +56,14 @@
novell_moonlight_xpi_CONTENTS = $(srcdir)/install.js \
.libs/libmoonloader.so \
.libs/libmoonplugin.so \
- $(top_builddir)/src/.libs/libmoon.so \
- $(avformat_libdir)/libavformat.so
+ $(top_builddir)/src/.libs/libmoon.so
+
+if INCLUDE_FFMPEG
+novell_moonlight_xpi_CONTENTS += $(avformat_libdir)/libavformat.so
$(avutil_libdir)/libavutil.so \
$(swscale_libdir)/libswscale.so \
$(avcodec_libdir)/libavcodec.so
+endif INCLUDE_FFMPEG
if INCLUDE_MONO_RUNTIME
novell_moonlight_xpi_CONTENTS += moonlight.exe \
@@ -71,11 +74,13 @@
-rm -f $@
-rm -rf .xpinstall/
mkdir -p .xpinstall/moonlight/
+if INCLUDE_FFMPEG
cp -L $(avutil_libdir)/libavutil.so .xpinstall/moonlight/
cp -L $(swscale_libdir)/libswscale.so .xpinstall/moonlight/
cp -L $(avcodec_libdir)/libavcodec.so .xpinstall/moonlight/
cp -L $(avformat_libdir)/libavformat.so .xpinstall/moonlight/
find .xpinstall -name \*.so -exec strip '{}' ';'
+endif INCLUDE_FFMPEG
cp -L $(srcdir)/install.js .xpinstall/
cp -L .libs/libmoonloader.so .xpinstall/
cp -L .libs/libmoonplugin.so .xpinstall/moonlight/
Modified: trunk/moon/plugin/plugin-proxy.cpp
===================================================================
--- trunk/moon/plugin/plugin-proxy.cpp 2008-01-12 00:11:10 UTC (rev 92696)
+++ trunk/moon/plugin/plugin-proxy.cpp 2008-01-12 00:20:06 UTC (rev 92697)
@@ -44,6 +44,7 @@
#if PLUGIN_INSTALL
plugin_path = g_build_filename (g_get_home_dir(), ".mozilla",
"plugins", "moonlight", "libmoonplugin.so", NULL);
+#if INCLUDE_FFMPEG
// load libavutil
char *avutil_path = g_build_filename (g_get_home_dir(), ".mozilla",
"plugins", "moonlight", "libavutil.so", NULL);
void *real_avutil = dlopen (avutil_path, RTLD_NOW | RTLD_GLOBAL);
@@ -79,6 +80,7 @@
return FALSE;
}
g_free (avformat_path);
+#endif
#if INCLUDE_MONO_RUNTIME
// load libmono
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches