head	1.29;
access;
symbols
	RELEASE_8_3_0:1.28
	RELEASE_9_0_0:1.27
	RELEASE_7_4_0:1.26
	RELEASE_8_2_0:1.26
	RELEASE_6_EOL:1.26
	RELEASE_8_1_0:1.26
	RELEASE_7_3_0:1.26
	RELEASE_8_0_0:1.25
	RELEASE_7_2_0:1.24
	RELEASE_7_1_0:1.24
	RELEASE_6_4_0:1.24
	RELEASE_5_EOL:1.22
	RELEASE_7_0_0:1.22
	RELEASE_6_3_0:1.22
	PRE_XORG_7:1.21
	RELEASE_4_EOL:1.20
	RELEASE_6_2_0:1.20
	RELEASE_6_1_0:1.15
	RELEASE_5_5_0:1.15
	RELEASE_6_0_0:1.11
	RELEASE_5_4_0:1.8
	RELEASE_4_11_0:1.8
	RELEASE_5_3_0:1.8
	RELEASE_4_10_0:1.6
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1;
locks; strict;
comment	@# @;


1.29
date	2012.09.02.19.59.20;	author tj;	state dead;
branches;
next	1.28;

1.28
date	2011.12.22.10.51.36;	author linimon;	state Exp;
branches;
next	1.27;

1.27
date	2011.09.14.21.55.17;	author flo;	state Exp;
branches;
next	1.26;

1.26
date	2009.11.09.08.29.21;	author arved;	state Exp;
branches;
next	1.25;

1.25
date	2009.06.23.19.47.12;	author pgollucci;	state Exp;
branches;
next	1.24;

1.24
date	2008.07.25.12.24.00;	author pav;	state Exp;
branches;
next	1.23;

1.23
date	2008.07.08.18.03.31;	author okazaki;	state Exp;
branches;
next	1.22;

1.22
date	2007.10.04.01.25.18;	author edwin;	state Exp;
branches;
next	1.21;

1.21
date	2007.04.26.07.57.58;	author miwi;	state Exp;
branches;
next	1.20;

1.20
date	2006.10.30.16.46.18;	author mi;	state Exp;
branches;
next	1.19;

1.19
date	2006.08.05.18.37.14;	author sat;	state Exp;
branches;
next	1.18;

1.18
date	2006.08.05.18.19.38;	author sat;	state Exp;
branches;
next	1.17;

1.17
date	2006.05.21.15.29.40;	author sat;	state Exp;
branches;
next	1.16;

1.16
date	2006.03.23.14.24.20;	author arved;	state Exp;
branches;
next	1.15;

1.15
date	2006.01.29.18.05.55;	author pav;	state Exp;
branches;
next	1.14;

1.14
date	2006.01.28.21.14.35;	author kris;	state Exp;
branches;
next	1.13;

1.13
date	2006.01.10.23.36.54;	author edwin;	state Exp;
branches;
next	1.12;

1.12
date	2006.01.08.21.31.21;	author edwin;	state Exp;
branches;
next	1.11;

1.11
date	2005.08.16.12.52.28;	author mi;	state Exp;
branches;
next	1.10;

1.10
date	2005.08.11.04.00.00;	author mi;	state Exp;
branches;
next	1.9;

1.9
date	2005.07.21.15.28.12;	author thierry;	state Exp;
branches;
next	1.8;

1.8
date	2004.05.04.19.43.14;	author pav;	state Exp;
branches;
next	1.7;

1.7
date	2004.05.04.19.14.05;	author pav;	state Exp;
branches;
next	1.6;

1.6
date	2004.03.07.13.00.02;	author kris;	state Exp;
branches;
next	1.5;

1.5
date	2004.02.06.13.11.37;	author trevor;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.04.05.21.44;	author marcus;	state Exp;
branches;
next	1.3;

1.3
date	2003.10.14.07.15.38;	author edwin;	state Exp;
branches;
next	1.2;

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

