Fix build on FreeBSD >= 1000052 when the user has installed
devel/libexecinfo Reported by: Sam Fourman Jr <sfourman@gmail.com> Tested by: Ivan Klymenko <fidaj@ukr.net>
This commit is contained in:
parent
3843ca5aed
commit
70377e983a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=330261
3 changed files with 15 additions and 11 deletions
|
@ -29,8 +29,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/gperf:${PORTSDIR}/devel/gperf \
|
|||
ninja:${PORTSDIR}/devel/ninja \
|
||||
v4l_compat>=1.0.20110603:${PORTSDIR}/multimedia/v4l_compat
|
||||
|
||||
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
|
||||
libcairo.so:${PORTSDIR}/graphics/cairo \
|
||||
LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
|
||||
libdbus-1.so:${PORTSDIR}/devel/dbus \
|
||||
libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
|
||||
libasound.so:${PORTSDIR}/audio/alsa-lib \
|
||||
|
@ -143,9 +142,12 @@ GYP_DEFINES+= clang=1
|
|||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 1000052
|
||||
.if ${OSVERSION} >= 1000052 && !exists(${LOCALBASE}/include/execinfo.h)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-fixup-execinfo
|
||||
.endif
|
||||
.if ${OSVERSION} < 1000052
|
||||
LIB_DEPENDS+= libexecinfo.so:${PORTSDIR}/devel/libexecinfo
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MTEST}
|
||||
TEST_TARGETS= base_unittests \
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
--- v8/src/platform-posix.h.orig 2013-09-28 19:29:53.000000000 +0200
|
||||
+++ v8/src/platform-posix.h 2013-10-11 17:28:41.000000000 +0200
|
||||
@@ -29,6 +29,7 @@
|
||||
#define V8_PLATFORM_POSIX_H_
|
||||
|
||||
#if !defined(ANDROID)
|
||||
+#include <unistd.h> // size_t
|
||||
#include <cxxabi.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
@@ -40,12 +41,12 @@
|
||||
|
||||
// Used by platform implementation files during OS::DumpBacktrace()
|
||||
|
|
10
www/chromium/files/patch-v8__src__platform-posix.h
Normal file
10
www/chromium/files/patch-v8__src__platform-posix.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- v8/src/platform-posix.h.orig 2013-10-05 16:38:26.000000000 +0200
|
||||
+++ v8/src/platform-posix.h 2013-10-13 19:06:41.000000000 +0200
|
||||
@@ -28,6 +28,7 @@
|
||||
#ifndef V8_PLATFORM_POSIX_H_
|
||||
#define V8_PLATFORM_POSIX_H_
|
||||
|
||||
+#include <unistd.h> // size_t
|
||||
#if !defined(ANDROID)
|
||||
#include <cxxabi.h>
|
||||
#endif
|
Loading…
Reference in a new issue