head	1.25;
access;
symbols
	RELEASE_8_3_0:1.14
	RELEASE_9_0_0:1.11;
locks; strict;
comment	@# @;


1.25
date	2013.03.09.15.39.33;	author svnexp;	state Exp;
branches;
next	1.24;

1.24
date	2012.12.14.13.43.59;	author svnexp;	state Exp;
branches;
next	1.23;

1.23
date	2012.12.12.02.08.02;	author svnexp;	state Exp;
branches;
next	1.22;

1.22
date	2012.11.17.05.58.58;	author svnexp;	state Exp;
branches;
next	1.21;

1.21
date	2012.10.23.16.36.12;	author vanilla;	state Exp;
branches;
next	1.20;

1.20
date	2012.10.09.22.12.13;	author linimon;	state Exp;
branches;
next	1.19;

1.19
date	2012.09.14.12.23.32;	author vanilla;	state Exp;
branches;
next	1.18;

1.18
date	2012.07.10.01.20.19;	author vanilla;	state Exp;
branches;
next	1.17;

1.17
date	2012.06.05.03.41.08;	author vanilla;	state Exp;
branches;
next	1.16;

1.16
date	2012.05.18.07.34.25;	author vanilla;	state Exp;
branches;
next	1.15;

1.15
date	2012.04.25.12.50.22;	author vanilla;	state Exp;
branches;
next	1.14;

1.14
date	2012.02.12.12.51.59;	author vanilla;	state Exp;
branches;
next	1.13;

1.13
date	2012.01.13.07.13.06;	author vanilla;	state Exp;
branches;
next	1.12;

1.12
date	2011.12.25.15.33.41;	author vanilla;	state Exp;
branches;
next	1.11;

1.11
date	2011.11.03.15.13.14;	author vanilla;	state Exp;
branches;
next	1.10;

1.10
date	2011.09.25.02.17.44;	author vanilla;	state Exp;
branches;
next	1.9;

1.9
date	2011.09.05.12.44.32;	author vanilla;	state Exp;
branches;
next	1.8;

1.8
date	2011.08.05.06.39.19;	author vanilla;	state Exp;
branches;
next	1.7;

1.7
date	2011.07.01.01.36.51;	author vanilla;	state Exp;
branches;
next	1.6;

1.6
date	2011.06.20.07.16.31;	author vanilla;	state Exp;
branches;
next	1.5;

1.5
date	2011.06.13.19.29.35;	author osa;	state Exp;
branches;
next	1.4;

1.4
date	2011.06.13.01.36.45;	author vanilla;	state Exp;
branches;
next	1.3;

1.3
date	2011.05.24.00.50.58;	author vanilla;	state Exp;
branches;
next	1.2;

1.2
date	2011.05.13.03.32.44;	author vanilla;	state Exp;
branches;
next	1.1;

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


desc
@@


1.25
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313707
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: siasia
# $FreeBSD: head/lang/v8/Makefile 313707 2013-03-09 11:45:26Z vanilla $

PORTNAME=	v8
PORTVERSION=	3.17.9
PORTREVISION=	0
CATEGORIES=	lang
MASTER_SITES=	LOCAL/vanilla

MAINTAINER=	vanilla@@FreeBSD.org
COMMENT=	Google\'s open source JavaScript engine

LIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo

USE_GMAKE=	yes
USE_XZ=		yes
USE_PYTHON=	2.6+
USE_LDCONFIG=	yes
ALL_TARGET=	native
MAKE_ARGS=	library=shared

.include <bsd.port.pre.mk>

.if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024
MAKE_ENV+=	LINK=clang++
CFLAGS+=	-Wno-unused-private-field
.else
MAKE_ARGS+=	strictaliasing=off
USE_GCC=	any
.endif

ONLY_FOR_ARCHS=	i386 amd64