1.1
date	2003.04.27.01.46.49;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.29
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
@# Ports collection makefile for:	spidermonkey
# Date created:		Fri Apr 18, 2003
# Whom:			Dan Rench <citric@@cubicone.tmetic.com>
#
# $FreeBSD: ports/lang/spidermonkey/Makefile,v 1.28 2011/12/22 10:51:36 linimon Exp $

PORTNAME=	spidermonkey
DISTVERSION=	1.7.0
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_MOZILLA_EXTENDED}
MASTER_SITE_SUBDIR=	js
DISTNAME=	js-${DISTVERSION}

MAINTAINER=	citric@@cubicone.tmetic.com
COMMENT=	A standalone JavaScript interpreter from the Mozilla project

LIB_DEPENDS=	nspr4.1:${PORTSDIR}/devel/nspr

CONFLICTS=	njs-[0-9]*

MAKE_ARGS+=	JS_THREADSAFE=YES \
		PROG_LIBS="-lreadline -ltermcap -lm ${PTHREAD_LIBS}" \
		LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+=	-I${LOCALBASE}/include/nspr

USE_GMAKE=	YES
MAKEFILE=	Makefile.ref
ALL_TARGET=	${OPSYS}`${UNAME} -r`_DBG.OBJ/js
MAKE_ENV+=	CCC="${CXX}"
USE_LDCONFIG=	yes
SRC_DIR=	js/src

JSH=		jsapi.h jsarena.h jsarray.h jsatom.h jsautocfg.h jsbool.h \
		jsclist.h jscntxt.h jscompat.h jsconfig.h jsdate.h jsdhash.h \
		jsdtoa.h jsemit.h jsexn.h jsfun.h jsgc.h jshash.h jsinterp.h \
		jsiter.h jslibmath.h jslock.h jslong.h jsmath.h jsnum.h jsobj.h \
		jsopcode.h jsosdep.h jsotypes.h jsparse.h jsprf.h jsprvtd.h \
		jspubtd.h jsutil.h jsregexp.h jsscan.h jsscope.h jsscript.h \
		jsstr.h jstypes.h jsxdrapi.h jsxml.h \
		js.msg jsproto.tbl

PLIST_FILES=	bin/js lib/libjs.so lib/libjs.so.1 ${JSH:S,^,include/,}
WRKSRC=		${WRKDIR}/${SRC_DIR}
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
		--exclude js/jsd

OPTIONS=	UTF8 "Enable UTF8 support" Off

.include <bsd.port.options.mk>

.if defined(WITH_UTF8)
CFLAGS+=	-DJS_C_STRINGS_ARE_UTF8
.endif

