1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Open-source 2D graphics library
9 HOMEPAGE= https://skia.org
12 DOWNLOAD_GROUPS= main dng piex sfn zlib
13 SITES[main]= GITHUB/google:skia:4b55ff0
14 SITES[dng]= GITHUB/skia-mirror:dng_sdk:c8d0c9b:third_party/externals/dng_sdk
15 SITES[piex]= GITHUB/google:piex:256bd10:third_party/externals/piex
16 SITES[sfn]= GITHUB/googlefonts:sfntly:b55ff30:third_party/externals/sfntly
17 SITES[zlib]= GITHUB/skia-mirror:zlib:47af7c5:third_party/externals/zlib
18 DISTFILE[1]= generated:main
19 DISTFILE[2]= generated:sfn
20 DISTFILE[3]= generated:dng
21 DISTFILE[4]= generated:piex
22 DISTFILE[5]= generated:zlib
25 SPKGS[standard]= single
27 OPTIONS_AVAILABLE= none
28 OPTIONS_STANDARD= none
30 BUILD_DEPENDS= gn:single:standard
32 fontconfig:dev:standard
35 BUILDRUN_DEPENDS= WebP:single:standard
36 harfbuzz:primary:standard
39 USES= ninja jpeg png expat zlib freetype c++:single
41 LICENSE= BSD3CLAUSE:single
42 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
45 CONFIGURE_OUTSOURCE= yes
49 VAR_OPSYS[freebsd]= VAR1=skia_enable_fontmgr_empty=true
50 VAR_OPSYS[netbsd]= VAR1=skia_enable_fontmgr_empty=true
51 VAR_OPSYS[dragonfly]= VAR1=skia_enable_fontmgr_empty=true
52 VAR_OPSYS[midnightbsd]= VAR1=skia_enable_fontmgr_empty=true
55 ${MKDIR} ${CONFIGURE_WRKSRC}
56 (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
57 gn gen ${CONFIGURE_WRKSRC} --args="\
58 is_official_build=true \
59 is_component_build=true \
60 skia_use_system_libjpeg_turbo=true \
61 skia_use_system_libpng=true \
62 skia_use_system_libwebp=true \
63 skia_use_system_icu=true \
64 skia_use_system_expat=true \
65 skia_use_system_zlib=true \
66 skia_use_system_harfbuzz=true \
71 ${REINPLACE_CMD} -e 's|/usr/include/harfbuzz|${LOCALBASE}/include/harfbuzz|'\
72 ${WRKSRC}/third_party/harfbuzz/BUILD.gn
73 ${REINPLACE_CMD} -e 's|/usr/include/freetype2|${LOCALBASE}/include/freetype2|'\
74 ${WRKSRC}/third_party/freetype2/BUILD.gn
75 # Delete reference to gn function "set_sources_assignment_filter"
76 # https://gn.googlesource.com/gn/+/55e535a6716e57320fdd3901f0347a5c30562199
77 ${REINPLACE_CMD} -e '/set_sources_assignment_filter/d' \
82 ${MKDIR} ${STAGEDIR}${PREFIX}/lib
83 ${MKDIR} ${STAGEDIR}${PREFIX}/include/skia
84 ${INSTALL_LIB} ${BUILD_WRKSRC}/libskia.so \
85 ${STAGEDIR}${PREFIX}/lib/libskia.so.1.0
86 (cd ${STAGEDIR}${PREFIX}/lib && \
87 ${LN} -s libskia.so.1.0 libskia.so)
88 (cd ${WRKSRC} && ${COPYTREE_SHARE} \
89 include ${STAGEDIR}${PREFIX}/include/skia)
91 [FILE:265:descriptions/desc.single]
92 Skia is an open source 2D graphics library which provides common APIs that
93 work across a variety of hardware and software platforms. It serves as the
94 graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox
95 and Firefox OS, and many other products.
99 b4ca5402072063acc4ba7064dfbf10251b3ea28577997964563588c72ebf1dae 46411549 skia-src/google-skia-4b55ff0.tar.gz
100 471fdcebf662f3b731e602b41461aa7a6cdcda9d78d8ec5196edf08f504fe53f 39295928 skia-src/googlefonts-sfntly-b55ff30.tar.gz
101 a523111f2911a68efc3f1488dc60c8bd4d41746731ce28014ae273767a28311e 421656 skia-src/skia-mirror-dng_sdk-c8d0c9b.tar.gz
102 5250fd5e9b0273f1f5d374f2e3712647e077a40a63b93e2cb0b867c885ef1de1 36535 skia-src/google-piex-256bd10.tar.gz
103 d55c6e50ea609021d5dea5d26f0bad3625ad07c2ba122377fb304d30bc92013c 287368 skia-src/skia-mirror-zlib-47af7c5.tar.gz
106 [FILE:5604:manifests/plist.single]
107 include/skia/include/android/
108 SkAndroidFrameworkUtils.h
111 SkBitmapRegionDecoder.h
112 include/skia/include/atlastext/
115 SkAtlasTextRenderer.h
117 include/skia/include/c/
131 include/skia/include/codec/
136 include/skia/include/config/SkUserConfig.h
137 include/skia/include/core/
144 SkCanvasVirtualEnforcer.h
155 SkDeferredDisplayList.h
156 SkDeferredDisplayListRecorder.h
160 SkEncodedImageFormat.h
199 SkPromiseImageTexture.h
203 SkRasterHandleAllocator.h
215 SkSurfaceCharacterization.h
228 include/skia/include/docs/
231 include/skia/include/effects/
234 SkAlphaThresholdFilter.h
235 SkArithmeticImageFilter.h
239 SkColorFilterImageFilter.h
241 SkColorMatrixFilter.h
242 SkComposeImageFilter.h
245 SkDiscretePathEffect.h
246 SkDisplacementMapEffect.h
247 SkDropShadowImageFilter.h
249 SkHighContrastFilter.h
253 SkLightingImageFilter.h
255 SkMagnifierImageFilter.h
256 SkMatrixConvolutionImageFilter.h
258 SkMorphologyImageFilter.h
259 SkOffsetImageFilter.h
261 SkOverdrawColorFilter.h
263 SkPerlinNoiseShader.h
264 SkPictureImageFilter.h
271 SkXfermodeImageFilter.h
272 include/skia/include/encode/
277 include/skia/include/gpu/
278 GrBackendDrawableInfo.h
284 GrContextThreadSafeProxy.h
285 GrDriverBugWorkarounds.h
286 GrDriverBugWorkaroundsAutogen.h
288 include/skia/include/gpu/d3d/
290 GrD3DBackendContext.h
291 include/skia/include/gpu/dawn/GrDawnTypes.h
292 include/skia/include/gpu/gl/
293 GrGLAssembleHelpers.h
294 GrGLAssembleInterface.h
301 include/skia/include/gpu/mock/GrMockTypes.h
302 include/skia/include/gpu/mtl/GrMtlTypes.h
303 include/skia/include/gpu/vk/
306 GrVkMemoryAllocator.h
309 include/skia/include/pathops/SkPathOps.h
310 include/skia/include/ports/
312 SkFontConfigInterface.h
313 SkFontMgr_FontConfigInterface.h
315 SkFontMgr_directory.h
317 SkFontMgr_fontconfig.h
321 SkImageGeneratorWIC.h
325 include/skia/include/private/
366 SkThreadAnnotations.h
371 include/skia/include/svg/SkSVGCanvas.h
372 include/skia/include/third_party/skcms/
375 include/skia/include/third_party/vulkan/LICENSE
376 include/skia/include/third_party/vulkan/vulkan/
385 include/skia/include/utils/
391 SkFrontBufferedStream.h
398 SkPaintFilterCanvas.h
405 include/skia/include/utils/mac/SkCGUtils.h
408 libskia.so.%%SOVERSION%%
411 [FILE:1205:patches/patch-BUILD.gn]
412 --- BUILD.gn.orig 2020-03-19 21:10:56 UTC
414 @@ -984,6 +984,7 @@ component("skia") {
415 "src/ports/SkImageGenerator_skia.cpp",
416 "src/ports/SkMemory_malloc.cpp",
417 "src/ports/SkOSFile_stdio.cpp",
418 + "src/ports/SkDebug_stdio.cpp",
419 "src/sfnt/SkOTTable_name.cpp",
420 "src/sfnt/SkOTUtils.cpp",
422 @@ -1028,7 +1029,6 @@ component("skia") {
425 if (is_linux || target_cpu == "wasm") {
426 - sources += [ "src/ports/SkDebug_stdio.cpp" ]
430 @@ -1040,7 +1040,6 @@ component("skia") {
434 - "src/ports/SkDebug_stdio.cpp",
435 "src/ports/SkImageEncoder_CG.cpp",
436 "src/ports/SkImageGeneratorCG.cpp",
438 @@ -1054,7 +1053,6 @@ component("skia") {
442 - "src/ports/SkDebug_stdio.cpp",
443 "src/ports/SkFontHost_mac.cpp",
444 "src/ports/SkImageEncoder_CG.cpp",
445 "src/ports/SkImageGeneratorCG.cpp",
446 @@ -1071,9 +1069,6 @@ component("skia") {
451 - sources += [ "src/ports/SkDebug_stdio.cpp" ]
454 if (skia_enable_spirv_validation) {
455 deps += [ "//third_party/spirv-tools:spvtools_val" ]
458 [FILE:627:patches/patch-gn_BUILDCONFIG.gn]
459 is_clang script is python2 which has been removed from RP
461 --- gn/BUILDCONFIG.gn.orig 2020-03-19 21:10:56 UTC
462 +++ gn/BUILDCONFIG.gn
463 @@ -79,16 +79,7 @@ if (current_cpu == "") {
464 current_cpu = target_cpu
467 -is_clang = is_android || is_ios || is_mac || is_fuchsia ||
468 - (cc == "clang" && cxx == "clang++") || clang_win != ""
469 -if (!is_clang && !is_win) {
470 - is_clang = exec_script("//gn/is_clang.py",
483 [FILE:667:patches/patch-src_gpu_GrAutoLocaleSetter.h]
484 --- src/gpu/GrAutoLocaleSetter.h.orig 2020-03-19 21:10:56 UTC
485 +++ src/gpu/GrAutoLocaleSetter.h
486 @@ -49,7 +49,7 @@ public:
488 fShouldRestoreLocale = false;
491 +#elif HAVE_LOCALE_T && !defined __NetBSD__
493 // In xlocale nullptr means the C locale.
494 if (0 == strcmp(name, "C")) {
495 @@ -73,7 +73,7 @@ public:
496 setlocale(LC_ALL, fOldLocale.c_str());
498 _configthreadlocale(fOldPerThreadLocale);
500 +#elif HAVE_LOCALE_T && !defined __NetBSD__
502 uselocale(fOldLocale);
506 [FILE:531:patches/patch-third__party_externals_dng__sdk_source_RawEnvironment.h]
507 --- third_party/externals/dng_sdk/source/RawEnvironment.h.orig 2019-03-13 04:56:20 UTC
508 +++ third_party/externals/dng_sdk/source/RawEnvironment.h
510 // compilation. The constants qMacOS and qWinOS must be defined on all
511 // platforms. Other constants, such as qLinux, only need to be defined if we're
512 // actually compiling for that platform.
513 -#if defined(__linux__)
514 +#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
520 [FILE:1461:patches/patch-third__party_externals_dng__sdk_source_dng__safe__arithmetic.h]
521 --- third_party/externals/dng_sdk/source/dng_safe_arithmetic.h.orig 2019-03-13 04:56:20 UTC
522 +++ third_party/externals/dng_sdk/source/dng_safe_arithmetic.h
523 @@ -109,20 +109,6 @@ std::int64_t SafeInt64MultSlow(std::int6
525 // Internal function used as optimization for SafeInt64Mult() if Clang
526 // __builtin_smull_overflow is supported. Don't call this function directly.
527 -#if __has_builtin(__builtin_smull_overflow)
528 -inline std::int64_t SafeInt64MultByClang(std::int64_t arg1, std::int64_t arg2) {
529 - std::int64_t result;
530 -#if (__WORDSIZE == 64) && !defined(__APPLE__)
531 - if (__builtin_smull_overflow(arg1, arg2, &result)) {
533 - if (__builtin_smulll_overflow(arg1, arg2, &result)) {
535 - ThrowProgramError("Arithmetic overflow");
536 - abort(); // Never reached.
542 // Internal function used as optimization for SafeInt64Mult() if __int128 type
543 // is supported. Don't call this function directly.
544 @@ -147,9 +133,7 @@ inline std::int64_t SafeInt64MultByInt12
545 // (without overflow). Otherwise, throws a dng_exception with error code
546 // dng_error_unknown.
547 inline std::int64_t SafeInt64Mult(std::int64_t arg1, std::int64_t arg2) {
548 -#if __has_builtin(__builtin_smull_overflow)
549 - return dng_internal::SafeInt64MultByClang(arg1, arg2);
550 -#elif defined(DNG_HAS_INT128)
551 +#if defined(DNG_HAS_INT128)
552 return dng_internal::SafeInt64MultByInt128(arg1, arg2);
554 return dng_internal::SafeInt64MultSlow(arg1, arg2);
557 [FILE:312:files/special.mk]
558 _USES_extract+= 501:make_extdir
560 .if "${OPSYS}" != "Linux"
561 _USES_configure+= 452:remove_libdl
565 ${MKDIR} ${WRKSRC}/third_party/externals
568 @echo "BSD: Remove -ldl linkage"
569 ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
570 ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn