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 BUILDRUN_DEPENDS= WebP:single:standard
33 harfbuzz:primary:standard
35 freetype:primary:standard
37 USES= ninja jpeg png expat zlib c++:single
39 LICENSE= BSD3CLAUSE:single
40 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
43 CONFIGURE_OUTSOURCE= yes
47 VAR_OPSYS[freebsd]= VAR1=skia_enable_fontmgr_empty=true
48 VAR_OPSYS[netbsd]= VAR1=skia_enable_fontmgr_empty=true
49 VAR_OPSYS[dragonfly]= VAR1=skia_enable_fontmgr_empty=true
52 ${MKDIR} ${CONFIGURE_WRKSRC}
53 (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
54 gn gen ${CONFIGURE_WRKSRC} --args="\
55 is_official_build=true \
56 is_component_build=true \
57 skia_use_system_libjpeg_turbo=true \
58 skia_use_system_libpng=true \
59 skia_use_system_libwebp=true \
60 skia_use_system_icu=true \
61 skia_use_system_expat=true \
62 skia_use_system_zlib=true \
63 skia_use_system_harfbuzz=true \
68 ${REINPLACE_CMD} -e 's|/usr/include/harfbuzz|${LOCALBASE}/include/harfbuzz|'\
69 ${WRKSRC}/third_party/harfbuzz/BUILD.gn
70 ${REINPLACE_CMD} -e 's|/usr/include/freetype2|${LOCALBASE}/include/freetype2|'\
71 ${WRKSRC}/third_party/freetype2/BUILD.gn
72 # Delete reference to gn function "set_sources_assignment_filter"
73 # https://gn.googlesource.com/gn/+/55e535a6716e57320fdd3901f0347a5c30562199
74 ${REINPLACE_CMD} -e '/set_sources_assignment_filter/d' \
79 ${MKDIR} ${STAGEDIR}${PREFIX}/lib
80 ${MKDIR} ${STAGEDIR}${PREFIX}/include/skia
81 ${INSTALL_LIB} ${BUILD_WRKSRC}/libskia.so \
82 ${STAGEDIR}${PREFIX}/lib/libskia.so.1.0
83 (cd ${STAGEDIR}${PREFIX}/lib && \
84 ${LN} -s libskia.so.1.0 libskia.so)
85 (cd ${WRKSRC} && ${COPYTREE_SHARE} \
86 include ${STAGEDIR}${PREFIX}/include/skia)
88 [FILE:265:descriptions/desc.single]
89 Skia is an open source 2D graphics library which provides common APIs that
90 work across a variety of hardware and software platforms. It serves as the
91 graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox
92 and Firefox OS, and many other products.
96 b4ca5402072063acc4ba7064dfbf10251b3ea28577997964563588c72ebf1dae 46411549 skia-src/google-skia-4b55ff0.tar.gz
97 471fdcebf662f3b731e602b41461aa7a6cdcda9d78d8ec5196edf08f504fe53f 39295928 skia-src/googlefonts-sfntly-b55ff30.tar.gz
98 a523111f2911a68efc3f1488dc60c8bd4d41746731ce28014ae273767a28311e 421656 skia-src/skia-mirror-dng_sdk-c8d0c9b.tar.gz
99 5250fd5e9b0273f1f5d374f2e3712647e077a40a63b93e2cb0b867c885ef1de1 36535 skia-src/google-piex-256bd10.tar.gz
100 d55c6e50ea609021d5dea5d26f0bad3625ad07c2ba122377fb304d30bc92013c 287368 skia-src/skia-mirror-zlib-47af7c5.tar.gz
103 [FILE:5604:manifests/plist.single]
104 include/skia/include/android/
105 SkAndroidFrameworkUtils.h
108 SkBitmapRegionDecoder.h
109 include/skia/include/atlastext/
112 SkAtlasTextRenderer.h
114 include/skia/include/c/
128 include/skia/include/codec/
133 include/skia/include/config/SkUserConfig.h
134 include/skia/include/core/
141 SkCanvasVirtualEnforcer.h
152 SkDeferredDisplayList.h
153 SkDeferredDisplayListRecorder.h
157 SkEncodedImageFormat.h
196 SkPromiseImageTexture.h
200 SkRasterHandleAllocator.h
212 SkSurfaceCharacterization.h
225 include/skia/include/docs/
228 include/skia/include/effects/
231 SkAlphaThresholdFilter.h
232 SkArithmeticImageFilter.h
236 SkColorFilterImageFilter.h
238 SkColorMatrixFilter.h
239 SkComposeImageFilter.h
242 SkDiscretePathEffect.h
243 SkDisplacementMapEffect.h
244 SkDropShadowImageFilter.h
246 SkHighContrastFilter.h
250 SkLightingImageFilter.h
252 SkMagnifierImageFilter.h
253 SkMatrixConvolutionImageFilter.h
255 SkMorphologyImageFilter.h
256 SkOffsetImageFilter.h
258 SkOverdrawColorFilter.h
260 SkPerlinNoiseShader.h
261 SkPictureImageFilter.h
268 SkXfermodeImageFilter.h
269 include/skia/include/encode/
274 include/skia/include/gpu/
275 GrBackendDrawableInfo.h
281 GrContextThreadSafeProxy.h
282 GrDriverBugWorkarounds.h
283 GrDriverBugWorkaroundsAutogen.h
285 include/skia/include/gpu/d3d/
287 GrD3DBackendContext.h
288 include/skia/include/gpu/dawn/GrDawnTypes.h
289 include/skia/include/gpu/gl/
290 GrGLAssembleHelpers.h
291 GrGLAssembleInterface.h
298 include/skia/include/gpu/mock/GrMockTypes.h
299 include/skia/include/gpu/mtl/GrMtlTypes.h
300 include/skia/include/gpu/vk/
303 GrVkMemoryAllocator.h
306 include/skia/include/pathops/SkPathOps.h
307 include/skia/include/ports/
309 SkFontConfigInterface.h
310 SkFontMgr_FontConfigInterface.h
312 SkFontMgr_directory.h
314 SkFontMgr_fontconfig.h
318 SkImageGeneratorWIC.h
322 include/skia/include/private/
363 SkThreadAnnotations.h
368 include/skia/include/svg/SkSVGCanvas.h
369 include/skia/include/third_party/skcms/
372 include/skia/include/third_party/vulkan/LICENSE
373 include/skia/include/third_party/vulkan/vulkan/
382 include/skia/include/utils/
388 SkFrontBufferedStream.h
395 SkPaintFilterCanvas.h
402 include/skia/include/utils/mac/SkCGUtils.h
405 libskia.so.%%SOVERSION%%
408 [FILE:1205:patches/patch-BUILD.gn]
409 --- BUILD.gn.orig 2020-03-19 21:10:56 UTC
411 @@ -984,6 +984,7 @@ component("skia") {
412 "src/ports/SkImageGenerator_skia.cpp",
413 "src/ports/SkMemory_malloc.cpp",
414 "src/ports/SkOSFile_stdio.cpp",
415 + "src/ports/SkDebug_stdio.cpp",
416 "src/sfnt/SkOTTable_name.cpp",
417 "src/sfnt/SkOTUtils.cpp",
419 @@ -1028,7 +1029,6 @@ component("skia") {
422 if (is_linux || target_cpu == "wasm") {
423 - sources += [ "src/ports/SkDebug_stdio.cpp" ]
427 @@ -1040,7 +1040,6 @@ component("skia") {
431 - "src/ports/SkDebug_stdio.cpp",
432 "src/ports/SkImageEncoder_CG.cpp",
433 "src/ports/SkImageGeneratorCG.cpp",
435 @@ -1054,7 +1053,6 @@ component("skia") {
439 - "src/ports/SkDebug_stdio.cpp",
440 "src/ports/SkFontHost_mac.cpp",
441 "src/ports/SkImageEncoder_CG.cpp",
442 "src/ports/SkImageGeneratorCG.cpp",
443 @@ -1071,9 +1069,6 @@ component("skia") {
448 - sources += [ "src/ports/SkDebug_stdio.cpp" ]
451 if (skia_enable_spirv_validation) {
452 deps += [ "//third_party/spirv-tools:spvtools_val" ]
455 [FILE:627:patches/patch-gn_BUILDCONFIG.gn]
456 is_clang script is python2 which has been removed from RP
458 --- gn/BUILDCONFIG.gn.orig 2020-03-19 21:10:56 UTC
459 +++ gn/BUILDCONFIG.gn
460 @@ -79,16 +79,7 @@ if (current_cpu == "") {
461 current_cpu = target_cpu
464 -is_clang = is_android || is_ios || is_mac || is_fuchsia ||
465 - (cc == "clang" && cxx == "clang++") || clang_win != ""
466 -if (!is_clang && !is_win) {
467 - is_clang = exec_script("//gn/is_clang.py",
480 [FILE:667:patches/patch-src_gpu_GrAutoLocaleSetter.h]
481 --- src/gpu/GrAutoLocaleSetter.h.orig 2020-03-19 21:10:56 UTC
482 +++ src/gpu/GrAutoLocaleSetter.h
483 @@ -49,7 +49,7 @@ public:
485 fShouldRestoreLocale = false;
488 +#elif HAVE_LOCALE_T && !defined __NetBSD__
490 // In xlocale nullptr means the C locale.
491 if (0 == strcmp(name, "C")) {
492 @@ -73,7 +73,7 @@ public:
493 setlocale(LC_ALL, fOldLocale.c_str());
495 _configthreadlocale(fOldPerThreadLocale);
497 +#elif HAVE_LOCALE_T && !defined __NetBSD__
499 uselocale(fOldLocale);
503 [FILE:531:patches/patch-third__party_externals_dng__sdk_source_RawEnvironment.h]
504 --- third_party/externals/dng_sdk/source/RawEnvironment.h.orig 2019-03-13 04:56:20 UTC
505 +++ third_party/externals/dng_sdk/source/RawEnvironment.h
507 // compilation. The constants qMacOS and qWinOS must be defined on all
508 // platforms. Other constants, such as qLinux, only need to be defined if we're
509 // actually compiling for that platform.
510 -#if defined(__linux__)
511 +#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
517 [FILE:1461:patches/patch-third__party_externals_dng__sdk_source_dng__safe__arithmetic.h]
518 --- third_party/externals/dng_sdk/source/dng_safe_arithmetic.h.orig 2019-03-13 04:56:20 UTC
519 +++ third_party/externals/dng_sdk/source/dng_safe_arithmetic.h
520 @@ -109,20 +109,6 @@ std::int64_t SafeInt64MultSlow(std::int6
522 // Internal function used as optimization for SafeInt64Mult() if Clang
523 // __builtin_smull_overflow is supported. Don't call this function directly.
524 -#if __has_builtin(__builtin_smull_overflow)
525 -inline std::int64_t SafeInt64MultByClang(std::int64_t arg1, std::int64_t arg2) {
526 - std::int64_t result;
527 -#if (__WORDSIZE == 64) && !defined(__APPLE__)
528 - if (__builtin_smull_overflow(arg1, arg2, &result)) {
530 - if (__builtin_smulll_overflow(arg1, arg2, &result)) {
532 - ThrowProgramError("Arithmetic overflow");
533 - abort(); // Never reached.
539 // Internal function used as optimization for SafeInt64Mult() if __int128 type
540 // is supported. Don't call this function directly.
541 @@ -147,9 +133,7 @@ inline std::int64_t SafeInt64MultByInt12
542 // (without overflow). Otherwise, throws a dng_exception with error code
543 // dng_error_unknown.
544 inline std::int64_t SafeInt64Mult(std::int64_t arg1, std::int64_t arg2) {
545 -#if __has_builtin(__builtin_smull_overflow)
546 - return dng_internal::SafeInt64MultByClang(arg1, arg2);
547 -#elif defined(DNG_HAS_INT128)
548 +#if defined(DNG_HAS_INT128)
549 return dng_internal::SafeInt64MultByInt128(arg1, arg2);
551 return dng_internal::SafeInt64MultSlow(arg1, arg2);
554 [FILE:312:files/special.mk]
555 _USES_extract+= 501:make_extdir
557 .if "${OPSYS}" != "Linux"
558 _USES_configure+= 452:remove_libdl
562 ${MKDIR} ${WRKSRC}/third_party/externals
565 @echo "BSD: Remove -ldl linkage"
566 ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
567 ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn