]> git.pld-linux.org Git - packages/liferea.git/blame - liferea-xulrunner.patch
- updated for 1.4.20
[packages/liferea.git] / liferea-xulrunner.patch
CommitLineData
4a2e7b63
MB
1diff -urN liferea-1.4.20/configure.ac liferea-1.4.20.new/configure.ac
2--- liferea-1.4.20/configure.ac 2008-09-28 12:14:41.000000000 +0200
3+++ liferea-1.4.20.new/configure.ac 2008-10-06 16:37:24.000000000 +0200
45e75209
MB
4@@ -184,11 +184,6 @@
5 AC_SUBST([XULRUNNER_HOME])
6 AC_SUBST(XULRUNNER_CFLAGS)
7 AC_SUBST(XULRUNNER_LIBS)
8-
9- if test "x$XULRUNNER_HOME" = "x" ; then
4a2e7b63 10- AC_MSG_RESULT([Fatal: XulRunner enabled, but library directory could not be determined! This usually happens when running against unstable versions of XulRunner 1.9 which is not supported in all Linux distros. Please compile against a stable build of XulRunner 1.9 instead.])
45e75209
MB
11- exit 1
12- fi
13
14 MOZILLA_LIB_ROOT=`$PKG_CONFIG --libs-only-L $XULRUNNER_PROVIDER | awk '{print $1}' | cut -c 3-`
15
4a2e7b63
MB
16diff -urN liferea-1.4.20/src/mozilla/Makefile.am liferea-1.4.20.new/src/mozilla/Makefile.am
17--- liferea-1.4.20/src/mozilla/Makefile.am 2007-07-23 19:56:53.000000000 +0200
18+++ liferea-1.4.20.new/src/mozilla/Makefile.am 2008-10-06 16:36:16.000000000 +0200
abb1793e 19@@ -37,14 +37,22 @@
9151307e
MB
20
21 ## the XulRunner support module
22
23+XULRUNNER_EXTRA_CFLAGS = \
abb1793e 24+ -I/usr/include/xulrunner \
9151307e 25+ -I/usr/include/xulrunner/dom \
abb1793e 26+ -I/usr/include/xulrunner/gtkembedmoz \
9151307e 27+ -I/usr/include/xulrunner/necko \
abb1793e
MB
28+ -I/usr/include/xulrunner/webbrwsr \
29+ -I/usr/include/xulrunner/xpcom
9151307e
MB
30+
31 liblihtmlx_la_SOURCES = \
32 mozembed.c mozembed.h \
33 mozsupport.cpp mozsupport.h \
34 xulrunner.c
35
36 liblihtmlx_la_LIBADD = $(PACKAGE_LIBS) $(XULRUNNER_LIBS) $(INTLLIBS)
37-liblihtmlx_la_CFLAGS = $(XULRUNNER_CFLAGS) $(PACKAGE_CFLAGS) -DXULRUNNER_HOME=\""$(XULRUNNER_HOME)\""
38-liblihtmlx_la_CXXFLAGS = $(XULRUNNER_CFLAGS) $(PACKAGE_CFLAGS)
abb1793e 39+liblihtmlx_la_CFLAGS = $(XULRUNNER_CFLAGS) $(XULRUNNER_EXTRA_CFLAGS) $(PACKAGE_CFLAGS) -DXULRUNNER_HOME=\""$(XULRUNNER_HOME)\""
9151307e
MB
40+liblihtmlx_la_CXXFLAGS = $(XULRUNNER_CFLAGS) $(XULRUNNER_EXTRA_CFLAGS) $(PACKAGE_CFLAGS)
41
42 if PLATFORM_WIN32
43
4a2e7b63
MB
44diff -urN liferea-1.4.20/src/mozilla/xulrunner.c liferea-1.4.20.new/src/mozilla/xulrunner.c
45--- liferea-1.4.20/src/mozilla/xulrunner.c 2008-07-01 19:04:55.000000000 +0200
46+++ liferea-1.4.20.new/src/mozilla/xulrunner.c 2008-10-06 16:36:16.000000000 +0200
abb1793e
MB
47@@ -30,10 +30,12 @@
48
49 static void xulrunner_init(void) {
50
51+#ifndef XPCOM_GLUE
52 /* gtk_moz_embed_set_comp_path() must not be called
53 without a component path for XulRunner. Passing
54 NULL will crash Liferea. */
55 gtk_moz_embed_set_comp_path(XULRUNNER_HOME);
56+#endif
57
58 mozembed_init();
59 }
This page took 0.033455 seconds and 4 git commands to generate.