Ravenports generated: 24 Mar 2023 18:36
[ravenports.git] / bucket_90 / skia
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               skia
4 VERSION=                2020-03-19
5 REVISION=               3
6 KEYWORDS=               graphics
7 VARIANTS=               standard
8 SDESC[standard]=        Open-source 2D graphics library
9 HOMEPAGE=               https://skia.org
10 CONTACT=                nobody
11
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
23 DIST_SUBDIR=            skia-src
24 DF_INDEX=               1 2 3 4 5
25 SPKGS[standard]=        single
26
27 OPTIONS_AVAILABLE=      none
28 OPTIONS_STANDARD=       none
29
30 BUILD_DEPENDS=          gn:single:standard
31                         harfbuzz:dev:standard
32                         fontconfig:dev:standard
33                         xorg-x11:dev:standard
34 BUILDRUN_DEPENDS=       WebP:single:standard
35                         harfbuzz:primary:standard
36                         harfbuzz:icu:standard
37
38 USES=                   ninja jpeg png expat zlib freetype c++:single
39
40 LICENSE=                BSD3CLAUSE:single
41 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/LICENSE
42 LICENSE_SCHEME=         solo
43
44 CONFIGURE_OUTSOURCE=    yes
45
46 SOVERSION=              1.0
47
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
51
52 do-configure:
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 \
65                 ${VAR1} \
66                 ")
67
68 pre-configure:
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' \
76                 -e '/visibility/d' \
77                 ${WRKSRC}/BUILD.gn
78
79 do-install:
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)
88
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.
94
95
96 [FILE:590:distinfo]
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
102
103
104 [FILE:5604:manifests/plist.single]
105 include/skia/include/android/
106  SkAndroidFrameworkUtils.h
107  SkAnimatedImage.h
108  SkBRDAllocator.h
109  SkBitmapRegionDecoder.h
110 include/skia/include/atlastext/
111  SkAtlasTextContext.h
112  SkAtlasTextFont.h
113  SkAtlasTextRenderer.h
114  SkAtlasTextTarget.h
115 include/skia/include/c/
116  sk_canvas.h
117  sk_colorspace.h
118  sk_data.h
119  sk_image.h
120  sk_imageinfo.h
121  sk_maskfilter.h
122  sk_matrix.h
123  sk_paint.h
124  sk_path.h
125  sk_picture.h
126  sk_shader.h
127  sk_surface.h
128  sk_types.h
129 include/skia/include/codec/
130  SkAndroidCodec.h
131  SkCodec.h
132  SkCodecAnimation.h
133  SkEncodedOrigin.h
134 include/skia/include/config/SkUserConfig.h
135 include/skia/include/core/
136  SkAnnotation.h
137  SkBBHFactory.h
138  SkBitmap.h
139  SkBlendMode.h
140  SkBlurTypes.h
141  SkCanvas.h
142  SkCanvasVirtualEnforcer.h
143  SkClipOp.h
144  SkColor.h
145  SkColorFilter.h
146  SkColorPriv.h
147  SkColorSpace.h
148  SkContourMeasure.h
149  SkCoverageMode.h
150  SkCubicMap.h
151  SkData.h
152  SkDataTable.h
153  SkDeferredDisplayList.h
154  SkDeferredDisplayListRecorder.h
155  SkDocument.h
156  SkDrawLooper.h
157  SkDrawable.h
158  SkEncodedImageFormat.h
159  SkExecutor.h
160  SkFilterQuality.h
161  SkFlattenable.h
162  SkFont.h
163  SkFontArguments.h
164  SkFontLCDConfig.h
165  SkFontMetrics.h
166  SkFontMgr.h
167  SkFontParameters.h
168  SkFontStyle.h
169  SkFontTypes.h
170  SkGraphics.h
171  SkICC.h
172  SkImage.h
173  SkImageEncoder.h
174  SkImageFilter.h
175  SkImageGenerator.h
176  SkImageInfo.h
177  SkM44.h
178  SkMallocPixelRef.h
179  SkMaskFilter.h
180  SkMath.h
181  SkMatrix.h
182  SkMatrix44.h
183  SkMilestone.h
184  SkOverdrawCanvas.h
185  SkPaint.h
186  SkPath.h
187  SkPathEffect.h
188  SkPathMeasure.h
189  SkPathTypes.h
190  SkPicture.h
191  SkPictureRecorder.h
192  SkPixelRef.h
193  SkPixmap.h
194  SkPngChunkReader.h
195  SkPoint.h
196  SkPoint3.h
197  SkPromiseImageTexture.h
198  SkRRect.h
199  SkRSXform.h
200  SkRWBuffer.h
201  SkRasterHandleAllocator.h
202  SkRect.h
203  SkRefCnt.h
204  SkRegion.h
205  SkScalar.h
206  SkSerialProcs.h
207  SkShader.h
208  SkSize.h
209  SkStream.h
210  SkString.h
211  SkStrokeRec.h
212  SkSurface.h
213  SkSurfaceCharacterization.h
214  SkSurfaceProps.h
215  SkSwizzle.h
216  SkTextBlob.h
217  SkTileMode.h
218  SkTime.h
219  SkTraceMemoryDump.h
220  SkTypeface.h
221  SkTypes.h
222  SkUnPreMultiply.h
223  SkVertices.h
224  SkYUVAIndex.h
225  SkYUVASizeInfo.h
226 include/skia/include/docs/
227  SkPDFDocument.h
228  SkXPSDocument.h
229 include/skia/include/effects/
230  Sk1DPathEffect.h
231  Sk2DPathEffect.h
232  SkAlphaThresholdFilter.h
233  SkArithmeticImageFilter.h
234  SkBlurDrawLooper.h
235  SkBlurImageFilter.h
236  SkBlurMaskFilter.h
237  SkColorFilterImageFilter.h
238  SkColorMatrix.h
239  SkColorMatrixFilter.h
240  SkComposeImageFilter.h
241  SkCornerPathEffect.h
242  SkDashPathEffect.h
243  SkDiscretePathEffect.h
244  SkDisplacementMapEffect.h
245  SkDropShadowImageFilter.h
246  SkGradientShader.h
247  SkHighContrastFilter.h
248  SkImageFilters.h
249  SkImageSource.h
250  SkLayerDrawLooper.h
251  SkLightingImageFilter.h
252  SkLumaColorFilter.h
253  SkMagnifierImageFilter.h
254  SkMatrixConvolutionImageFilter.h
255  SkMergeImageFilter.h
256  SkMorphologyImageFilter.h
257  SkOffsetImageFilter.h
258  SkOpPathEffect.h
259  SkOverdrawColorFilter.h
260  SkPaintImageFilter.h
261  SkPerlinNoiseShader.h
262  SkPictureImageFilter.h
263  SkRuntimeEffect.h
264  SkShaderMaskFilter.h
265  SkTableColorFilter.h
266  SkTableMaskFilter.h
267  SkTileImageFilter.h
268  SkTrimPathEffect.h
269  SkXfermodeImageFilter.h
270 include/skia/include/encode/
271  SkEncoder.h
272  SkJpegEncoder.h
273  SkPngEncoder.h
274  SkWebpEncoder.h
275 include/skia/include/gpu/
276  GrBackendDrawableInfo.h
277  GrBackendSemaphore.h
278  GrBackendSurface.h
279  GrConfig.h
280  GrContext.h
281  GrContextOptions.h
282  GrContextThreadSafeProxy.h
283  GrDriverBugWorkarounds.h
284  GrDriverBugWorkaroundsAutogen.h
285  GrTypes.h
286 include/skia/include/gpu/d3d/
287  GrD3D12.h
288  GrD3DBackendContext.h
289 include/skia/include/gpu/dawn/GrDawnTypes.h
290 include/skia/include/gpu/gl/
291  GrGLAssembleHelpers.h
292  GrGLAssembleInterface.h
293  GrGLConfig.h
294  GrGLConfig_chrome.h
295  GrGLExtensions.h
296  GrGLFunctions.h
297  GrGLInterface.h
298  GrGLTypes.h
299 include/skia/include/gpu/mock/GrMockTypes.h
300 include/skia/include/gpu/mtl/GrMtlTypes.h
301 include/skia/include/gpu/vk/
302  GrVkBackendContext.h
303  GrVkExtensions.h
304  GrVkMemoryAllocator.h
305  GrVkTypes.h
306  GrVkVulkan.h
307 include/skia/include/pathops/SkPathOps.h
308 include/skia/include/ports/
309  SkCFObject.h
310  SkFontConfigInterface.h
311  SkFontMgr_FontConfigInterface.h
312  SkFontMgr_android.h
313  SkFontMgr_directory.h
314  SkFontMgr_empty.h
315  SkFontMgr_fontconfig.h
316  SkFontMgr_fuchsia.h
317  SkFontMgr_indirect.h
318  SkImageGeneratorCG.h
319  SkImageGeneratorWIC.h
320  SkRemotableFontMgr.h
321  SkTypeface_mac.h
322  SkTypeface_win.h
323 include/skia/include/private/
324  GrContext_Base.h
325  GrGLTypesPriv.h
326  GrImageContext.h
327  GrRecordingContext.h
328  GrResourceKey.h
329  GrSharedEnums.h
330  GrSingleOwner.h
331  GrTypesPriv.h
332  GrVkTypesPriv.h
333  SkBitmaskEnum.h
334  SkChecksum.h
335  SkColorData.h
336  SkDeque.h
337  SkEncodedInfo.h
338  SkFixed.h
339  SkFloatBits.h
340  SkFloatingPoint.h
341  SkHalf.h
342  SkIDChangeListener.h
343  SkImageInfoPriv.h
344  SkMacros.h
345  SkMalloc.h
346  SkMutex.h
347  SkNoncopyable.h
348  SkNx.h
349  SkNx_neon.h
350  SkNx_sse.h
351  SkOnce.h
352  SkPathRef.h
353  SkSafe32.h
354  SkSafe_math.h
355  SkSemaphore.h
356  SkShadowFlags.h
357  SkSpinlock.h
358  SkTArray.h
359  SkTDArray.h
360  SkTFitsIn.h
361  SkTHash.h
362  SkTLogic.h
363  SkTemplates.h
364  SkThreadAnnotations.h
365  SkThreadID.h
366  SkTo.h
367  SkVx.h
368  SkWeakRefCnt.h
369 include/skia/include/svg/SkSVGCanvas.h
370 include/skia/include/third_party/skcms/
371  LICENSE
372  skcms.h
373 include/skia/include/third_party/vulkan/LICENSE
374 include/skia/include/third_party/vulkan/vulkan/
375  vk_platform.h
376  vulkan.h
377  vulkan_android.h
378  vulkan_core.h
379  vulkan_ios.h
380  vulkan_macos.h
381  vulkan_win32.h
382  vulkan_xcb.h
383 include/skia/include/utils/
384  SkAnimCodecPlayer.h
385  SkBase64.h
386  SkCamera.h
387  SkCanvasStateUtils.h
388  SkEventTracer.h
389  SkFrontBufferedStream.h
390  SkInterpolator.h
391  SkLua.h
392  SkLuaCanvas.h
393  SkNWayCanvas.h
394  SkNoDrawCanvas.h
395  SkNullCanvas.h
396  SkPaintFilterCanvas.h
397  SkParse.h
398  SkParsePath.h
399  SkRandom.h
400  SkShadowUtils.h
401  SkTextUtils.h
402  SkTraceEventPhase.h
403 include/skia/include/utils/mac/SkCGUtils.h
404 lib/
405  libskia.so
406  libskia.so.%%SOVERSION%%
407
408
409 [FILE:1205:patches/patch-BUILD.gn]
410 --- BUILD.gn.orig       2020-03-19 21:10:56 UTC
411 +++ BUILD.gn
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",
419    ]
420 @@ -1028,7 +1029,6 @@ component("skia") {
421    }
422  
423    if (is_linux || target_cpu == "wasm") {
424 -    sources += [ "src/ports/SkDebug_stdio.cpp" ]
425      if (skia_use_egl) {
426        libs += [ "GLESv2" ]
427      }
428 @@ -1040,7 +1040,6 @@ component("skia") {
429  
430    if (is_mac) {
431      sources += [
432 -      "src/ports/SkDebug_stdio.cpp",
433        "src/ports/SkImageEncoder_CG.cpp",
434        "src/ports/SkImageGeneratorCG.cpp",
435      ]
436 @@ -1054,7 +1053,6 @@ component("skia") {
437  
438    if (is_ios) {
439      sources += [
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") {
445      ]
446    }
447  
448 -  if (is_fuchsia) {
449 -    sources += [ "src/ports/SkDebug_stdio.cpp" ]
450 -  }
451  
452    if (skia_enable_spirv_validation) {
453      deps += [ "//third_party/spirv-tools:spvtools_val" ]
454
455
456 [FILE:627:patches/patch-gn_BUILDCONFIG.gn]
457 is_clang script is python2 which has been removed from RP
458
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
463  }
464  
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",
469 -                         [
470 -                           cc,
471 -                           cxx,
472 -                         ],
473 -                         "value")
474 -}
475 +is_clang = false
476  
477  if (is_android) {
478    ndk_host = ""
479
480
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:
485          } else {
486              fShouldRestoreLocale = false;
487          }
488 -#elif HAVE_LOCALE_T
489 +#elif HAVE_LOCALE_T && !defined __NetBSD__
490  #if HAVE_XLOCALE
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());
495          }
496          _configthreadlocale(fOldPerThreadLocale);
497 -#elif HAVE_LOCALE_T
498 +#elif HAVE_LOCALE_T && !defined __NetBSD__
499          if (fLocale) {
500               uselocale(fOldLocale);
501               freelocale(fLocale);
502
503
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
507 @@ -5,7 +5,7 @@
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__)
513  #define qMacOS 0
514  #define qWinOS 0
515  #define qLinux 1
516
517
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
522  
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)) {
530 -#else
531 -  if (__builtin_smulll_overflow(arg1, arg2, &result)) {
532 -#endif
533 -    ThrowProgramError("Arithmetic overflow");
534 -    abort();  // Never reached.
535 -  }
536 -  return result;
537 -}
538 -#endif
539  
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);
551  #else
552    return dng_internal::SafeInt64MultSlow(arg1, arg2);
553
554
555 [FILE:312:files/special.mk]
556 _USES_extract+= 501:make_extdir
557
558 .if "${OPSYS}" != "Linux"
559 _USES_configure+= 452:remove_libdl
560 .endif
561
562 make_extdir:
563         ${MKDIR} ${WRKSRC}/third_party/externals
564
565 remove_libdl:
566         @echo "BSD: Remove -ldl linkage"
567         ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
568         ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn
569