post-patch:
	@@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		${WRKSRC}/build/common.gypi ${WRKSRC}/tools/gyp/v8.gyp

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${PREFIX}/bin/d8
	${INSTALL_LIB} -m 755 ${WRKSRC}/out/native/lib.target/libv8.so ${PREFIX}/lib/libv8.so.1
	${LN} -sf ${PREFIX}/lib/libv8.so.1 ${PREFIX}/lib/libv8.so
	${INSTALL_DATA} ${WRKSRC}/include/v8.h ${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/include/v8-debug.h ${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/include/v8-preparser.h ${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/include/v8-profiler.h ${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/include/v8-testing.h ${PREFIX}/include/
	${INSTALL_DATA} ${WRKSRC}/include/v8stdint.h ${PREFIX}/include/

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


1.24
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308901
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308901 | vanilla | 2012-12-14 13:41:04 +0000 (Fri, 14 Dec 2012) | 4 lines
## SVN ##
## SVN ## Fix build.
## SVN ##
## SVN ## Submitted by:	Akihiko HAYASHI <hayashi at totalware.gifu.gifu.jp>
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/v8/Makefile 308901 2012-12-14 13:41:04Z vanilla $
d5 1
a5 1
PORTVERSION=	3.15.10
a15 1
USE_PYTHON=	2.7+
d17 1
a19 1

d26 1
d34 4
@


1.23
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308733
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308733 | vanilla | 2012-12-12 02:02:55 +0000 (Wed, 12 Dec 2012) | 2 lines
## SVN ##
## SVN ## Upgrade to 3.15.10.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/v8/Makefile 308733 2012-12-12 02:02:55Z vanilla $
d23 2
d45 1
a45 1
.include <bsd.port.mk>
@


1.22
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:   v8
# Date created:        12 November 2010
# Whom:                siasia
#
# $FreeBSD: head/lang/v8/Makefile 306316 2012-10-23 16:36:12Z vanilla $
#
d5 1
a5 1
PORTVERSION=	3.14.5
d13 1
a13 1
LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo
a14 1
USE_GCC=	any
a19 3
OPTIONS=	SNAPSHOT "Enable snapshots" Off

.include <bsd.port.options.mk>
d23 1
a23 1
.if ${CC} == "clang" && ${CXX} == "clang++"
d27 1
a27 6
.endif

.if defined(WITHOUT_SNAPSHOT)
MAKE_ARGS+=	snapshot=off
.else
MAKE_ARGS+=	snapshot=on
a31 2
.include <bsd.port.pre.mk>

d43 1
a43 1
.include <bsd.port.post.mk>
@


1.21
log
@SVN rev 306316 on 2012-10-23 16:36:12Z by vanilla

Upgrade to 3.14.5.

Feature safe: yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.20
log
@SVN rev 305610 on 2012-10-09 22:12:13Z by linimon

Force numerous ports that fail to build with clang over to instead always
rely on gcc.  The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to
accomplish this.

The ports chosen were ports that blocked 2 or more ports from building with
clang.  (There are several hundred other ports that still fail to build with
clang, even with this patch.  This is merely one step along the way.)

Those interested in fixing these ports with clang, and have clang as their
default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes.

For those who have gcc as their default compiler, this change is believed
to cause no change.

Hat:		portmgr
Tested with:	multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various
		combinations of patch/no-patch and flag settings.
@
text
@d9 1
a9 1
PORTVERSION=	3.13.7
d48 1
@


1.19
log
@SVN rev 304268 on 2012-09-14 12:23:32Z by vanilla

Upgrade to 3.13.7.
@
text
@d19 1
@


1.18
log
@Upgrade to 3.12.9.

PR:		ports/168719
Required by:    Paul Dokas <paul@@dokas.name>
@
text
@d9 1
a9 1
PORTVERSION=	3.12.9
@


1.17
log
@Upgrade to 3.11.8.
@
text
@d9 1
a9 1
PORTVERSION=	3.11.8
@


1.16
log
@Upgrade to 3.11.2.
@
text
@d9 1
a9 1
PORTVERSION=	3.11.2
@


1.15
log
@Upgrade to 3.10.4.
@
text
@d9 1
a9 1
PORTVERSION=	3.10.4
d19 2
a21 1
USE_SCONS=	yes
d23 2
a24 2
OPTIONS=	DEBUG "Build in debug mode" Off \
		SNAPSHOT "Enable snapshots" Off
d28 1
a28 1
SCONS_ARGS=	visibility=default
d30 2
a31 2
.if defined(WITHOUT_DEBUG)
SCONS_ARGS+=	mode=release
d33 1
a33 1
SCONS_ARGS+=	mode=debug
d37 1
a37 1
SCONS_ARGS+=	snapshot=off
d39 1
a39 1
SCONS_ARGS+=	snapshot=on
a45 25
.if ${ARCH} == i386
V8ARCH=ia32
.elif ${ARCH} == amd64
V8ARCH=x64
.endif

.if defined(CFLAGS)
CFLAGS:=	${CFLAGS:C/-fstrict-aliasing//}
.if empty(CFLAGS:M-fno-strict-aliasing)
CFLAGS+=	-fno-strict-aliasing
.endif
.endif

PLIST_SUB+=	ARCH=${V8ARCH}
SCONS_ARGS+=	arch=${V8ARCH}
SCONS_BUILDENV+= CC="${CC} ${CFLAGS}" CXX="${CXX} ${CXXFLAGS}"

do-build:
	@@cd ${BUILD_WRKSRC} && \
	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \
	${SCONS_ARGS} library=static ${SCONS_TARGET}
	@@cd ${BUILD_WRKSRC} && \
	${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \
	${SCONS_ARGS} library=shared ${SCONS_TARGET}

d47 1
a47 4
	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.a ${PREFIX}/lib/libv8.a
	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.so ${PREFIX}/lib/libv8.so.1
	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8preparser.a ${PREFIX}/lib/libv8preparser.a
	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8preparser.so ${PREFIX}/lib/libv8preparser.so.1
a48 1
	${LN} -sf ${PREFIX}/lib/libv8preparser.so.1 ${PREFIX}/lib/libv8preparser.so
@


1.14
log
@Upgrade to 3.9.5.
@
text
@d9 1
a9 1
PORTVERSION=	3.9.5
@


1.13
log
@Upgrade to 3.8.5.
@
text
@d9 1
a9 1
PORTVERSION=	3.8.5
a19 1
FETCH_ARGS=	-pRr
@


1.12
log
@1: Upgrade to 3.8.2.
2: handle '-fno-strict-aliasing'.

PR:		ports/163606
Submitted by:	Panagiotis Christias <p.christias at noc.ntua.gr> [2]
@
text
@d9 1
a9 1
PORTVERSION=	3.8.2
@


1.11
log
@Upgrade to 3.7.3.
@
text
@d9 1
a9 1
PORTVERSION=	3.7.3
d51 8
@


1.10
log
@Fix build error with clang.
@
text
@d9 1
a9 1
PORTVERSION=	3.5.10
d12 1
a12 2
MASTER_SITES=	http://github.com/${PORTNAME}/${PORTNAME}/tarball/${PORTVERSION}/
DISTNAME=	${PORTNAME}-${PORTNAME}-${PORTVERSION}-${GITVERSION}
d19 1
a19 1
GITVERSION=	0-g4cf15c7
a20 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTNAME}-${GITVERSION:S/^0-g//}
@


1.9
log
@Upgrade to 3.5.10.
@
text
@d55 1
@


1.8
log
@Upgrade to 3.5.1.
@
text
@d9 1
a9 1
PORTVERSION=	3.5.1
d20 1
a20 1
GITVERSION=	0-gc875d45
@


1.7
log
@Upgrade to 3.4.8.
@
text
@d9 1
a9 1
PORTVERSION=	3.4.8
d20 1
a20 1
GITVERSION=	0-g76efc8a
@


1.6
log
@1: Upgrade to 3.4.4
2: install shared library by default.
3: resolv undefined symbol.

PR:		ports/157875
Submitted by:	Brett Kiefer <brett at fogcreek.com>, L Campbell <lcampbell at ironclad.mobi> [3]
@
text
@d9 1
a9 1
PORTVERSION=	3.4.4
d20 1
a20 1
GITVERSION=	0-gf985a1d
@


1.5
log
@Fix overkill for everytime changing GITVERSION and depends on
it WRKSRC.

Approved by:	vanilla
@
text
@d9 2
a10 1
PORTVERSION=	3.4.1
d20 1
a20 1
GITVERSION=	0-g064fc53
d24 1
d30 2
a31 1
SCONS_ARGS=
a59 1
.if defined(WITH_SHARED)
a62 1
.endif
d65 6
a70 2
	${INSTALL_DATA} -m 755 ${WRKSRC}/libv8.a ${PREFIX}/lib
	${INSTALL_DATA} -m 755 ${WRKSRC}/libv8preparser.a ${PREFIX}/lib
@


1.4
log
@Upgrade to 3.4.1.
@
text
@d21 1
a21 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTNAME}-064fc53
@


1.3
log
@Upgrade to 3.3.8.
@
text
@d9 1
a9 1
PORTVERSION=	3.3.8
d19 1
a19 1
GITVERSION=	0-g1a3419a
d21 1
a21 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTNAME}-1a3419a
d24 1
a24 2
		SNAPSHOT "Enable snapshots" Off \
		SHARED "Build shared library" Off
a40 7
.if defined(WITH_SHARED)
USE_LDCONFIG=	yes
PLIST_SUB+=	V8SHARED=""
.else
PLIST_SUB+=	V8SHARED="@@comment "
.endif

a65 4
.if defined(WITH_SHARED)
	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.so ${PREFIX}/lib/libv8.so.1
	${INSTALL_LIB} -m 755 ${WRKSRC}/libv8preparser.so ${PREFIX}/lib/libv8preparser.so.1
.endif
@


1.2
log
@add missing depends to devel/libexecinfo.

PR:		ports/156993
Submitted by:	L Campbell <lcampbell at ironclad.mobi>
@
text
@d9 1
a9 1
PORTVERSION=	3.2.8
d19 1
a19 1
GITVERSION=	0-ga00b3e8
d21 1
a21 1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTNAME}-a00b3e8
@


1.1
log
@Add v8 3.2.8, google\'s open source JavaScript engine.

PR:		ports/152175
Submitted by:	siasia
@
text
@d17 2
@

