Ticket #14804: spidermonkey.diff
File spidermonkey.diff, 3.4 KB (added by akira@…, 17 years ago) |
---|
-
files/spidermonkey-1.5-threadsafe.diff
1 --- Makefile.ref.orig 200 6-03-06 03:31:04.000000000 +00002 +++ Makefile.ref 200 6-03-06 03:33:03.000000000 +00003 @@ -6 1,11 +61,11 @@1 --- Makefile.ref.orig 2008-03-27 00:51:10.000000000 +0900 2 +++ Makefile.ref 2008-03-27 00:52:01.000000000 +0900 3 @@ -63,11 +63,11 @@ 4 4 5 5 ifdef JS_THREADSAFE 6 6 DEFINES += -DJS_THREADSAFE 7 -INCLUDES += -I ../../dist/$(OBJDIR)/include7 -INCLUDES += -I$(DIST)/include/nspr 8 8 +INCLUDES += -I__PREFIX__/include/nspr 9 9 ifdef USE_MSVC 10 OTHER_LIBS += ../../dist/$(OBJDIR)/lib/libnspr${NSPR_LIBSUFFIX}.lib10 OTHER_LIBS += $(DIST)/lib/libnspr$(NSPR_LIBSUFFIX).lib 11 11 else 12 -OTHER_LIBS += -L ../../dist/$(OBJDIR)/lib -lnspr${NSPR_LIBSUFFIX}13 +OTHER_LIBS += -L__PREFIX__ $(LIBDIR) -lnspr${NSPR_LIBSUFFIX}12 -OTHER_LIBS += -L$(DIST)/lib -lnspr$(NSPR_LIBSUFFIX) 13 +OTHER_LIBS += -L__PREFIX__/lib -lnspr$(NSPR_LIBSUFFIX) 14 14 endif 15 15 endif 16 16 -
files/patch-config-Darwin.mk
1 $NetBSD: patch-ac,v 1.2 2006/12/05 18:04:18 tron Exp $ 2 3 --- config/Darwin.mk.orig 2005-02-12 20:10:33.000000000 +0000 4 +++ config/Darwin.mk 2006-12-05 16:41:04.000000000 +0000 1 --- config/Darwin.mk.orig 2008-03-27 00:54:53.000000000 +0900 2 +++ config/Darwin.mk 2008-03-27 00:57:23.000000000 +0900 5 3 @@ -43,13 +43,13 @@ 6 4 # Just ripped from Linux config 7 5 # … … 15 13 +OS_CFLAGS = -DJS_THREADSAFE -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN 16 14 17 15 RANLIB = ranlib 18 -MKSHLIB = libtool$(XMKSHLIBOPTS) -framework System16 -MKSHLIB = $(CC) -dynamiclib $(XMKSHLIBOPTS) -framework System 19 17 +MKSHLIB = $(CC) -framework System -dynamiclib $(XMKSHLIBOPTS) -lm -lplds4 -lplc4 -lnspr4 $(LDFLAGS) 20 18 21 #.c.o:22 # $(CC) -c -MD $*.d $(CFLAGS) $<23 @@ -5 7,7 +57,6 @@19 SO_SUFFIX = dylib 20 21 @@ -59,7 +59,6 @@ 24 22 CPU_ARCH = $(shell uname -m) 25 23 ifeq (86,$(findstring 86,$(CPU_ARCH))) 26 24 CPU_ARCH = x86 … … 28 26 endif 29 27 GFX_ARCH = x 30 28 31 @@ -6 5,14 +64,6 @@29 @@ -67,14 +66,6 @@ 32 30 33 31 ASFLAGS += -x assembler-with-cpp 34 32 -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name spidermonkey 6 version 1.60 7 revision 1 6 version 1.7.0 8 7 categories lang 9 8 platforms darwin 10 maintainers nomaintainer9 maintainers akira openmaintainer 11 10 description JavaScript-C Engine 12 11 long_description ${description} 13 12 … … 17 16 http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ \ 18 17 ftp://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ 19 18 distname js-${version} 20 checksums md5 bd8f021e43a8fbbec55ac2cd3d483243 19 checksums md5 5571134c3863686b623ebe4e6b1f6fe6 \ 20 sha1 1a99e8e10cb6600a03ea98895583a8ed42136d1f \ 21 rmd160 6eadf1ac7c10a13b3db3d499856c9e18ddbcdfdb 21 22 22 23 depends_build port:readline \ 23 24 port:nspr … … 39 40 40 41 use_configure no 41 42 42 build.args - j1 -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib JS_THREADSAFE=143 build.args -f Makefile.ref LIBDIR="/lib" SO_SUFFIX=dylib JS_THREADSAFE=1 43 44 44 45 post-build { 45 46 system "ranlib ${worksrcpath}/Darwin_OPT.OBJ/libjs.a"