[SCM] mediatomb/master: Add detection for -lmozjs185 during the configure script.

micove-guest at users.alioth.debian.org micove-guest at users.alioth.debian.org
Sun Mar 4 04:52:13 UTC 2012


The following commit has been merged in the master branch:
commit 856fe385776293576b523349aa250d7e2cdc4a9c
Author: Miguel Colon <debian.micove at gmail.com>
Date:   Sat Mar 3 20:14:30 2012 -0500

    Add detection for -lmozjs185 during the configure script.

diff --git a/debian/patches/libmozjs185_support.patch b/debian/patches/libmozjs185_support.patch
new file mode 100644
index 0000000..147f2ec
--- /dev/null
+++ b/debian/patches/libmozjs185_support.patch
@@ -0,0 +1,52 @@
+Description: Add detection for libmozjs185.so during the configure script.
+ Use this library instead of the one provided by iceweasel. This enables js
+ support in mediatomb.
+Bug-Debian: http://bugs.debian.org/631046
+Author: Miguel Colon <debian.micove at gmail.com>
+Last-Update: 2012-03-03
+
+--- mediatomb-0.12.1.orig/configure.ac
++++ mediatomb-0.12.1/configure.ac
+@@ -1036,6 +1036,13 @@ if test "x$JS_OK" = xyes; then
+                 ],
+                 [
+                     unset ac_cv_lib_smjs_JS_NewObject
++                    AC_CHECK_LIB(mozjs185, JS_NewObject,
++                        [
++                            MOZLIB=mozjs185
++                            JS_LIBS="-lmozjs185"
++                        ],
++                        [
++                    unset ac_cv_lib_mozjs185_JS_NewObject
+                     AC_CHECK_LIB(mozjs, JS_NewObject,
+                         [
+                             MOZLIB=mozjs
+@@ -1057,6 +1064,13 @@ if test "x$JS_OK" = xyes; then
+                                             MOZLIB=smjs
+                                         ],
+                                         [
++                                    unset ac_cv_lib_mozjs185_JS_NewObject
++                                    AC_CHECK_LIB(mozjs185, JS_NewObject,
++                                        [
++                                            JS_LIBS="-L$SEARCH_DIR_LIBS -lmozjs185"
++                                            MOZLIB=mozjs185
++                                        ],
++                                        [
+                                             LDFLAGS="-L$SEARCH_DIR_LIBS $LDFLAGS_SAVE -lmozjs"
+                                             unset ac_cv_lib_mozjs_JS_NewObject
+                                             AC_CHECK_LIB(mozjs, JS_NewObject,
+@@ -1071,10 +1085,14 @@ if test "x$JS_OK" = xyes; then
+                                             )
+                                         ]
+                                     )
++                                        ]
++                                    )
+                                 ]
+                             )
+                         ]
+                     )
++                        ]
++                    )
+                 ]
+             )
+        ]
diff --git a/debian/patches/series b/debian/patches/series
index b3085a5..28f920f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ libav_0.7_support.patch
 gcc_4.6_support.patch
 js_1.8_support.patch
 js_parse.patch
+libmozjs185_support.patch

-- 
MediaTomb packaging



More information about the pkg-multimedia-commits mailing list