|
Lines 61-68
Link Here
|
| 61 |
droid-fonts-ttf>0:x11-fonts/droid-fonts-ttf |
61 |
droid-fonts-ttf>0:x11-fonts/droid-fonts-ttf |
| 62 |
|
62 |
|
| 63 |
ONLY_FOR_ARCHS= amd64 i386 |
63 |
ONLY_FOR_ARCHS= amd64 i386 |
| 64 |
USES= bison compiler cpe desktop-file-utils execinfo jpeg \ |
64 |
USES= bison cpe desktop-file-utils execinfo jpeg ninja perl5 \ |
| 65 |
ninja perl5 pkgconfig python:2,build shebangfix tar:xz |
65 |
pkgconfig python:2,build shebangfix tar:xz |
| 66 |
|
66 |
|
| 67 |
CPE_VENDOR= google |
67 |
CPE_VENDOR= google |
| 68 |
CPE_PRODUCT= chrome |
68 |
CPE_PRODUCT= chrome |
|
Lines 76-81
Link Here
|
| 76 |
ALL_TARGET= chrome |
76 |
ALL_TARGET= chrome |
| 77 |
INSTALLS_ICONS= yes |
77 |
INSTALLS_ICONS= yes |
| 78 |
|
78 |
|
|
|
79 |
CC= clang40 |
| 80 |
CXX= clang++40 |
| 81 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang |
| 82 |
|
| 79 |
# TODO bz@ : install libwidevinecdm.so (see third_party/widevine/cdm/BUILD.gn) |
83 |
# TODO bz@ : install libwidevinecdm.so (see third_party/widevine/cdm/BUILD.gn) |
| 80 |
# |
84 |
# |
| 81 |
# Run "./out/${BUILDTYPE}/gn args out/${BUILDTYPE} --list" for all variables. |
85 |
# Run "./out/${BUILDTYPE}/gn args out/${BUILDTYPE} --list" for all variables. |
|
Lines 126-136
Link Here
|
| 126 |
OPTIONS_DEFAULT= ALSA CODECS DRIVER GCONF KERBEROS |
130 |
OPTIONS_DEFAULT= ALSA CODECS DRIVER GCONF KERBEROS |
| 127 |
OPTIONS_SUB= yes |
131 |
OPTIONS_SUB= yes |
| 128 |
|
132 |
|
| 129 |
GCONF_USE= GNOME=gconf2 |
|
|
| 130 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
133 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
| 131 |
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ |
134 |
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ |
| 132 |
alsa-lib>=1.1.1_1:audio/alsa-lib |
135 |
alsa-lib>=1.1.1_1:audio/alsa-lib |
|
|
136 |
ALSA_VARS= GN_ARGS+=use_alsa=true |
| 137 |
ALSA_VARS_OFF= GN_ARGS+=use_alsa=false |
| 138 |
|
| 139 |
CODECS_VARS= GN_ARGS+=ffmpeg_branding="Chrome" \ |
| 140 |
GN_ARGS+=proprietary_codecs=true \ |
| 141 |
GN_ARGS+=enable_hevc_demuxing=true |
| 142 |
CODECS_VARS_OFF= GN_ARGS+=ffmpeg_branding="Chromium" \ |
| 143 |
GN_ARGS+=proprietary_codecs=false \ |
| 144 |
GN_ARGS+=enable_hevc_demuxing=false |
| 145 |
|
| 146 |
DEBUG_VARS= BUILDTYPE=Debug \ |
| 147 |
GN_ARGS+=is_debug=true \ |
| 148 |
GN_BOOTSTRAP_FLAGS+=--debug \ |
| 149 |
WANTSPACE="lots of free diskspace (~ 8.5GB)" |
| 150 |
DEBUG_VARS_OFF= BUILDTYPE=Release \ |
| 151 |
GN_ARGS+=is_debug=false \ |
| 152 |
GN_ARGS+=symbol_level=0 \ |
| 153 |
GN_ARGS+=remove_webcore_debug_symbols=true \ |
| 154 |
WANTSPACE="a fair amount of free diskspace (~ 3.7GB)" |
| 155 |
|
| 156 |
DRIVER_MAKE_ARGS= chromedriver |
| 157 |
|
| 158 |
GCONF_USE= GNOME=gconf2 |
| 159 |
GCONF_VARS= GN_ARGS+=use_gconf=true |
| 160 |
GCONF_VARS_OFF= GN_ARGS+=use_gconf=false |
| 161 |
|
| 162 |
KERBEROS_VARS= GN_ARGS+=use_kerberos=true |
| 163 |
KERBEROS_VARS_OFF= GN_ARGS+=use_kerberos=false |
| 164 |
|
| 133 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
165 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
|
|
166 |
PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true |
| 167 |
PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false |
| 168 |
|
| 134 |
# With SNDIO=on we exclude audio_manager_linux from the build (see |
169 |
# With SNDIO=on we exclude audio_manager_linux from the build (see |
| 135 |
# media/audio/BUILD.gn) and use audio_manager_openbsd which does not |
170 |
# media/audio/BUILD.gn) and use audio_manager_openbsd which does not |
| 136 |
# support falling back to ALSA. In theory it supports falling back to |
171 |
# support falling back to ALSA. In theory it supports falling back to |
|
Lines 140-213
Link Here
|
| 140 |
SNDIO_VARS= GN_ARGS+=use_sndio=true |
175 |
SNDIO_VARS= GN_ARGS+=use_sndio=true |
| 141 |
SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false |
176 |
SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false |
| 142 |
|
177 |
|
| 143 |
DRIVER_MAKE_ARGS=chromedriver |
178 |
.include "Makefile.tests" |
| 144 |
TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX}:source1 |
179 |
TEST_ALL_TARGET= ${TEST_TARGETS} |
|
|
180 |
TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX}:source1 |
| 145 |
|
181 |
|
| 146 |
.include <bsd.port.options.mk> |
182 |
.include <bsd.port.options.mk> |
| 147 |
|
183 |
|
| 148 |
.if ${PORT_OPTIONS:MALSA} |
|
|
| 149 |
GN_ARGS+= use_alsa=true |
| 150 |
.else |
| 151 |
GN_ARGS+= use_alsa=false |
| 152 |
.endif |
| 153 |
|
| 154 |
.if ${PORT_OPTIONS:MCODECS} |
| 155 |
GN_ARGS+= ffmpeg_branding="Chrome" |
| 156 |
GN_ARGS+= proprietary_codecs=true |
| 157 |
GN_ARGS+= enable_hevc_demuxing=true |
| 158 |
.else |
| 159 |
GN_ARGS+= ffmpeg_branding="Chromium" |
| 160 |
GN_ARGS+= proprietary_codecs=false |
| 161 |
GN_ARGS+= enable_hevc_demuxing=false |
| 162 |
.endif |
| 163 |
|
| 164 |
.if ${PORT_OPTIONS:MDEBUG} |
| 165 |
BUILDTYPE= Debug |
| 166 |
GN_ARGS+= is_debug=true |
| 167 |
GN_BOOTSTRAP_FLAGS+= --debug |
| 168 |
MAKE_ENV+= V=1 |
| 169 |
.else |
| 170 |
BUILDTYPE= Release |
| 171 |
GN_ARGS+= is_debug=false |
| 172 |
GN_ARGS+= symbol_level=0 |
| 173 |
GN_ARGS+= remove_webcore_debug_symbols=true |
| 174 |
.endif |
| 175 |
|
| 176 |
.if ${PORT_OPTIONS:MGCONF} |
| 177 |
GN_ARGS+= use_gconf=true |
| 178 |
.else |
| 179 |
GN_ARGS+= use_gconf=false |
| 180 |
.endif |
| 181 |
|
| 182 |
.if ${PORT_OPTIONS:MKERBEROS} |
| 183 |
GN_ARGS+= use_kerberos=true |
| 184 |
.else |
| 185 |
GN_ARGS+= use_kerberos=false |
| 186 |
.endif |
| 187 |
|
| 188 |
.if ${PORT_OPTIONS:MPULSEAUDIO} |
| 189 |
GN_ARGS+= use_pulseaudio=true |
| 190 |
.else |
| 191 |
GN_ARGS+= use_pulseaudio=false |
| 192 |
.endif |
| 193 |
|
| 194 |
.if ${PORT_OPTIONS:MTEST} |
| 195 |
.include "Makefile.tests" |
| 196 |
ALL_TARGET+= ${TEST_TARGETS} |
| 197 |
.endif |
| 198 |
|
| 199 |
.include <bsd.port.pre.mk> |
| 200 |
|
| 201 |
CC= clang40 |
| 202 |
CXX= clang++40 |
| 203 |
#optionally set AR, LD, NM, READELF ? |
| 204 |
|
| 205 |
# TODO: -isystem, would be just as ugly as this approach, but more reliably |
184 |
# TODO: -isystem, would be just as ugly as this approach, but more reliably |
| 206 |
# build would fail without C_INCLUDE_PATH/CPLUS_INCLUDE_PATH env var set. |
185 |
# build would fail without C_INCLUDE_PATH/CPLUS_INCLUDE_PATH env var set. |
| 207 |
MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ |
186 |
MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ |
| 208 |
CPLUS_INCLUDE_PATH=${LOCALBASE}/include |
187 |
CPLUS_INCLUDE_PATH=${LOCALBASE}/include |
| 209 |
# TODO: move this big extra to small ones |
|
|
| 210 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang |
| 211 |
|
188 |
|
| 212 |
# Work around base r261801 |
189 |
# Work around base r261801 |
| 213 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100508 |
190 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100508 |
|
Lines 216-228
Link Here
|
| 216 |
|
193 |
|
| 217 |
pre-everything:: |
194 |
pre-everything:: |
| 218 |
@${ECHO_MSG} |
195 |
@${ECHO_MSG} |
| 219 |
@${ECHO_MSG} "To build Chromium, you should have around 2GB of memory," |
196 |
@${ECHO_MSG} "To build Chromium, you should have around 2GB of memory" |
| 220 |
.if ${PORT_OPTIONS:MDEBUG} |
197 |
@${ECHO_MSG} "and ${WANTSPACE}." |
| 221 |
@${ECHO_MSG} "lots of free diskspace (~ 40GB)" |
|
|
| 222 |
@${ECHO_MSG} "and no less then 16GB of memory for linking." |
| 223 |
.else |
| 224 |
@${ECHO_MSG} "and a fair amount of free diskspace (~ 3.7GB)." |
| 225 |
.endif |
| 226 |
@${ECHO_MSG} |
198 |
@${ECHO_MSG} |
| 227 |
|
199 |
|
| 228 |
post-extract: |
200 |
post-extract: |
|
Lines 255-261
Link Here
|
| 255 |
@${MKDIR} ${WRKSRC}/third_party/node/linux/node-linux-x64/bin |
227 |
@${MKDIR} ${WRKSRC}/third_party/node/linux/node-linux-x64/bin |
| 256 |
${LN} -sf ${LOCALBASE}/bin/node ${WRKSRC}/third_party/node/linux/node-linux-x64/bin/node |
228 |
${LN} -sf ${LOCALBASE}/bin/node ${WRKSRC}/third_party/node/linux/node-linux-x64/bin/node |
| 257 |
|
229 |
|
| 258 |
test regression-test: build |
230 |
do-test-TEST-on: |
| 259 |
.for t in ${TEST_TARGETS} |
231 |
.for t in ${TEST_TARGETS} |
| 260 |
cd ${WRKSRC}/out/${BUILDTYPE} && ${SETENV} LC_ALL=en_US.UTF-8 \ |
232 |
cd ${WRKSRC}/out/${BUILDTYPE} && ${SETENV} LC_ALL=en_US.UTF-8 \ |
| 261 |
./${t} --gtest_filter=-${EXCLUDE_${t}:ts:} || ${TRUE} |
233 |
./${t} --gtest_filter=-${EXCLUDE_${t}:ts:} || ${TRUE} |
|
Lines 294-308
Link Here
|
| 294 |
${INSTALL_SCRIPT} ${WRKDIR}/chrome ${STAGEDIR}${PREFIX}/bin |
266 |
${INSTALL_SCRIPT} ${WRKDIR}/chrome ${STAGEDIR}${PREFIX}/bin |
| 295 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \ |
267 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \ |
| 296 |
${STAGEDIR}${DATADIR} |
268 |
${STAGEDIR}${DATADIR} |
| 297 |
.if ${PORT_OPTIONS:MDEBUG} |
269 |
|
|
|
270 |
post-install-DEBUG-on: |
| 298 |
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ |
271 |
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ |
| 299 |
${STAGEDIR}${DATADIR} |
272 |
${STAGEDIR}${DATADIR} |
| 300 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/character_data_generator \ |
273 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/character_data_generator \ |
| 301 |
${STAGEDIR}${DATADIR} |
274 |
${STAGEDIR}${DATADIR} |
| 302 |
.endif |
275 |
|
| 303 |
.if ${PORT_OPTIONS:MDRIVER} |
276 |
post-install-DRIVER-on: |
| 304 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chromedriver \ |
277 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chromedriver \ |
| 305 |
${STAGEDIR}${PREFIX}/bin |
278 |
${STAGEDIR}${PREFIX}/bin |
| 306 |
.endif |
|
|
| 307 |
|
279 |
|
| 308 |
.include <bsd.port.post.mk> |
280 |
.include <bsd.port.mk> |