2011-05-12 15:52:14 +00:00
|
|
|
# New ports collection makefile for: v8
|
|
|
|
# Date created: 12 November 2010
|
|
|
|
# Whom: siasia
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= v8
|
2012-09-14 12:23:32 +00:00
|
|
|
PORTVERSION= 3.13.7
|
2011-06-20 07:16:31 +00:00
|
|
|
PORTREVISION= 0
|
2011-05-12 15:52:14 +00:00
|
|
|
CATEGORIES= lang
|
2011-11-03 15:13:15 +00:00
|
|
|
MASTER_SITES= LOCAL/vanilla
|
2011-05-12 15:52:14 +00:00
|
|
|
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
|
|
COMMENT= Google\'s open source JavaScript engine
|
|
|
|
|
2011-05-13 03:32:44 +00:00
|
|
|
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
|
|
|
|
2012-10-09 22:12:13 +00:00
|
|
|
USE_GCC= any
|
2012-05-18 07:34:26 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PYTHON= 2.7+
|
2011-11-03 15:13:15 +00:00
|
|
|
USE_XZ= yes
|
2011-06-20 07:16:31 +00:00
|
|
|
USE_LDCONFIG= yes
|
2012-05-18 07:34:26 +00:00
|
|
|
ALL_TARGET= native
|
|
|
|
OPTIONS= SNAPSHOT "Enable snapshots" Off
|
2011-05-12 15:52:14 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-05-18 07:34:26 +00:00
|
|
|
MAKE_ARGS= library=shared
|
2011-06-20 07:16:31 +00:00
|
|
|
|
2012-05-18 07:34:26 +00:00
|
|
|
.if ${CC} == "clang" && ${CXX} == "clang++"
|
|
|
|
MAKE_ENV+= LINK=clang++
|
2011-05-12 15:52:14 +00:00
|
|
|
.else
|
2012-05-18 07:34:26 +00:00
|
|
|
MAKE_ARGS+= strictaliasing=off
|
2011-05-12 15:52:14 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_SNAPSHOT)
|
2012-05-18 07:34:26 +00:00
|
|
|
MAKE_ARGS+= snapshot=off
|
2011-05-12 15:52:14 +00:00
|
|
|
.else
|
2012-05-18 07:34:26 +00:00
|
|
|
MAKE_ARGS+= snapshot=on
|
2011-05-12 15:52:14 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
2012-05-18 07:34:26 +00:00
|
|
|
${INSTALL_LIB} -m 755 ${WRKSRC}/out/native/lib.target/libv8.so ${PREFIX}/lib/libv8.so.1
|
2011-06-20 07:16:31 +00:00
|
|
|
${LN} -sf ${PREFIX}/lib/libv8.so.1 ${PREFIX}/lib/libv8.so
|
2011-05-12 15:52:14 +00:00
|
|
|
${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>
|