aboutsummaryrefslogtreecommitdiffstats
path: root/lang/v8-devel
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2013-12-28 12:28:43 +0800
committervanilla <vanilla@FreeBSD.org>2013-12-28 12:28:43 +0800
commite80fa10b92850d17656b10399747da9825f9de56 (patch)
tree02502a2313bae4ffb01bd98bab181787890ca17b /lang/v8-devel
parent0ac0e4b26e200f6d351e6417aa52f121f262004b (diff)
downloadfreebsd-ports-gnome-e80fa10b92850d17656b10399747da9825f9de56.tar.gz
freebsd-ports-gnome-e80fa10b92850d17656b10399747da9825f9de56.tar.zst
freebsd-ports-gnome-e80fa10b92850d17656b10399747da9825f9de56.zip
repo copy lang/v8 to lang/v8-devel.
Diffstat (limited to 'lang/v8-devel')
-rw-r--r--lang/v8-devel/Makefile60
-rw-r--r--lang/v8-devel/distinfo2
-rw-r--r--lang/v8-devel/files/patch-Makefile26
-rw-r--r--lang/v8-devel/files/patch-build__all.gyp10
-rw-r--r--lang/v8-devel/pkg-descr3
-rw-r--r--lang/v8-devel/pkg-plist10
6 files changed, 111 insertions, 0 deletions
diff --git a/lang/v8-devel/Makefile b/lang/v8-devel/Makefile
new file mode 100644
index 000000000000..be31fbd386f0
--- /dev/null
+++ b/lang/v8-devel/Makefile
@@ -0,0 +1,60 @@
+# Created by: siasia
+# $FreeBSD$
+
+PORTNAME= v8
+PORTVERSION= 3.24.7
+CATEGORIES= lang
+MASTER_SITES= LOCAL/vanilla
+PKGNAMESUFFIX= -devel
+
+MAINTAINER= vanilla@FreeBSD.org
+COMMENT= Google\'s open source JavaScript engine
+
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python
+LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
+ libicui18n.so:${PORTSDIR}/devel/icu
+
+CONFLICTS= v8-3.19.*
+
+USES= gmake shebangfix
+SHEBANG_LANG= sh
+SHEBANG_FILES= ${WRKSRC}/build/gyp/gyp
+USE_XZ= yes
+USE_PYTHON= 2.6-2.7
+USE_LDCONFIG= yes
+ALL_TARGET= native
+MAKE_ARGS= library=shared use_system_icu=on
+MAKE_ENV+= CC.host=${CC} CXX.host=${CXX} LINK.host=${CXX} LINK.target=${CXX}
+sh_OLD_CMD= /bin/bash
+sh_CMD= ${SH}
+
+.include <bsd.port.pre.mk>
+
+.if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024
+_CLANG!= ${CC} --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
+MAKE_ENV+= LINK=clang++ AR=/usr/bin/ar
+MAKE_ARGS+= clang=on
+CFLAGS+= -Wno-unused-private-field -Wno-unused-variable
+.if ${_CLANG} >= 33
+CFLAGS+= -Wno-nested-anon-types -Wno-unused-function
+.endif
+.else
+MAKE_ARGS+= strictaliasing=off
+USE_GCC= any
+.endif
+
+ONLY_FOR_ARCHS= i386 amd64
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}${PREFIX}/bin/d8
+ ${INSTALL_LIB} -m 755 ${WRKSRC}/out/native/lib.target/libv8.so ${STAGEDIR}${PREFIX}/lib/libv8.so.1
+ ${LN} -sf ${PREFIX}/lib/libv8.so.1 ${STAGEDIR}${PREFIX}/lib/libv8.so
+ ${INSTALL_DATA} ${WRKSRC}/include/v8.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/v8-debug.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/v8-platform.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/v8-profiler.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/v8-testing.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/v8config.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/include/v8stdint.h ${STAGEDIR}${PREFIX}/include
+
+.include <bsd.port.post.mk>
diff --git a/lang/v8-devel/distinfo b/lang/v8-devel/distinfo
new file mode 100644
index 000000000000..d9b80b64f2da
--- /dev/null
+++ b/lang/v8-devel/distinfo
@@ -0,0 +1,2 @@
+SHA256 (v8-3.24.7.tar.xz) = 4007211042d1e34d88af30025aa9536d2556da0f3bb744e5290e33698939086b
+SIZE (v8-3.24.7.tar.xz) = 35186840
diff --git a/lang/v8-devel/files/patch-Makefile b/lang/v8-devel/files/patch-Makefile
new file mode 100644
index 000000000000..8b95d999c372
--- /dev/null
+++ b/lang/v8-devel/files/patch-Makefile
@@ -0,0 +1,26 @@
+--- Makefile.orig 2013-10-24 23:26:16.000000000 +0800
++++ Makefile 2013-10-25 10:19:26.000000000 +0800
+@@ -52,6 +52,14 @@ endif
+ ifdef console
+ GYPFLAGS += -Dconsole=$(console)
+ endif
++# clang=on
++ifeq ($(clang), on)
++ GYPFLAGS += -Dclang=1
++endif
++# use_system_icu=on
++ifeq ($(use_system_icu), on)
++ GYPFLAGS += -Duse_system_icu=1
++endif
+ # disassembler=on
+ ifeq ($(disassembler), on)
+ GYPFLAGS += -Dv8_enable_disassembler=1
+@@ -223,7 +231,7 @@ NACL_ARCHES = nacl_ia32 nacl_x64
+ # List of files that trigger Makefile regeneration:
+ GYPFILES = build/all.gyp build/features.gypi build/standalone.gypi \
+ build/toolchain.gypi samples/samples.gyp src/d8.gyp \
+- test/cctest/cctest.gyp tools/gyp/v8.gyp
++ tools/gyp/v8.gyp
+
+ # If vtunejit=on, the v8vtune.gyp will be appended.
+ ifeq ($(vtunejit), on)
diff --git a/lang/v8-devel/files/patch-build__all.gyp b/lang/v8-devel/files/patch-build__all.gyp
new file mode 100644
index 000000000000..765d5dc4287b
--- /dev/null
+++ b/lang/v8-devel/files/patch-build__all.gyp
@@ -0,0 +1,10 @@
+--- build/all.gyp.orig 2013-02-28 19:01:51.000000000 +0800
++++ build/all.gyp 2013-02-28 19:02:00.000000000 +0800
+@@ -11,7 +11,6 @@
+ '../preparser/preparser.gyp:*',
+ '../samples/samples.gyp:*',
+ '../src/d8.gyp:d8',
+- '../test/cctest/cctest.gyp:*',
+ ],
+ }
+ ]
diff --git a/lang/v8-devel/pkg-descr b/lang/v8-devel/pkg-descr
new file mode 100644
index 000000000000..b7412aa9e000
--- /dev/null
+++ b/lang/v8-devel/pkg-descr
@@ -0,0 +1,3 @@
+Google's open source JavaScript engine
+
+WWW: http://code.google.com/p/v8/
diff --git a/lang/v8-devel/pkg-plist b/lang/v8-devel/pkg-plist
new file mode 100644
index 000000000000..600fba17b044
--- /dev/null
+++ b/lang/v8-devel/pkg-plist
@@ -0,0 +1,10 @@
+bin/d8
+include/v8-debug.h
+include/v8-platform.h
+include/v8-profiler.h
+include/v8-testing.h
+include/v8.h
+include/v8config.h
+include/v8stdint.h
+lib/libv8.so
+lib/libv8.so.1