do-configure:
	${CP} ${WRKSRC}/config/Linux_All.mk \
		${WRKSRC}/config/${OPSYS}`${UNAME} -r`.mk && \

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/js \
		${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/libjs.so \
		${PREFIX}/lib
	${LN} -sf ${PREFIX}/lib/libjs.so ${PREFIX}/lib/libjs.so.1
	${CP} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/jsautocfg.h ${WRKSRC}
	@@${INSTALL_DATA} ${JSH:S,^,${WRKSRC}/,} ${PREFIX}/include/

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
BROKEN=		Does not build on sparc64-9: fails to link
.endif

.include <bsd.port.post.mk>
@


1.28
log
@Mark as broken on sparc64-9: fails to link.

Hat:		portmgr
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.27
log
@install some missing includes

PR:		ports/160649
Submitted by:	Stephen Hurd <shurd@@sasktel.net>
Approved by:	maintainer
@
text
@d69 7
a75 1
.include <bsd.port.mk>
@


1.26
log
@Add option for UTF8 support

PR:		140124
Submitted by:	Mirko Zinn <mail@@derzinn.de>
Approved by:	maintainer
@
text
@d9 1
d38 4
a41 4
		jsopcode.h jsosdep.h jsotypes.h jsparse.h jsprvtd.h jspubtd.h \
		jsregexp.h jsscan.h jsscope.h jsscript.h jsstr.h jstypes.h \
		jsxdrapi.h jsxml.h \
		jsproto.tbl
@


1.25
log
@- Fix pkg-plist (install all header files)

PR:             ports/134770
Submitted by:   Dan Rench <citric@@cubicone.tmetic.com>
Approved by:    maintainer
@
text
@d47 8
@


1.24
log
@- Remove duplicates from MAKE_ENV after inclusion of CC and CXX in default MAKE_ENV
@
text
@d10 2
a11 5
MASTER_SITES=	http://ftp.mozilla.org/pub/mozilla.org/js/ \
		http://ftp.belnet.be/mirrors/ftp.mozilla.org/js/ \
		http://gentoo.netnitco.net/distfiles/ \
		http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \
		ftp://ftp.mozilla.org/pub/mozilla.org/js/
d32 8
a39 2
JSH=		jsapi.h jsautocfg.h jsconfig.h jscompat.h jslong.h jsosdep.h \
		jsotypes.h jspubtd.h jstypes.h jsstr.h jshash.h jsprvtd.h \
d41 1
@


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

PR:		125191
Submitted by:	maintainer
@
text
@d32 1
a32 1
MAKE_ENV+=	CC="${CC}" CCC="${CXX}"
@


1.22
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d8 1
a8 2
DISTVERSION=	1.5
PORTREVISION=	3
d10 5
a14 2
MASTER_SITES=	MOZILLA
MASTER_SITE_SUBDIR=	js/older-packages/
a15 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:src
a27 21
.if defined(WITH_TEST)
USE_PERL5_BUILD=test harness
PATCHFILES=	spidermonkey-patch-tests-ecma.bz2	\
		spidermonkey-patch-tests-timezone.bz2	\
		spidermonkey-patch-tests-js.bz2
PATCH_SITES=	http://virtual-estates.net/~mi/port-stuff/
BUILD_DEPENDS+=	${SITE_PERL}/Getopt/Mixed.pm:${PORTSDIR}/devel/p5-Getopt-Mixed

DISTFILES+=	js-tests-20021118${EXTRACT_SUFX}:older
post-build:	test
post-patch:
	#
	# Removing known bad tests:
	#	https://bugzilla.mozilla.org/show_bug.cgi?id=10278
	#	https://bugzilla.mozilla.org/show_bug.cgi?id=101964
	#
	cd ${WRKDIR}/tests && ${RM} js1_3/regress/function-001-n.js	\
		js1_2/function/function-001-n.js	\
		js1_3/Script/function-001-n.js	\
		js1_5/Array/regress-101964.js
.endif
d35 3
a37 2
JSH=		jsapi.h jsautocfg.h jscompat.h jslong.h jsosdep.h jsotypes.h jspubtd.h jstypes.h \
		jsstr.h jshash.h jsprvtd.h
d39 1
a39 1
WRKSRC=	${WRKDIR}/${SRC_DIR}
d41 1
a41 12
		--exclude js/jsd	\
		--exclude ${SRC_DIR}/editline	\
		--exclude ${SRC_DIR}/fdlibm	\
		--exclude ${SRC_DIR}/liveconnect	\
		--exclude ${SRC_DIR}/perlconnect

test:
	cd ${WRKDIR}/tests && ${SETENV}	\
	    LD_LIBRARY_PATH=${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ	\
		${PERL5} jsDriver.pl	\
		    --shellpath ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/js \
		    --engine smdebug --confail --trace --list ecma* js1_*
@


1.21
log
@- Makefile cleanup
- Update MASTER_SITES

PR:		112144
Submitted by:	Dan Rench<citric@@cubicone.tmetic.com> (maintainer)
@
text
@a72 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=		Does not compile on FreeBSD 4.x
.endif

d86 1
a86 1
.include <bsd.port.post.mk>
@


1.20
log
@Make SpiderMonkey build with thread-support regardless of whether or not
the post-build self-testing is enabled.

The self-test was on by default until March, which hid the problem...

Take pointy-hat.

Noticed by:	Anish Mistry
Approved by:	portmgr	(erwin)
@
text
@d11 2
a12 2
MASTER_SITES=	MOZILLA:src,older
MASTER_SITE_SUBDIR=	js/:src js/older-packages/:older
d19 2
a22 1
LIB_DEPENDS=	nspr4.1:${PORTSDIR}/devel/nspr
@


1.19
log
@- Bump portrevision for the previous update
- INSTALLS_SHLIB -> USE_LDCONFIG
- Beautify master sites
@
text
@d9 1
a9 1
PORTREVISION=	2
d21 5
a32 5
LIB_DEPENDS=	nspr4.1:${PORTSDIR}/devel/nspr
MAKE_ARGS+=	JS_THREADSAFE=YES \
		PROG_LIBS="-lreadline -ltermcap -lm ${PTHREAD_LIBS}" \
		LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+=	-I${LOCALBASE}/include/nspr
a45 1

@


1.18
log
@- Install a versioned lib

Approved by:	citric@@cubicone.tmetic.com (maintainer timeout, 16 days)
@
text
@d2 2
a3 2
# Date created:	Fri Apr 18, 2003
# Whom:	Dan Rench (citric@@cubicone.tmetic.com)
d9 1
a9 1
PORTREVISION=	1
d11 1
a11 2
MASTER_SITES=	${MASTER_SITE_MOZILLA:S/$/:src/} \
		${MASTER_SITE_MOZILLA:S/$/:older/}
d53 1
a53 1
INSTALLS_SHLIB=	YES
@


1.17
log
@- Expose jsstr.h
- Move plist to Makefile

PR:		ports/96549
Submitted by:	sat
Approved by:	krion (mentor), maintainer
@
text
@d58 1
a58 1
PLIST_FILES=	bin/js lib/libjs.so ${JSH:S,^,include/,}
d89 1
@


1.16
log
@The testsuite breaks at certain times of day depending on TZ, so
disable the testuite per default.

PR:		94765
Submitted by:	Dan Rench <citric@@cubicone.tmetic.com>
@
text
@d56 3
d90 1
a90 3
.for jsh in jsapi.h jsautocfg.h jscompat.h jslong.h jsosdep.h jsotypes.h jspubtd.h jstypes.h
	@@${INSTALL_DATA} ${WRKSRC}/${jsh} ${PREFIX}/include/
.endfor
@


1.15
log
@- Fix on 64-bit arches

PR:		ports/92396
Submitted by:	Dan Rench <citric@@cubicone.tmetic.com> (maintainer)
@
text
@d22 1
a22 1
.if !defined(WITHOUT_TEST)
@


1.14
log
@BROKEN on !i386 and on 4.x: Does not compile
@
text
@a72 4
.if ${ARCH} != "i386"
BROKEN=		Does not compile on !i386
.endif

@


1.13
log
@Remove / from the DISTFILES, properly use grouped master-sites.

Noticed by: Ion-Mihai Tetcu <itetcu@@people.tecnik93.com>
@
text
@d73 8
@


1.12
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
@d9 1
d11 3
a13 2
MASTER_SITES=	${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR=	js
d15 1
a15 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
d35 1
a35 1
DISTFILES+=	older-packages/js-tests-20021118${EXTRACT_SUFX}
@


1.11
log
@Add another patch, to fix tests, which fail if the timezone is set to
UTC. Thanks to Boris Samorodov for assistance in debugging this.

Detected by:	pointyhat
Approved by:	portmgr	(krion)
@
text
@d8 1
a8 2
DISTVERSION=	1.5-rc6a
PORTREVISION=	1
d18 1
a18 1
CONFLICTS=	njs-*
d27 7
a33 1
DISTFILES+=	js-tests-20021118${EXTRACT_SUFX}
@


1.10
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
@d23 3
a25 1
PATCHFILES=	spidermonkey-patch-tests-ecma.bz2 spidermonkey-patch-tests-js.bz2
@


1.9
log
@Change PORTNAME to spidermonkey to correspond with dirname.

PR:		82320
Submitted by:	Alex Kapranoff <kappa (at) rambler-co.ru>
Approved by:	maintainer
@
text
@d9 1
d14 1
d21 20
d42 3
d46 15
d64 1
a64 7
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
BROKEN=		"Does not compile on amd64 or ia64 (missing -fPIC)"
.endif

post-extract:
	${MV} ${WRKDIR}/js/src ${WRKSRC} && \
	${RM} -rf js && \
d66 1
a66 2
		${WRKSRC}/config/`uname -s``uname -r`.mk && \
	${CP} ${WRKSRC}/Makefile.ref ${WRKSRC}/Makefile
d69 1
a69 1
	${INSTALL_PROGRAM} ${WRKSRC}/`uname -s``uname -r`_DBG.OBJ/js \
d71 1
a71 1
	${INSTALL_PROGRAM} ${WRKSRC}/`uname -s``uname -r`_DBG.OBJ/libjs.so \
d73 1
a73 1
	${CP} ${WRKSRC}/`uname -s``uname -r`_DBG.OBJ/jsautocfg.h ${WRKSRC}
@


1.8
log
@- Avoid using command execution to fill variables, they would be executed
  for all targets which is not needed

Suggested by:	'the eagle eye' kris
@
text
@d7 2
a8 2
PORTNAME=	js
PORTVERSION=	1.5.p6
d12 1
a12 1
DISTNAME=	js-1.5-rc6
@


1.7
log
@- Update to 1.5-rc6

PR:		ports/66208
Submitted by:	Dan Rench <citric@@cubicone.tmetic.com> (maintainer)
@
text
@a27 3
JS_ARCH:=	`uname -s``uname -r`
JS_HEADERS!=	${GREP} '\.h$$' ${MASTERDIR}/pkg-plist | ${SED} 'sX^include/XX'

d32 1
a32 1
		${WRKSRC}/config/${JS_ARCH}.mk && \
d36 1
a36 1
	${INSTALL_PROGRAM} ${WRKSRC}/${JS_ARCH}_DBG.OBJ/js \
d38 1
a38 1
	${INSTALL_PROGRAM} ${WRKSRC}/${JS_ARCH}_DBG.OBJ/libjs.so \
d40 2
a41 2
	${CP} ${WRKSRC}/${JS_ARCH}_DBG.OBJ/jsautocfg.h ${WRKSRC}
.for jsh in ${JS_HEADERS}
@


1.6
log
@BROKEN on amd64 and ia64: Does not compile (missing -fPIC)
@
text
@d8 1
a8 2
PORTVERSION=	1.5.p5
PORTREVISION=	2
d12 1
a12 1
DISTNAME=	js-1.5-rc5a
a18 1
PLIST_FILES=	bin/js
d20 1
d28 3
d35 1
a35 1
		${WRKSRC}/config/`uname -s``uname -r`.mk && \
d39 1
a39 1
	${INSTALL_PROGRAM} ${WRKSRC}/`uname -s``uname -r`_DBG.OBJ/js \
d41 6
@


1.5
log
@Use PLIST_FILES (bento-tested, marcus-reviewed).
@
text
@d23 6
d40 1
a40 1
.include <bsd.port.mk>
@


1.4
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d20 1
@


1.3
log
@Add CONFLICT for lang/njs (njs-*)

PR:		ports/57972 (initial)
Submitted by:	Thierry Thomas <thierry@@pompo.net>
@
text
@d9 1
a9 1
PORTREVISION=	1
@


1.2
log
@Update port: lang/spidermonkey updated to latest source, new contact address

	Spidermonkey is the JavaScript interpreter from the Mozilla project.
	This revision updates the port to the newest version.
	I've also updated my contact address.

PR:		ports/56593
Submitted by:	Dan Rench <citric@@cubicone.tmetic.com>
@
text
@d18 2
@


1.1
log
@Add spidermonkey 1.5.p5,
a standalone JavaScript interpreter from
the Mozilla project.

PR:		51325
Submitted by:	Dan Rench (drench@@xnet.com)
@
text
@d3 1
a3 1
# Whom:	Dan Rench (drench@@xnet.com)
d9 1
d13 1
a13 1
DISTNAME=	js-1.5-rc5
d15 1
a15 1
MAINTAINER=	drench@@xnet.com
@

