diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-12-05 16:54:14 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2014-12-05 16:54:14 +0000 |
commit | 2938c3e1e16c3473a60060a48330702490cf6fd3 (patch) | |
tree | 9a0d759ad4590e20c211a0fb42067616e94b0647 /lang | |
parent | 6f09fa335bd38801b846d0373b0ad05f8d78e2da (diff) | |
download | ports-2938c3e1e16c3473a60060a48330702490cf6fd3.tar.gz ports-2938c3e1e16c3473a60060a48330702490cf6fd3.zip |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/v8-devel/Makefile | 13 | ||||
-rw-r--r-- | lang/v8-devel/files/patch-Makefile | 9 | ||||
-rw-r--r-- | lang/v8-devel/files/patch-build__all.gyp | 10 | ||||
-rw-r--r-- | lang/v8-devel/files/patch-src_platform-freebsd.cc | 29 |
4 files changed, 8 insertions, 53 deletions
diff --git a/lang/v8-devel/Makefile b/lang/v8-devel/Makefile index cdb873ab9cfe..c492f22b9400 100644 --- a/lang/v8-devel/Makefile +++ b/lang/v8-devel/Makefile @@ -13,11 +13,12 @@ COMMENT= Open source JavaScript engine by Google LICENSE= BSD3CLAUSE -BUILD_DEPENDS= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python LIB_DEPENDS= libicui18n.so:${PORTSDIR}/devel/icu CONFLICTS_INSTALL= v8-[0-9]* +ONLY_FOR_ARCHS= i386 amd64 + 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} @@ -26,7 +27,7 @@ USES= compiler cpe execinfo gmake python:2 shebangfix tar:xz CPE_VENDOR= google -SHEBANG_FILES= ${WRKSRC}/build/gyp/gyp +SHEBANG_FILES= build/gyp/gyp bash_CMD= ${SH} .include <bsd.port.pre.mk> @@ -46,10 +47,12 @@ MAKE_ARGS+= strictaliasing=off USE_GCC= any .endif -ONLY_FOR_ARCHS= i386 amd64 - post-patch: - @${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/build/gyp/gyp ${WRKSRC}/tools/gyp/v8.gyp + @${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|python|${PYTHON_CMD}|' ${WRKSRC}/build/shim_headers.gypi ${WRKSRC}/build/gyp/gyp ${WRKSRC}/tools/gyp/v8.gyp + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/build/toolchain.gypi ${WRKSRC}/tools/gyp/v8.gyp + @${REINPLACE_CMD} -e 's, | MAP_NORESERVE,,' ${WRKSRC}/src/platform-freebsd.cc do-install: ${INSTALL_PROGRAM} ${WRKSRC}/out/native/d8 ${STAGEDIR}${PREFIX}/bin/d8 diff --git a/lang/v8-devel/files/patch-Makefile b/lang/v8-devel/files/patch-Makefile index 4f4feb63e8ce..66431b86f357 100644 --- a/lang/v8-devel/files/patch-Makefile +++ b/lang/v8-devel/files/patch-Makefile @@ -15,15 +15,6 @@ # disassembler=on ifeq ($(disassembler), on) GYPFLAGS += -Dv8_enable_disassembler=1 -@@ -233,7 +241,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) @@ -386,8 +394,7 @@ clean: $(addsuffix .clean, $(ARCHES) $(A # GYP file generation targets. OUT_MAKEFILES = $(addprefix $(OUTDIR)/Makefile.,$(BUILDS)) diff --git a/lang/v8-devel/files/patch-build__all.gyp b/lang/v8-devel/files/patch-build__all.gyp deleted file mode 100644 index 765d5dc4287b..000000000000 --- a/lang/v8-devel/files/patch-build__all.gyp +++ /dev/null @@ -1,10 +0,0 @@ ---- 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/files/patch-src_platform-freebsd.cc b/lang/v8-devel/files/patch-src_platform-freebsd.cc deleted file mode 100644 index c18f2f404991..000000000000 --- a/lang/v8-devel/files/patch-src_platform-freebsd.cc +++ /dev/null @@ -1,29 +0,0 @@ ---- src/platform-freebsd.cc.orig 2014-06-03 04:52:11.000000000 -0400 -+++ src/platform-freebsd.cc 2014-10-08 11:16:08.000000000 -0400 -@@ -189,7 +189,7 @@ VirtualMemory::VirtualMemory(size_t size - void* reservation = mmap(OS::GetRandomMmapAddr(), - request_size, - PROT_NONE, -- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, -+ MAP_PRIVATE | MAP_ANON, - kMmapFd, - kMmapFdOffset); - if (reservation == MAP_FAILED) return; -@@ -261,7 +261,7 @@ void* VirtualMemory::ReserveRegion(size_ - void* result = mmap(OS::GetRandomMmapAddr(), - size, - PROT_NONE, -- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, -+ MAP_PRIVATE | MAP_ANON, - kMmapFd, - kMmapFdOffset); - -@@ -289,7 +289,7 @@ bool VirtualMemory::UncommitRegion(void* - return mmap(base, - size, - PROT_NONE, -- MAP_PRIVATE | MAP_ANON | MAP_NORESERVE | MAP_FIXED, -+ MAP_PRIVATE | MAP_ANON | MAP_FIXED, - kMmapFd, - kMmapFdOffset) != MAP_FAILED; - } |