diff options
Diffstat (limited to 'data/spidermonkey')
-rw-r--r-- | data/spidermonkey/_metadata/description | 2 | ||||
l--------- | data/spidermonkey/_metadata/maintainer | 1 | ||||
-rw-r--r-- | data/spidermonkey/_metadata/priority | 1 | ||||
-rw-r--r-- | data/spidermonkey/_metadata/section | 1 | ||||
-rw-r--r-- | data/spidermonkey/_metadata/version | 1 | ||||
-rw-r--r-- | data/spidermonkey/js-1.7.0.tar.gz | bin | 0 -> 1165607 bytes | |||
-rw-r--r-- | data/spidermonkey/jsautocfg.h | 52 | ||||
-rw-r--r-- | data/spidermonkey/make.sh | 10 | ||||
-rw-r--r-- | data/spidermonkey/port.diff | 97 |
9 files changed, 165 insertions, 0 deletions
diff --git a/data/spidermonkey/_metadata/description b/data/spidermonkey/_metadata/description new file mode 100644 index 000000000..005d9a0c9 --- /dev/null +++ b/data/spidermonkey/_metadata/description @@ -0,0 +1,2 @@ +this package isn't described yet +This package, which I'm certain is incredibly interesting, has yet to be described. This is probably because Jay has spent days getting all kinds of bookkeeping issues, like copyright notifications, all in their correct places, and descriptions just aren't the most important thing he could be working on. If this is a problem, please come back later. diff --git a/data/spidermonkey/_metadata/maintainer b/data/spidermonkey/_metadata/maintainer new file mode 120000 index 000000000..0fa66e077 --- /dev/null +++ b/data/spidermonkey/_metadata/maintainer @@ -0,0 +1 @@ +../../../people/saurik
\ No newline at end of file diff --git a/data/spidermonkey/_metadata/priority b/data/spidermonkey/_metadata/priority new file mode 100644 index 000000000..134d9bc32 --- /dev/null +++ b/data/spidermonkey/_metadata/priority @@ -0,0 +1 @@ +optional diff --git a/data/spidermonkey/_metadata/section b/data/spidermonkey/_metadata/section new file mode 100644 index 000000000..463a353df --- /dev/null +++ b/data/spidermonkey/_metadata/section @@ -0,0 +1 @@ +programming diff --git a/data/spidermonkey/_metadata/version b/data/spidermonkey/_metadata/version new file mode 100644 index 000000000..bd8bf882d --- /dev/null +++ b/data/spidermonkey/_metadata/version @@ -0,0 +1 @@ +1.7.0 diff --git a/data/spidermonkey/js-1.7.0.tar.gz b/data/spidermonkey/js-1.7.0.tar.gz Binary files differnew file mode 100644 index 000000000..27607a637 --- /dev/null +++ b/data/spidermonkey/js-1.7.0.tar.gz diff --git a/data/spidermonkey/jsautocfg.h b/data/spidermonkey/jsautocfg.h new file mode 100644 index 000000000..7dccf19bb --- /dev/null +++ b/data/spidermonkey/jsautocfg.h @@ -0,0 +1,52 @@ +#ifndef js_cpucfg___ +#define js_cpucfg___ + +/* AUTOMATICALLY GENERATED - DO NOT EDIT */ + +#define IS_LITTLE_ENDIAN 1 +#undef IS_BIG_ENDIAN + +#define JS_BYTES_PER_BYTE 1L +#define JS_BYTES_PER_SHORT 2L +#define JS_BYTES_PER_INT 4L +#define JS_BYTES_PER_INT64 8L +#define JS_BYTES_PER_LONG 4L +#define JS_BYTES_PER_FLOAT 4L +#define JS_BYTES_PER_DOUBLE 8L +#define JS_BYTES_PER_WORD 4L +#define JS_BYTES_PER_DWORD 8L + +#define JS_BITS_PER_BYTE 8L +#define JS_BITS_PER_SHORT 16L +#define JS_BITS_PER_INT 32L +#define JS_BITS_PER_INT64 64L +#define JS_BITS_PER_LONG 32L +#define JS_BITS_PER_FLOAT 32L +#define JS_BITS_PER_DOUBLE 64L +#define JS_BITS_PER_WORD 32L + +#define JS_BITS_PER_BYTE_LOG2 3L +#define JS_BITS_PER_SHORT_LOG2 4L +#define JS_BITS_PER_INT_LOG2 5L +#define JS_BITS_PER_INT64_LOG2 6L +#define JS_BITS_PER_LONG_LOG2 5L +#define JS_BITS_PER_FLOAT_LOG2 5L +#define JS_BITS_PER_DOUBLE_LOG2 6L +#define JS_BITS_PER_WORD_LOG2 5L + +#define JS_ALIGN_OF_SHORT 2L +#define JS_ALIGN_OF_INT 4L +#define JS_ALIGN_OF_LONG 4L +#define JS_ALIGN_OF_INT64 4L +#define JS_ALIGN_OF_FLOAT 4L +#define JS_ALIGN_OF_DOUBLE 4L +#define JS_ALIGN_OF_POINTER 4L +#define JS_ALIGN_OF_WORD 4L + +#define JS_BYTES_PER_WORD_LOG2 2L +#define JS_BYTES_PER_DWORD_LOG2 3L +#define JS_WORDS_PER_DWORD_LOG2 1L + +#define JS_STACK_GROWTH_DIRECTION (-1) + +#endif /* js_cpucfg___ */ diff --git a/data/spidermonkey/make.sh b/data/spidermonkey/make.sh new file mode 100644 index 000000000..75fce99de --- /dev/null +++ b/data/spidermonkey/make.sh @@ -0,0 +1,10 @@ +pkg:extract +cd js +pkg:patch +cd src +mkdir Darwin_DBG.OBJ +cp -a "${PKG_DATA}"/jsautocfg.h Darwin_DBG.OBJ +make -f Makefile.ref +pkg: mkdir -p /usr/bin /usr/lib +pkg: cp -a Darwin_DBG.OBJ/libjs.dylib /usr/lib +pkg: cp -a Darwin_DBG.OBJ/js /usr/bin diff --git a/data/spidermonkey/port.diff b/data/spidermonkey/port.diff new file mode 100644 index 000000000..51dcfee37 --- /dev/null +++ b/data/spidermonkey/port.diff @@ -0,0 +1,97 @@ +diff -ru js/src/config/Darwin.mk js+iPhone/src/config/Darwin.mk +--- js/src/config/Darwin.mk 2007-02-05 16:24:49.000000000 +0000 ++++ js+iPhone/src/config/Darwin.mk 2007-12-31 21:06:50.000000000 +0000 +@@ -43,12 +43,12 @@ + # Just ripped from Linux config + # + +-CC = cc +-CCC = g++ ++CC = arm-apple-darwin-gcc ++CCC = arm-apple-darwin-g++ + CFLAGS += -Wall -Wno-format + OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DDARWIN + +-RANLIB = ranlib ++RANLIB = arm-apple-darwin-ranlib + MKSHLIB = $(CC) -dynamiclib $(XMKSHLIBOPTS) -framework System + + SO_SUFFIX = dylib +@@ -81,3 +81,4 @@ + # Don't allow Makefile.ref to use libmath + NO_LIBM = 1 + ++PREBUILT_CPUCFG = 1 +diff -ru js/src/config.mk js+iPhone/src/config.mk +--- js/src/config.mk 2006-07-27 21:00:57.000000000 +0000 ++++ js+iPhone/src/config.mk 2007-12-31 20:58:38.000000000 +0000 +@@ -45,9 +45,11 @@ + + # Set os+release dependent make variables + OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/)) ++OS_ARCH := Darwin + + # Attempt to differentiate between SunOS 5.4 and x86 5.4 + OS_CPUARCH := $(shell uname -m) ++OS_CPUARCH := iPhone1,1 + ifeq ($(OS_CPUARCH),i86pc) + OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH) + else +diff -ru js/src/jscpucfg.h js+iPhone/src/jscpucfg.h +--- js/src/jscpucfg.h 2006-07-07 02:12:01.000000000 +0000 ++++ js+iPhone/src/jscpucfg.h 2007-12-31 20:58:38.000000000 +0000 +@@ -46,7 +46,7 @@ + + #if defined(_WIN64) + +-#if defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_) ++#if 0//defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_) + #define IS_LITTLE_ENDIAN 1 + #undef IS_BIG_ENDIAN + +@@ -94,7 +94,7 @@ + #error "CPU type is unknown" + #endif /* !(defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)) */ + +-#elif defined(_WIN32) || defined(XP_OS2) || defined(WINCE) ++#elif 1//defined(_WIN32) || defined(XP_OS2) || defined(WINCE) + + #ifdef __WATCOMC__ + #define HAVE_VA_LIST_AS_ARRAY +diff -ru js/src/jsnum.c js+iPhone/src/jsnum.c +--- js/src/jsnum.c 2007-04-06 20:53:22.000000000 +0000 ++++ js+iPhone/src/jsnum.c 2007-12-31 20:58:38.000000000 +0000 +@@ -517,7 +517,7 @@ + + static jsdouble NaN; + +-#if (defined XP_WIN || defined XP_OS2) && \ ++#if 0 && (defined XP_WIN || defined XP_OS2) && \ + !defined WINCE && \ + !defined __MWERKS__ && \ + (defined _M_IX86 || \ +diff -ru js/src/Makefile.ref js+iPhone/src/Makefile.ref +--- js/src/Makefile.ref 2006-07-26 19:16:47.000000000 +0000 ++++ js+iPhone/src/Makefile.ref 2007-12-31 21:07:20.000000000 +0000 +@@ -82,7 +82,7 @@ + # + # XCFLAGS may be set in the environment or on the gmake command line + # +-CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS) ++CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(DEFINES) $(INCLUDES) $(XCFLAGS) -O0 + + LDFLAGS = $(XLDFLAGS) + +@@ -320,10 +320,10 @@ + + $(OBJDIR)/jskwgen.o: jskwgen.c jskeyword.tbl + @$(MAKE_OBJDIR) +- $(CC) -o $@ -c $(CFLAGS) $< ++ gcc -o $@ -c $(CFLAGS) $< + + $(OBJDIR)/jskwgen$(HOST_BIN_SUFFIX): $(OBJDIR)/jskwgen.$(OBJ_SUFFIX) +- $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^ ++ gcc -o $@ $(CFLAGS) $(LDFLAGS) $^ + + endif + |