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
34 BUILDRUN_DEPENDS= WebP:single:standard
35 harfbuzz:primary:standard
38 USES= ninja jpeg png expat zlib freetype c++:single
40 LICENSE= BSD3CLAUSE:single
41 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
44 CONFIGURE_OUTSOURCE= yes
48 VAR_OPSYS[freebsd]= VAR1=skia_enable_fontmgr_empty=true
49 VAR_OPSYS[netbsd]= VAR1=skia_enable_fontmgr_empty=true
50 VAR_OPSYS[dragonfly]= VAR1=skia_enable_fontmgr_empty=true
53 ${MKDIR} ${CONFIGURE_WRKSRC}
54 (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
55 gn gen ${CONFIGURE_WRKSRC} --args="\
56 is_official_build=true \
57 is_component_build=true \
58 skia_use_system_libjpeg_turbo=true \
59 skia_use_system_libpng=true \
60 skia_use_system_libwebp=true \
61 skia_use_system_icu=true \
62 skia_use_system_expat=true \
63 skia_use_system_zlib=true \
64 skia_use_system_harfbuzz=true \
69 ${REINPLACE_CMD} -e 's|/usr/include/harfbuzz|${LOCALBASE}/include/harfbuzz|'\
70 ${WRKSRC}/third_party/harfbuzz/BUILD.gn
71 ${REINPLACE_CMD} -e 's|/usr/include/freetype2|${LOCALBASE}/include/freetype2|'\
72 ${WRKSRC}/third_party/freetype2/BUILD.gn
73 # Delete reference to gn function "set_sources_assignment_filter"
74 # https://gn.googlesource.com/gn/+/55e535a6716e57320fdd3901f0347a5c30562199
75 ${REINPLACE_CMD} -e '/set_sources_assignment_filter/d' \
80 ${MKDIR} ${STAGEDIR}${PREFIX}/lib
81 ${MKDIR} ${STAGEDIR}${PREFIX}/include/skia
82 ${INSTALL_LIB} ${BUILD_WRKSRC}/libskia.so \
83 ${STAGEDIR}${PREFIX}/lib/libskia.so.1.0
84 (cd ${STAGEDIR}${PREFIX}/lib && \
85 ${LN} -s libskia.so.1.0 libskia.so)
86 (cd ${WRKSRC} && ${COPYTREE_SHARE} \
87 include ${STAGEDIR}${PREFIX}/include/skia)
89 [FILE:265:descriptions/desc.single]
90 Skia is an open source 2D graphics library which provides common APIs that
91 work across a variety of hardware and software platforms. It serves as the
92 graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox
93 and Firefox OS, and many other products.
97 b4ca5402072063acc4ba7064dfbf10251b3ea28577997964563588c72ebf1dae 46411549 skia-src/google-skia-4b55ff0.tar.gz
98 471fdcebf662f3b731e602b41461aa7a6cdcda9d78d8ec5196edf08f504fe53f 39295928 skia-src/googlefonts-sfntly-b55ff30.tar.gz
99 a523111f2911a68efc3f1488dc60c8bd4d41746731ce28014ae273767a28311e 421656 skia-src/skia-mirror-dng_sdk-c8d0c9b.tar.gz
100 5250fd5e9b0273f1f5d374f2e3712647e077a40a63b93e2cb0b867c885ef1de1 36535 skia-src/google-piex-256bd10.tar.gz
101 d55c6e50ea609021d5dea5d26f0bad3625ad07c2ba122377fb304d30bc92013c 287368 skia-src/skia-mirror-zlib-47af7c5.tar.gz
104 [FILE:5604:manifests/plist.single]
105 include/skia/include/android/
106 SkAndroidFrameworkUtils.h
109 SkBitmapRegionDecoder.h
110 include/skia/include/atlastext/
113 SkAtlasTextRenderer.h
115 include/skia/include/c/
129 include/skia/include/codec/
134 include/skia/include/config/SkUserConfig.h
135 include/skia/include/core/
142 SkCanvasVirtualEnforcer.h
153 SkDeferredDisplayList.h
154 SkDeferredDisplayListRecorder.h
158 SkEncodedImageFormat.h
197 SkPromiseImageTexture.h
201 SkRasterHandleAllocator.h
213 SkSurfaceCharacterization.h
226 include/skia/include/docs/
229 include/skia/include/effects/
232 SkAlphaThresholdFilter.h
233 SkArithmeticImageFilter.h
237 SkColorFilterImageFilter.h
239 SkColorMatrixFilter.h
240 SkComposeImageFilter.h
243 SkDiscretePathEffect.h
244 SkDisplacementMapEffect.h
245 SkDropShadowImageFilter.h
247 SkHighContrastFilter.h
251 SkLightingImageFilter.h
253 SkMagnifierImageFilter.h
254 SkMatrixConvolutionImageFilter.h
256 SkMorphologyImageFilter.h
257 SkOffsetImageFilter.h
259 SkOverdrawColorFilter.h
261 SkPerlinNoiseShader.h
262 SkPictureImageFilter.h
269 SkXfermodeImageFilter.h
270 include/skia/include/encode/
275 include/skia/include/gpu/
276 GrBackendDrawableInfo.h
282 GrContextThreadSafeProxy.h
283 GrDriverBugWorkarounds.h
284 GrDriverBugWorkaroundsAutogen.h
286 include/skia/include/gpu/d3d/
288 GrD3DBackendContext.h
289 include/skia/include/gpu/dawn/GrDawnTypes.h
290 include/skia/include/gpu/gl/
291 GrGLAssembleHelpers.h
292 GrGLAssembleInterface.h
299 include/skia/include/gpu/mock/GrMockTypes.h
300 include/skia/include/gpu/mtl/GrMtlTypes.h
301 include/skia/include/gpu/vk/
304 GrVkMemoryAllocator.h
307 include/skia/include/pathops/SkPathOps.h
308 include/skia/include/ports/
310 SkFontConfigInterface.h
311 SkFontMgr_FontConfigInterface.h
313 SkFontMgr_directory.h
315 SkFontMgr_fontconfig.h
319 SkImageGeneratorWIC.h
323 include/skia/include/private/
364 SkThreadAnnotations.h
369 include/skia/include/svg/SkSVGCanvas.h
370 include/skia/include/third_party/skcms/
373 include/skia/include/third_party/vulkan/LICENSE
374 include/skia/include/third_party/vulkan/vulkan/
383 include/skia/include/utils/
389 SkFrontBufferedStream.h
396 SkPaintFilterCanvas.h
403 include/skia/include/utils/mac/SkCGUtils.h
406 libskia.so.%%SOVERSION%%
409 [FILE:1205:patches/patch-BUILD.gn]
410 --- BUILD.gn.orig 2020-03-19 21:10:56 UTC
412 @@ -984,6 +984,7 @@ component("skia") {
413 "src/ports/SkImageGenerator_skia.cpp",
414 "src/ports/SkMemory_malloc.cpp",
415 "src/ports/SkOSFile_stdio.cpp",
416 + "src/ports/SkDebug_stdio.cpp",
417 "src/sfnt/SkOTTable_name.cpp",
418 "src/sfnt/SkOTUtils.cpp",
420 @@ -1028,7 +1029,6 @@ component("skia") {
423 if (is_linux || target_cpu == "wasm") {
424 - sources += [ "src/ports/SkDebug_stdio.cpp" ]
428 @@ -1040,7 +1040,6 @@ component("skia") {
432 - "src/ports/SkDebug_stdio.cpp",
433 "src/ports/SkImageEncoder_CG.cpp",
434 "src/ports/SkImageGeneratorCG.cpp",
436 @@ -1054,7 +1053,6 @@ component("skia") {
440 - "src/ports/SkDebug_stdio.cpp",
441 "src/ports/SkFontHost_mac.cpp",
442 "src/ports/SkImageEncoder_CG.cpp",
443 "src/ports/SkImageGeneratorCG.cpp",
444 @@ -1071,9 +1069,6 @@ component("skia") {
449 - sources += [ "src/ports/SkDebug_stdio.cpp" ]
452 if (skia_enable_spirv_validation) {
453 deps += [ "//third_party/spirv-tools:spvtools_val" ]
456 [FILE:627:patches/patch-gn_BUILDCONFIG.gn]
457 is_clang script is python2 which has been removed from RP
459 --- gn/BUILDCONFIG.gn.orig 2020-03-19 21:10:56 UTC
460 +++ gn/BUILDCONFIG.gn
461 @@ -79,16 +79,7 @@ if (current_cpu == "") {
462 current_cpu = target_cpu
465 -is_clang = is_android || is_ios || is_mac || is_fuchsia ||
466 - (cc == "clang" && cxx == "clang++") || clang_win != ""
467 -if (!is_clang && !is_win) {
468 - is_clang = exec_script("//gn/is_clang.py",
481 [FILE:667:patches/patch-src_gpu_GrAutoLocaleSetter.h]
482 --- src/gpu/GrAutoLocaleSetter.h.orig 2020-03-19 21:10:56 UTC
483 +++ src/gpu/GrAutoLocaleSetter.h
484 @@ -49,7 +49,7 @@ public:
486 fShouldRestoreLocale = false;
489 +#elif HAVE_LOCALE_T && !defined __NetBSD__
491 // In xlocale nullptr means the C locale.
492 if (0 == strcmp(name, "C")) {
493 @@ -73,7 +73,7 @@ public:
494 setlocale(LC_ALL, fOldLocale.c_str());
496 _configthreadlocale(fOldPerThreadLocale);
498 +#elif HAVE_LOCALE_T && !defined __NetBSD__
500 uselocale(fOldLocale);
504 [FILE:531:patches/patch-third__party_externals_dng__sdk_source_RawEnvironment.h]
505 --- third_party/externals/dng_sdk/source/RawEnvironment.h.orig 2019-03-13 04:56:20 UTC
506 +++ third_party/externals/dng_sdk/source/RawEnvironment.h
508 // compilation. The constants qMacOS and qWinOS must be defined on all
509 // platforms. Other constants, such as qLinux, only need to be defined if we're
510 // actually compiling for that platform.
511 -#if defined(__linux__)
512 +#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
518 [FILE:1461:patches/patch-third__party_externals_dng__sdk_source_dng__safe__arithmetic.h]
519 --- third_party/externals/dng_sdk/source/dng_safe_arithmetic.h.orig 2019-03-13 04:56:20 UTC
520 +++ third_party/externals/dng_sdk/source/dng_safe_arithmetic.h
521 @@ -109,20 +109,6 @@ std::int64_t SafeInt64MultSlow(std::int6
523 // Internal function used as optimization for SafeInt64Mult() if Clang
524 // __builtin_smull_overflow is supported. Don't call this function directly.
525 -#if __has_builtin(__builtin_smull_overflow)
526 -inline std::int64_t SafeInt64MultByClang(std::int64_t arg1, std::int64_t arg2) {
527 - std::int64_t result;
528 -#if (__WORDSIZE == 64) && !defined(__APPLE__)
529 - if (__builtin_smull_overflow(arg1, arg2, &result)) {
531 - if (__builtin_smulll_overflow(arg1, arg2, &result)) {
533 - ThrowProgramError("Arithmetic overflow");
534 - abort(); // Never reached.
540 // Internal function used as optimization for SafeInt64Mult() if __int128 type
541 // is supported. Don't call this function directly.
542 @@ -147,9 +133,7 @@ inline std::int64_t SafeInt64MultByInt12
543 // (without overflow). Otherwise, throws a dng_exception with error code
544 // dng_error_unknown.
545 inline std::int64_t SafeInt64Mult(std::int64_t arg1, std::int64_t arg2) {
546 -#if __has_builtin(__builtin_smull_overflow)
547 - return dng_internal::SafeInt64MultByClang(arg1, arg2);
548 -#elif defined(DNG_HAS_INT128)
549 +#if defined(DNG_HAS_INT128)
550 return dng_internal::SafeInt64MultByInt128(arg1, arg2);
552 return dng_internal::SafeInt64MultSlow(arg1, arg2);
555 [FILE:312:files/special.mk]
556 _USES_extract+= 501:make_extdir
558 .if "${OPSYS}" != "Linux"
559 _USES_configure+= 452:remove_libdl
563 ${MKDIR} ${WRKSRC}/third_party/externals
566 @echo "BSD: Remove -ldl linkage"
567 ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
568 ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn