freebsd-ports/lang/v8/Makefile
Vanilla I. Shu cf6e02ff81 Fix build.
Submitted by:	Akihiko HAYASHI <hayashi at totalware.gifu.gifu.jp>
2012-12-14 13:41:04 +00:00

45 lines
1.2 KiB
Makefile

# Created by: siasia
# $FreeBSD$
PORTNAME= v8
PORTVERSION= 3.15.10
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_PYTHON= 2.7+
USE_XZ= yes
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++
.else
MAKE_ARGS+= strictaliasing=off
USE_GCC= any
.endif
ONLY_FOR_ARCHS= i386 amd64
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>