1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

- Enable building Chromium with v8 from Ports installed.

- Minor cleanups.

Submitted by:	George Liaskos
This commit is contained in:
Rene Ladan 2011-09-27 17:43:40 +00:00
parent 5c83b02da6
commit 9cd088eb24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=282502
4 changed files with 30 additions and 14 deletions

View File

@ -15,7 +15,6 @@ MASTER_SITES= http://download.goodking.org/downloads/ \
http://files.etoilebsd.net/goodking/ \
http://distfiles.cybertron.gr/
MAINTAINER= chromium@FreeBSD.org
COMMENT= A mostly BSD-licensed web browser based on WebKit and Gtk+
@ -45,7 +44,6 @@ LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \
event-1.4:${PORTSDIR}/devel/libevent \
vpx:${PORTSDIR}/multimedia/libvpx \
tcmalloc.2:${PORTSDIR}/devel/google-perftools
# TODO(gliaskos): We should add --enable-heap-checker on perftools to set linux_use_heapchecker.
RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins \
${LOCALBASE}/lib/X11/fonts/Droid/fonts.dir:${PORTSDIR}/x11-fonts/droid-fonts-ttf \
@ -84,7 +82,7 @@ GYP_DEFINES+= use_cups=1 \
python_ver=${PYTHON_VER}
OPTIONS= CODECS "Compile and enable patented codecs like H.264" on \
GCONF "Use GConf2 for preferences" on \
GCONF "Use GConf2 for preferences" on
# CLANG "Compile Chromium with clang" off
.include <bsd.port.options.mk>

View File

@ -1,5 +1,5 @@
--- base/allocator/allocator.gyp.orig 2011-09-16 17:00:33.000000000 +0300
+++ base/allocator/allocator.gyp 2011-09-16 17:03:48.000000000 +0300
--- base/allocator/allocator.gyp.orig 2011-09-14 11:01:29.000000000 +0300
+++ base/allocator/allocator.gyp 2011-09-25 22:56:07.000000000 +0300
@@ -7,324 +7,196 @@
'jemalloc_dir': '../../third_party/jemalloc/chromium',
'tcmalloc_dir': '../../third_party/tcmalloc/chromium',
@ -43,10 +43,10 @@
+ },
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(pkg-config libtcmalloc --libs-only-l)',
+ '<!@(pkg-config libtcmalloc --libs-only-L)',
+ ],
+ 'libraries': [
+ '<!@(pkg-config libtcmalloc --libs-only-L)',
+ '<!@(pkg-config libtcmalloc --libs-only-l)',
],
- }],
- ],

View File

@ -1,5 +1,5 @@
--- build/common.gypi.orig 2011-09-12 11:35:33.000000000 +0300
+++ build/common.gypi 2011-09-16 19:05:37.000000000 +0300
--- build/common.gypi.orig 2011-09-14 11:01:28.000000000 +0300
+++ build/common.gypi 2011-09-20 23:07:03.727643942 +0300
@@ -303,6 +303,10 @@
'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
'enable_smooth_scrolling%': '<(enable_smooth_scrolling)',
@ -29,7 +29,7 @@
'sources/': [
['exclude', '_linux(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)linux/'],
@@ -1536,6 +1540,15 @@
@@ -1536,6 +1540,19 @@
'ldflags': [
'-Wl,--no-keep-memory',
],
@ -39,8 +39,12 @@
+ 'libraries!': [
+ '-ldl',
+ ],
+ 'cflags!': [
+ '-fno-signed-zeros',
+ 'conditions': [
+ ['gcc_version == 42', {
+ 'cflags!': [
+ '-fno-signed-zeros',
+ ],
+ }],
+ ],
},
}],

View File

@ -1,5 +1,5 @@
--- v8/src/extensions/experimental/experimental.gyp.orig 2011-09-11 19:05:30.000000000 +0300
+++ v8/src/extensions/experimental/experimental.gyp 2011-09-11 19:05:46.000000000 +0300
--- v8/src/extensions/experimental/experimental.gyp.orig 2011-09-14 11:19:51.000000000 +0300
+++ v8/src/extensions/experimental/experimental.gyp 2011-09-26 02:10:36.000000000 +0300
@@ -56,8 +56,14 @@
'number-format.h',
'<(SHARED_INTERMEDIATE_DIR)/i18n-js.cc',
@ -16,3 +16,17 @@
# v8/ is root for all includes.
'../../..'
],
@@ -71,6 +77,13 @@
'include_dirs': [
'../../..'
],
+ 'conditions': [
+ ['OS == "freebsd"', {
+ 'include_dirs!': [
+ '<(prefix_dir)/include',
+ ],
+ }],
+ ],
},
},
{