2012-12-12 02:02:55 +00:00
|
|
|
# Created by: siasia
|
2011-05-12 15:52:14 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= v8
|
2013-05-04 06:53:06 +00:00
|
|
|
PORTVERSION= 3.18.5
|
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
|
|
|
|
|
2012-12-12 02:02:55 +00:00
|
|
|
LIB_DEPENDS= execinfo:${PORTSDIR}/devel/libexecinfo
|
2011-05-13 03:32:44 +00:00
|
|
|
|
2012-05-18 07:34:26 +00:00
|
|
|
USE_GMAKE= yes
|
2011-11-03 15:13:15 +00:00
|
|
|
USE_XZ= yes
|
2013-03-09 11:45:26 +00:00
|
|
|
USE_PYTHON= 2.6+
|
2011-06-20 07:16:31 +00:00
|
|
|
USE_LDCONFIG= yes
|
2012-05-18 07:34:26 +00:00
|
|
|
ALL_TARGET= native
|
|
|
|
MAKE_ARGS= library=shared
|
2011-06-20 07:16:31 +00:00
|
|
|
|
2012-12-14 13:41:04 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-12-12 02:02:55 +00:00
|
|
|
.if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024
|
2013-05-05 13:51:08 +00:00
|
|
|
_CLANG!= clang --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
|
2012-05-18 07:34:26 +00:00
|
|
|
MAKE_ENV+= LINK=clang++
|
2013-05-05 13:51:08 +00:00
|
|
|
CFLAGS+= -Wno-unused-private-field
|
|
|
|
.if ${_CLANG} >= 33
|
2013-05-27 13:36:43 +00:00
|
|
|
CFLAGS+= -Wno-nested-anon-types -Wno-unused-function
|
2013-05-05 13:51:08 +00:00
|
|
|
.endif
|
2011-05-12 15:52:14 +00:00
|
|
|
.else
|
2012-05-18 07:34:26 +00:00
|
|
|
MAKE_ARGS+= strictaliasing=off
|
2012-12-12 02:02:55 +00:00
|
|
|
USE_GCC= any
|
2011-05-12 15:52:14 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
2013-03-09 11:45:26 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/build/common.gypi ${WRKSRC}/tools/gyp/v8.gyp
|
|
|
|
|
2011-05-12 15:52:14 +00:00
|
|
|
do-install:
|
2012-10-23 16:36:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${PREFIX}/bin/d8
|
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/
|
|
|
|
|
2012-12-14 13:41:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|