# Avoids needing curl on Linux
CONFIGURE_ARGS+= --disable-crashreporter
+# FIXME: remove this after
+CONFIGURE_ARGS+= --enable-debug
+
PYTHON_FOR_BUILD_ONLY= yes
.include "../../lang/python/application.mk"
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
SHA1 (patch-aq) = 91a9a3f39286a9fedfd4122084f2fb9f427040fb
SHA1 (patch-ar) = fab004236f5f0224386bb7ca7e64210a1b2b3cc5
SHA1 (patch-as) = c0c53394379166419c2aaed8410715c6c98f8a14
+SHA1 (patch-at) = 486a94ff0fd7041621ec6306b9d5c66cf721ac3c
SHA1 (patch-ax) = cbfe7a6392d5d2fefff123679ba1c056b1cc0aa9
SHA1 (patch-ba) = 3bd713cf2edcc61f489cea8269ca60e27c26f1d9
SHA1 (patch-bb) = c7286542a9fe97ac9819a00c345272efb7e90e9c
--- /dev/null
+$NetBSD$
+
+--- gfx/src/thebes/Makefile.in.orig 2009-02-05 07:58:57.000000000 +0900
++++ gfx/src/thebes/Makefile.in
+@@ -139,6 +139,14 @@ EXTRA_DSO_LDOPTS += \
+ $(TK_LIBS) \
+ $(NULL)
+
++ifeq ($(OS_ARCH),Darwin)
++_libs_to_fix = \
++ -lxul \
++ -lmozjs \
++ $(filter -l%, $(NSS_LIBS))
++EXTRA_DSO_LDOPTS += $(foreach library, $(patsubst -l%, $(LIB_PREFIX)%$(DLL_SUFFIX), $(_libs_to_fix)), -dylib_file $(libdir)/$(MOZILLA_PKG_NAME)/$(library):$(DIST)/bin/$(library))
++endif
++
+ ifdef MOZ_X11
+ EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS)
+ endif