mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
09f9633cb6
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which has now moved from GCC 6 to GCC 7 by default. This includes ports - featuring USE_GCC=yes or USE_GCC=any, - featuring USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and those - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x, c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib. PR: 222542
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
# Created by: siasia
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= v8
|
|
PORTVERSION= 3.18.5
|
|
PORTREVISION= 6
|
|
CATEGORIES= lang
|
|
MASTER_SITES= LOCAL/vanilla
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Open source JavaScript engine by Google
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
CONFLICTS_INSTALL= v8-devel-[0-9]*
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
PORTSCOUT= limit:^3.18.*
|
|
|
|
ALL_TARGET= native
|
|
MAKE_ARGS= library=shared
|
|
MAKE_ENV= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
|
|
USE_LDCONFIG= yes
|
|
USES= alias compiler cpe gmake python:2.7 shebangfix tar:xz
|
|
|
|
CPE_VENDOR= google
|
|
|
|
SHEBANG_FILES= build/gyp/gyp
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${COMPILER_TYPE} == clang
|
|
CXXFLAGS+= -Wno-nested-anon-types -Wno-unused-function -Wno-unused-private-field
|
|
MAKE_ENV+= LINK=clang++
|
|
.if ${COMPILER_VERSION} >= 34
|
|
CXXFLAGS+= -Wno-unused-const-variable
|
|
.if ${COMPILER_VERSION} >= 35
|
|
CXXFLAGS+= -Wno-tautological-undefined-compare
|
|
.if ${COMPILER_VERSION} >= 36
|
|
CXXFLAGS+= -Wno-unused-local-typedef
|
|
.if ${COMPILER_VERSION} >= 60
|
|
CXXFLAGS+= -Wno-null-pointer-arithmetic -Wno-vexing-parse
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-stub-cache.cc
|
|
.endif
|
|
.endif
|
|
.endif
|
|
.endif
|
|
.else
|
|
MAKE_ARGS+= strictaliasing=off
|
|
USE_GCC= any
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|test/cctest/cctest.gyp||' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e '/test\/cctest\/cctest.gyp/d' ${WRKSRC}/build/all.gyp
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/build/common.gypi ${WRKSRC}/tools/gyp/v8.gyp
|
|
@${REINPLACE_CMD} -e 's, | MAP_NORESERVE,,' ${WRKSRC}/src/platform-freebsd.cc
|
|
@${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/tools/gyp/v8.gyp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}${PREFIX}/bin/d8
|
|
cd ${WRKSRC}/include/ && ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/
|
|
${INSTALL_LIB} ${WRKSRC}/out/native/lib.target/libv8.so ${STAGEDIR}${PREFIX}/lib/libv8.so.1
|
|
${LN} -fs ${PREFIX}/lib/libv8.so.1 ${STAGEDIR}${PREFIX}/lib/libv8.so
|
|
|
|
.include <bsd.port.post.mk>
|