summaryrefslogtreecommitdiff
path: root/www/seamonkey/patches/patch-mozilla_js_src_Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/seamonkey/patches/patch-mozilla_js_src_Makefile.in')
-rw-r--r--www/seamonkey/patches/patch-mozilla_js_src_Makefile.in50
1 files changed, 47 insertions, 3 deletions
diff --git a/www/seamonkey/patches/patch-mozilla_js_src_Makefile.in b/www/seamonkey/patches/patch-mozilla_js_src_Makefile.in
index 69c25e81f31..dbbb5903a7c 100644
--- a/www/seamonkey/patches/patch-mozilla_js_src_Makefile.in
+++ b/www/seamonkey/patches/patch-mozilla_js_src_Makefile.in
@@ -1,8 +1,52 @@
-$NetBSD: patch-mozilla_js_src_Makefile.in,v 1.1 2013/05/23 13:25:30 ryoon Exp $
+$NetBSD: patch-mozilla_js_src_Makefile.in,v 1.2 2013/09/28 14:37:05 ryoon Exp $
---- mozilla/js/src/Makefile.in.orig 2013-05-03 03:07:57.000000000 +0000
+--- mozilla/js/src/Makefile.in.orig 2013-09-16 18:26:39.000000000 +0000
+++ mozilla/js/src/Makefile.in
-@@ -791,6 +791,13 @@ EXTRA_LIBS += -lposix4 -ldl -lnsl -lsock
+@@ -237,10 +237,14 @@ endif
+ # ICU headers need to be available whether we build with the complete
+ # Internationalization API or not - ICU stubs rely on them.
+
++ifdef MOZ_NATIVE_ICU
++LOCAL_INCLUDES += $(MOZ_ICU_CFLAGS)
++else
+ LOCAL_INCLUDES += \
+ -I$(topsrcdir)/../../intl/icu/source/common \
+ -I$(topsrcdir)/../../intl/icu/source/i18n \
+ $(NULL)
++endif
+
+ ifdef ENABLE_INTL_API
+
+@@ -256,6 +260,7 @@ ifeq ($(OS_ARCH),WINNT)
+ cp -p intl/icu/lib/s$(libname)$(ICU_LIB_SUFFIX).lib intl/icu/lib/$(libname).lib;)
+ endif
+
++ifndef MOZ_NATIVE_ICU
+ # - Build ICU as part of the "export" target, so things get built
+ # in the right order.
+ # - ICU requires GNU make according to its readme.html. pymake can't be used
+@@ -269,6 +274,7 @@ export::
+
+ distclean clean::
+ $(call SUBMAKE,$@,intl/icu)
++endif
+
+ endif
+
+@@ -408,7 +414,11 @@ ifneq (,$(MOZ_ZLIB_LIBS)$(MOZ_GLUE_LDFLA
+ DEFINES += -DUSE_ZLIB
+ endif
+
+-SHARED_LIBRARY_LIBS += $(ICU_LIBS)
++ifdef MOZ_NATIVE_ICU
++EXTRA_DSO_LDOPTS += $(MOZ_ICU_LIBS)
++else
++SHARED_LIBRARY_LIBS += $(MOZ_ICU_LIBS)
++endif
+
+ # Prevent floating point errors caused by VC++ optimizations
+ ifdef _MSC_VER
+@@ -467,6 +477,13 @@ EXTRA_LIBS += -lposix4 -ldl -lnsl -lsock
endif
endif