head	1.4;
access;
symbols
	RELEASE_8_3_0:1.3
	RELEASE_9_0_0:1.3
	RELEASE_7_4_0:1.3
	RELEASE_8_2_0:1.3
	RELEASE_6_EOL:1.3
	RELEASE_8_1_0:1.3
	RELEASE_7_3_0:1.3
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.4
date	2012.09.02.19.59.20;	author tj;	state dead;
branches;
next	1.3;

1.3
date	2008.07.08.18.03.31;	author okazaki;	state Exp;
branches;
next	1.2;

1.2
date	2006.01.08.21.31.22;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2005.08.11.04.00.00;	author mi;	state Exp;
branches;
next	;


desc
@@


1.4
log
@SVN rev 303570 on 2012-09-02 19:59:20Z by tj

Rename lang/spidermonkey to lang/spidermonkey17 in preperation for the
import of lang/spidermonkey18.

Approved by:	Dan Rench <citric@@cubicone.tmetic.com> (maintainer)
Approved by:	eadler (mentor)
@
text
@--- config/Linux_All.mk	2005-05-10 21:53:44.000000000 +0200
+++ config/Linux_All.mk	2008-06-18 14:26:06.000000000 +0200
@@@@ -41,8 +41,8 @@@@
 # Config for all versions of Linux
 #
 
-CC = gcc
-CCC = g++
+CC ?= gcc
+CCC ?= g++
 CFLAGS +=  -Wall -Wno-format
 OS_CFLAGS = -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R
 
@@@@ -74,7 +74,7 @@@@
 
 GFX_ARCH = x
 
-OS_LIBS = -lm -lc
+OS_LIBS = -lm
 
 ASFLAGS += -x assembler-with-cpp
 
@@@@ -88,16 +88,12 @@@@
 endif
 
 # Use the editline library to provide line-editing support.
-JS_EDITLINE = 1
+JS_READLINE = 1
 
-ifeq ($(CPU_ARCH),x86_64)
-# Use VA_COPY() standard macro on x86-64
-# FIXME: better use it everywhere
 OS_CFLAGS += -DHAVE_VA_COPY -DVA_COPY=va_copy
-endif
 
-ifeq ($(CPU_ARCH),x86_64)
-# We need PIC code for shared libraries
-# FIXME: better patch rules.mk & fdlibm/Makefile*
+ifeq ($(CPU_ARCH),sparc64)
 OS_CFLAGS += -DPIC -fPIC
+else
+OS_CFLAGS += -DPIC -fpic
 endif
@


1.3
log
@Updates the port to Javascript 1.7.
Much thanks to Bernhard Frhlich for doing the heavy lifting.

PR:		125191
Submitted by:	maintainer
@
text
@@


1.2
log
@Spidermonkey version update to 1.5 with fixes for ia64/amd64

	Update source to spidermonkey 1.5 and patched (much thanks to Anish Mistry) to fix compilation problems under amd64 (and presumably ia64 too but untested) and to make the build thread-safe.

PR:		ports/91522
Submitted by:	Dan Rench <citric@@cubicone.tmetic.com>
@
text
@d1 3
a3 32
--- Makefile.ref	Fri Nov 14 19:10:55 2003
+++ Makefile.ref	Sat Aug  6 12:25:36 2005
@@@@ -56,6 +56,4 @@@@
 ifdef USE_MSVC
 OTHER_LIBS += fdlibm/$(OBJDIR)/fdlibm.lib
-else
-OTHER_LIBS += -Lfdlibm/$(OBJDIR) -lfdm
 endif
 
@@@@ -242,10 +240,6 @@@@
 	$(NULL)
 
-PREDIRS	+= fdlibm
-
 ifdef USE_MSVC
 FDLIBM_LIBRARY = fdlibm/$(OBJDIR)/fdlibm.lib
-else
-FDLIBM_LIBRARY = fdlibm/$(OBJDIR)/libfdm.a
 endif
 JSMATH_PRELINK	= $(OBJDIR)/jsmathtemp.o
@@@@ -301,6 +295,6 @@@@
 	link.exe -out:"$@@" $(EXE_LINK_FLAGS) $^
 else
-$(PROGRAM): $(PROG_OBJS) $(LIBRARY) $(FDLIBM_LIBRARY)
-	$(CC) -o $@@ $(CFLAGS) $(PROG_OBJS) $(LIBRARY) $(LDFLAGS) $(OTHER_LIBS) \
+$(PROGRAM): $(PROG_OBJS) $(SHARED_LIBRARY) $(FDLIBM_LIBRARY)
+	$(CC) -o $@@ $(CFLAGS) $(PROG_OBJS) -L$(OBJDIR) -ljs $(LDFLAGS) $(OTHER_LIBS) \
 	    $(PROG_LIBS)
 endif
--- config/Linux_All.mk.orig	Tue May 10 15:53:44 2005
+++ config/Linux_All.mk	Sat Dec 10 21:17:45 2005
@@@@ -41,9 +41,9 @@@@
a8 1
-CFLAGS +=  -Wall -Wno-format
d11 1
a11 1
+CFLAGS +=  -Wall -Werror	# XXX do these work with non-gcc and non-icc?
a13 1
 RANLIB = echo
a43 9
--- rules.mk	Fri Nov 14 19:11:04 2003
+++ rules.mk	Mon Aug  8 14:40:36 2005
@@@@ -59,5 +59,5 @@@@
 TARGETS += $(SHARED_LIBRARY) $(PROGRAM)  # it is now
 else
-TARGETS += $(LIBRARY) $(SHARED_LIBRARY) $(PROGRAM) 
+TARGETS += $(SHARED_LIBRARY) $(PROGRAM) 
 endif
 
@


1.1
log
@Unbreak for all platforms (tested on amd64 and i386) -- use -fPIC
on sparc64 and -fpic elsewhere. While here, make the following
improvements:

	. ignore the vendor's fdlibm and use our own -lm. fdlibm is
	  derived from the same msun as ours, but spidermonkey was
	  misteriously linking with _both_. All mozilla-ports seem
	  to have the same problem right now;
	. use our -lreadline instead of compiling vendor's own
	  libeditline;
	. fix all warnings (clean build with -Wall -Werror);
	. link the installed executable (js) against the shared
	  library libjs.so instead of against the invididual objects;
	. unless WITHOUT_TEST is set, download and run vendor's own
	  tests in post-build (this triggers USE_PERL_BUILD). Some
	  tests had to be patched from Mozilla's CVS, because the
	  released tarball of them was not updated since 2002.

Bump PORTREVISION.

Approved by:	portmgr	(marcus)
Approved by:	maintainer timeout
@
text
@d30 4
a33 3
--- config/Linux_All.mk	Thu May 15 20:21:08 2003
+++ config/Linux_All.mk	Wed Aug 10 23:46:05 2005
@@@@ -37,7 +37,7 @@@@
d44 3
a46 1
@@@@ -70,5 +70,5 @@@@
d53 3
a55 1
@@@@ -84,15 +84,11 @@@@
d64 1
a64 1
 OS_CFLAGS += -DHAVE_VA_COPY
@

