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