|
Lines 126-136
Link Here
|
| 126 |
OPTIONS_DEFAULT= ALSA CODECS DRIVER GCONF KERBEROS |
126 |
OPTIONS_DEFAULT= ALSA CODECS DRIVER GCONF KERBEROS |
| 127 |
OPTIONS_SUB= yes |
127 |
OPTIONS_SUB= yes |
| 128 |
|
128 |
|
| 129 |
GCONF_USE= GNOME=gconf2 |
|
|
| 130 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
129 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
| 131 |
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \ |
130 |
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 |
131 |
alsa-lib>=1.1.1_1:audio/alsa-lib |
|
|
132 |
ALSA_VARS= GN_ARGS+=use_alsa=true |
| 133 |
ALSA_VARS_OFF= GN_ARGS+=use_alsa=false |
| 134 |
|
| 135 |
CODECS_VARS= GN_ARGS+=ffmpeg_branding="Chrome" \ |
| 136 |
GN_ARGS+=proprietary_codecs=true \ |
| 137 |
GN_ARGS+=enable_hevc_demuxing=true |
| 138 |
CODECS_VARS_OFF= GN_ARGS+=ffmpeg_branding="Chromium" \ |
| 139 |
GN_ARGS+=proprietary_codecs=false \ |
| 140 |
GN_ARGS+=enable_hevc_demuxing=false |
| 141 |
|
| 142 |
DEBUG_MAKE_ENV= V=1 |
| 143 |
DEBUG_VARS= BUILDTYPE=Debug \ |
| 144 |
GN_ARGS+=is_debug=true \ |
| 145 |
GN_BOOTSTRAP_FLAGS+=--debug \ |
| 146 |
WANTSPACE="lots of free diskspace (~ 8.5GB)" |
| 147 |
DEBUG_VARS_OFF= BUILDTYPE=Release \ |
| 148 |
GN_ARGS+=is_debug=false \ |
| 149 |
GN_ARGS+=symbol_level=0 \ |
| 150 |
GN_ARGS+=remove_webcore_debug_symbols=true \ |
| 151 |
WANTSPACE="a fair amount of free diskspace (~ 3.7GB)" |
| 152 |
|
| 153 |
DRIVER_MAKE_ARGS= chromedriver |
| 154 |
|
| 155 |
GCONF_USE= GNOME=gconf2 |
| 156 |
GCONF_VARS= GN_ARGS+=use_gconf=true |
| 157 |
GCONF_VARS_OFF= GN_ARGS+=use_gconf=false |
| 158 |
|
| 159 |
KERBEROS_VARS= GN_ARGS+=use_kerberos=true |
| 160 |
KERBEROS_VARS_OFF= GN_ARGS+=use_kerberos=false |
| 161 |
|
| 133 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
162 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
|
|
163 |
PULSEAUDIO_VARS= GN_ARGS+=use_pulseaudio=true |
| 164 |
PULSEAUDIO_VARS_OFF= GN_ARGS+=use_pulseaudio=false |
| 165 |
|
| 134 |
# With SNDIO=on we exclude audio_manager_linux from the build (see |
166 |
# 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 |
167 |
# 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 |
168 |
# 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 |
172 |
SNDIO_VARS= GN_ARGS+=use_sndio=true |
| 141 |
SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false |
173 |
SNDIO_VARS_OFF= GN_ARGS+=use_sndio=false |
| 142 |
|
174 |
|
| 143 |
DRIVER_MAKE_ARGS=chromedriver |
175 |
TEST_ALL_TARGET= ${TEST_TARGETS} |
| 144 |
TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX}:source1 |
176 |
TEST_DISTFILES= ${PORTNAME}-${DISTVERSION}-testdata${EXTRACT_SUFX}:source1 |
|
|
177 |
TEST_VARS= RUN_TESTS="${TEST_TARGETS}" |
| 145 |
|
178 |
|
| 146 |
.include <bsd.port.options.mk> |
|
|
| 147 |
|
| 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> |
179 |
.include <bsd.port.pre.mk> |
| 200 |
|
180 |
|
| 201 |
CC= clang40 |
181 |
CC= clang40 |
| 202 |
CXX= clang++40 |
182 |
CXX= clang++40 |
| 203 |
#optionally set AR, LD, NM, READELF ? |
183 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang |
| 204 |
|
184 |
|
| 205 |
# TODO: -isystem, would be just as ugly as this approach, but more reliably |
185 |
# 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. |
186 |
# build would fail without C_INCLUDE_PATH/CPLUS_INCLUDE_PATH env var set. |
| 207 |
MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ |
187 |
MAKE_ENV+= C_INCLUDE_PATH=${LOCALBASE}/include \ |
| 208 |
CPLUS_INCLUDE_PATH=${LOCALBASE}/include |
188 |
CPLUS_INCLUDE_PATH=${LOCALBASE}/include |
| 209 |
# TODO: move this big extra to small ones |
|
|
| 210 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang |
| 211 |
|
189 |
|
| 212 |
# Work around base r261801 |
190 |
# Work around base r261801 |
| 213 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100508 |
191 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100508 |
|
Lines 216-228
Link Here
|
| 216 |
|
194 |
|
| 217 |
pre-everything:: |
195 |
pre-everything:: |
| 218 |
@${ECHO_MSG} |
196 |
@${ECHO_MSG} |
| 219 |
@${ECHO_MSG} "To build Chromium, you should have around 2GB of memory," |
197 |
@${ECHO_MSG} "To build Chromium, you should have around 2GB of memory" |
| 220 |
.if ${PORT_OPTIONS:MDEBUG} |
198 |
@${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} |
199 |
@${ECHO_MSG} |
| 227 |
|
200 |
|
| 228 |
post-extract: |
201 |
post-extract: |
|
Lines 256-262
Link Here
|
| 256 |
${LN} -sf ${LOCALBASE}/bin/node ${WRKSRC}/third_party/node/linux/node-linux-x64/bin/node |
229 |
${LN} -sf ${LOCALBASE}/bin/node ${WRKSRC}/third_party/node/linux/node-linux-x64/bin/node |
| 257 |
|
230 |
|
| 258 |
test regression-test: build |
231 |
test regression-test: build |
| 259 |
.for t in ${TEST_TARGETS} |
232 |
.for t in ${RUN_TESTS} |
| 260 |
cd ${WRKSRC}/out/${BUILDTYPE} && ${SETENV} LC_ALL=en_US.UTF-8 \ |
233 |
cd ${WRKSRC}/out/${BUILDTYPE} && ${SETENV} LC_ALL=en_US.UTF-8 \ |
| 261 |
./${t} --gtest_filter=-${EXCLUDE_${t}:ts:} || ${TRUE} |
234 |
./${t} --gtest_filter=-${EXCLUDE_${t}:ts:} || ${TRUE} |
| 262 |
.endfor |
235 |
.endfor |
|
Lines 294-308
Link Here
|
| 294 |
${INSTALL_SCRIPT} ${WRKDIR}/chrome ${STAGEDIR}${PREFIX}/bin |
267 |
${INSTALL_SCRIPT} ${WRKDIR}/chrome ${STAGEDIR}${PREFIX}/bin |
| 295 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \ |
268 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/mksnapshot \ |
| 296 |
${STAGEDIR}${DATADIR} |
269 |
${STAGEDIR}${DATADIR} |
| 297 |
.if ${PORT_OPTIONS:MDEBUG} |
270 |
|
|
|
271 |
post-install-DEBUG-on: |
| 298 |
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ |
272 |
${INSTALL_LIB} ${WRKSRC}/out/${BUILDTYPE}/*.so \ |
| 299 |
${STAGEDIR}${DATADIR} |
273 |
${STAGEDIR}${DATADIR} |
| 300 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/character_data_generator \ |
274 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/character_data_generator \ |
| 301 |
${STAGEDIR}${DATADIR} |
275 |
${STAGEDIR}${DATADIR} |
| 302 |
.endif |
276 |
|
| 303 |
.if ${PORT_OPTIONS:MDRIVER} |
277 |
post-install-DRIVER-on: |
| 304 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chromedriver \ |
278 |
${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chromedriver \ |
| 305 |
${STAGEDIR}${PREFIX}/bin |
279 |
${STAGEDIR}${PREFIX}/bin |
| 306 |
.endif |
|
|
| 307 |
|
280 |
|
| 308 |
.include <bsd.port.post.mk> |
281 |
.include <bsd.port.post.mk> |