Ravenports generated: 11 Dec 2022 20:15
[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=               2
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 BUILDRUN_DEPENDS=       WebP:single:standard
32                         harfbuzz:primary:standard
33                         harfbuzz:icu:standard
34                         freetype:primary:standard
35
36 USES=                   ninja python:py27,build jpeg png expat zlib
37                         c++:single
38
39 LICENSE=                BSD3CLAUSE:single
40 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/LICENSE
41 LICENSE_SCHEME=         solo
42
43 CONFIGURE_OUTSOURCE=    yes
44 CONFIGURE_ENV=          AUTOPYTHON=2.7
45
46 MAKE_ENV=               AUTOPYTHON=2.7
47
48 SOVERSION=              1.0
49
50 VAR_OPSYS[freebsd]=     VAR1=skia_enable_fontmgr_empty=true
51 VAR_OPSYS[netbsd]=      VAR1=skia_enable_fontmgr_empty=true
52 VAR_OPSYS[dragonfly]=   VAR1=skia_enable_fontmgr_empty=true
53
54 pre-patch:
55         ${REINPLACE_CMD} -e 's|/usr/include/harfbuzz|${LOCALBASE}/include/harfbuzz|'\
56                 ${WRKSRC}/third_party/harfbuzz/BUILD.gn
57         ${REINPLACE_CMD} -e 's|/usr/include/freetype2|${LOCALBASE}/include/freetype2|'\
58                 ${WRKSRC}/third_party/freetype2/BUILD.gn
59         # Delete reference to gn function "set_sources_assignment_filter"
60         # https://gn.googlesource.com/gn/+/55e535a6716e57320fdd3901f0347a5c30562199
61         ${REINPLACE_CMD} -e '/set_sources_assignment_filter/d' \
62                 -e '/visibility/d' \
63                 ${WRKSRC}/BUILD.gn
64
65 do-configure:
66         ${MKDIR} ${CONFIGURE_WRKSRC}
67         (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
68                 gn gen ${CONFIGURE_WRKSRC} --args="\
69                 is_official_build=true \
70                 is_component_build=true \
71                 skia_use_system_libjpeg_turbo=true \
72                 skia_use_system_libpng=true \
73                 skia_use_system_libwebp=true \
74                 skia_use_system_icu=true \
75                 skia_use_system_expat=true \
76                 skia_use_system_zlib=true \
77                 skia_use_system_harfbuzz=true \
78                 ${VAR1} \
79                 ")
80
81 do-install:
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)
90
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.
96
97
98 [FILE:590:distinfo]
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
104
105
106 [FILE:5604:manifests/plist.single]
107 include/skia/include/android/
108  SkAndroidFrameworkUtils.h
109  SkAnimatedImage.h
110  SkBRDAllocator.h
111  SkBitmapRegionDecoder.h
112 include/skia/include/atlastext/
113  SkAtlasTextContext.h
114  SkAtlasTextFont.h
115  SkAtlasTextRenderer.h
116  SkAtlasTextTarget.h
117 include/skia/include/c/
118  sk_canvas.h
119  sk_colorspace.h
120  sk_data.h
121  sk_image.h
122  sk_imageinfo.h
123  sk_maskfilter.h
124  sk_matrix.h
125  sk_paint.h
126  sk_path.h
127  sk_picture.h
128  sk_shader.h
129  sk_surface.h
130  sk_types.h
131 include/skia/include/codec/
132  SkAndroidCodec.h
133  SkCodec.h
134  SkCodecAnimation.h
135  SkEncodedOrigin.h
136 include/skia/include/config/SkUserConfig.h
137 include/skia/include/core/
138  SkAnnotation.h
139  SkBBHFactory.h
140  SkBitmap.h
141  SkBlendMode.h
142  SkBlurTypes.h
143  SkCanvas.h
144  SkCanvasVirtualEnforcer.h
145  SkClipOp.h
146  SkColor.h
147  SkColorFilter.h
148  SkColorPriv.h
149  SkColorSpace.h
150  SkContourMeasure.h
151  SkCoverageMode.h
152  SkCubicMap.h
153  SkData.h
154  SkDataTable.h
155  SkDeferredDisplayList.h
156  SkDeferredDisplayListRecorder.h
157  SkDocument.h
158  SkDrawLooper.h
159  SkDrawable.h
160  SkEncodedImageFormat.h
161  SkExecutor.h
162  SkFilterQuality.h
163  SkFlattenable.h
164  SkFont.h
165  SkFontArguments.h
166  SkFontLCDConfig.h
167  SkFontMetrics.h
168  SkFontMgr.h
169  SkFontParameters.h
170  SkFontStyle.h
171  SkFontTypes.h
172  SkGraphics.h
173  SkICC.h
174  SkImage.h
175  SkImageEncoder.h
176  SkImageFilter.h
177  SkImageGenerator.h
178  SkImageInfo.h
179  SkM44.h
180  SkMallocPixelRef.h
181  SkMaskFilter.h
182  SkMath.h
183  SkMatrix.h
184  SkMatrix44.h
185  SkMilestone.h
186  SkOverdrawCanvas.h
187  SkPaint.h
188  SkPath.h
189  SkPathEffect.h
190  SkPathMeasure.h
191  SkPathTypes.h
192  SkPicture.h
193  SkPictureRecorder.h
194  SkPixelRef.h
195  SkPixmap.h
196  SkPngChunkReader.h
197  SkPoint.h
198  SkPoint3.h
199  SkPromiseImageTexture.h
200  SkRRect.h
201  SkRSXform.h
202  SkRWBuffer.h
203  SkRasterHandleAllocator.h
204  SkRect.h
205  SkRefCnt.h
206  SkRegion.h
207  SkScalar.h
208  SkSerialProcs.h
209  SkShader.h
210  SkSize.h
211  SkStream.h
212  SkString.h
213  SkStrokeRec.h
214  SkSurface.h
215  SkSurfaceCharacterization.h
216  SkSurfaceProps.h
217  SkSwizzle.h
218  SkTextBlob.h
219  SkTileMode.h
220  SkTime.h
221  SkTraceMemoryDump.h
222  SkTypeface.h
223  SkTypes.h
224  SkUnPreMultiply.h
225  SkVertices.h
226  SkYUVAIndex.h
227  SkYUVASizeInfo.h
228 include/skia/include/docs/
229  SkPDFDocument.h
230  SkXPSDocument.h
231 include/skia/include/effects/
232  Sk1DPathEffect.h
233  Sk2DPathEffect.h
234  SkAlphaThresholdFilter.h
235  SkArithmeticImageFilter.h
236  SkBlurDrawLooper.h
237  SkBlurImageFilter.h
238  SkBlurMaskFilter.h
239  SkColorFilterImageFilter.h
240  SkColorMatrix.h
241  SkColorMatrixFilter.h
242  SkComposeImageFilter.h
243  SkCornerPathEffect.h
244  SkDashPathEffect.h
245  SkDiscretePathEffect.h
246  SkDisplacementMapEffect.h
247  SkDropShadowImageFilter.h
248  SkGradientShader.h
249  SkHighContrastFilter.h
250  SkImageFilters.h
251  SkImageSource.h
252  SkLayerDrawLooper.h
253  SkLightingImageFilter.h
254  SkLumaColorFilter.h
255  SkMagnifierImageFilter.h
256  SkMatrixConvolutionImageFilter.h
257  SkMergeImageFilter.h
258  SkMorphologyImageFilter.h
259  SkOffsetImageFilter.h
260  SkOpPathEffect.h
261  SkOverdrawColorFilter.h
262  SkPaintImageFilter.h
263  SkPerlinNoiseShader.h
264  SkPictureImageFilter.h
265  SkRuntimeEffect.h
266  SkShaderMaskFilter.h
267  SkTableColorFilter.h
268  SkTableMaskFilter.h
269  SkTileImageFilter.h
270  SkTrimPathEffect.h
271  SkXfermodeImageFilter.h
272 include/skia/include/encode/
273  SkEncoder.h
274  SkJpegEncoder.h
275  SkPngEncoder.h
276  SkWebpEncoder.h
277 include/skia/include/gpu/
278  GrBackendDrawableInfo.h
279  GrBackendSemaphore.h
280  GrBackendSurface.h
281  GrConfig.h
282  GrContext.h
283  GrContextOptions.h
284  GrContextThreadSafeProxy.h
285  GrDriverBugWorkarounds.h
286  GrDriverBugWorkaroundsAutogen.h
287  GrTypes.h
288 include/skia/include/gpu/d3d/
289  GrD3D12.h
290  GrD3DBackendContext.h
291 include/skia/include/gpu/dawn/GrDawnTypes.h
292 include/skia/include/gpu/gl/
293  GrGLAssembleHelpers.h
294  GrGLAssembleInterface.h
295  GrGLConfig.h
296  GrGLConfig_chrome.h
297  GrGLExtensions.h
298  GrGLFunctions.h
299  GrGLInterface.h
300  GrGLTypes.h
301 include/skia/include/gpu/mock/GrMockTypes.h
302 include/skia/include/gpu/mtl/GrMtlTypes.h
303 include/skia/include/gpu/vk/
304  GrVkBackendContext.h
305  GrVkExtensions.h
306  GrVkMemoryAllocator.h
307  GrVkTypes.h
308  GrVkVulkan.h
309 include/skia/include/pathops/SkPathOps.h
310 include/skia/include/ports/
311  SkCFObject.h
312  SkFontConfigInterface.h
313  SkFontMgr_FontConfigInterface.h
314  SkFontMgr_android.h
315  SkFontMgr_directory.h
316  SkFontMgr_empty.h
317  SkFontMgr_fontconfig.h
318  SkFontMgr_fuchsia.h
319  SkFontMgr_indirect.h
320  SkImageGeneratorCG.h
321  SkImageGeneratorWIC.h
322  SkRemotableFontMgr.h
323  SkTypeface_mac.h
324  SkTypeface_win.h
325 include/skia/include/private/
326  GrContext_Base.h
327  GrGLTypesPriv.h
328  GrImageContext.h
329  GrRecordingContext.h
330  GrResourceKey.h
331  GrSharedEnums.h
332  GrSingleOwner.h
333  GrTypesPriv.h
334  GrVkTypesPriv.h
335  SkBitmaskEnum.h
336  SkChecksum.h
337  SkColorData.h
338  SkDeque.h
339  SkEncodedInfo.h
340  SkFixed.h
341  SkFloatBits.h
342  SkFloatingPoint.h
343  SkHalf.h
344  SkIDChangeListener.h
345  SkImageInfoPriv.h
346  SkMacros.h
347  SkMalloc.h
348  SkMutex.h
349  SkNoncopyable.h
350  SkNx.h
351  SkNx_neon.h
352  SkNx_sse.h
353  SkOnce.h
354  SkPathRef.h
355  SkSafe32.h
356  SkSafe_math.h
357  SkSemaphore.h
358  SkShadowFlags.h
359  SkSpinlock.h
360  SkTArray.h
361  SkTDArray.h
362  SkTFitsIn.h
363  SkTHash.h
364  SkTLogic.h
365  SkTemplates.h
366  SkThreadAnnotations.h
367  SkThreadID.h
368  SkTo.h
369  SkVx.h
370  SkWeakRefCnt.h
371 include/skia/include/svg/SkSVGCanvas.h
372 include/skia/include/third_party/skcms/
373  LICENSE
374  skcms.h
375 include/skia/include/third_party/vulkan/LICENSE
376 include/skia/include/third_party/vulkan/vulkan/
377  vk_platform.h
378  vulkan.h
379  vulkan_android.h
380  vulkan_core.h
381  vulkan_ios.h
382  vulkan_macos.h
383  vulkan_win32.h
384  vulkan_xcb.h
385 include/skia/include/utils/
386  SkAnimCodecPlayer.h
387  SkBase64.h
388  SkCamera.h
389  SkCanvasStateUtils.h
390  SkEventTracer.h
391  SkFrontBufferedStream.h
392  SkInterpolator.h
393  SkLua.h
394  SkLuaCanvas.h
395  SkNWayCanvas.h
396  SkNoDrawCanvas.h
397  SkNullCanvas.h
398  SkPaintFilterCanvas.h
399  SkParse.h
400  SkParsePath.h
401  SkRandom.h
402  SkShadowUtils.h
403  SkTextUtils.h
404  SkTraceEventPhase.h
405 include/skia/include/utils/mac/SkCGUtils.h
406 lib/
407  libskia.so
408  libskia.so.%%SOVERSION%%
409
410
411 [FILE:1205:patches/patch-BUILD.gn]
412 --- BUILD.gn.orig       2020-03-19 21:10:56 UTC
413 +++ BUILD.gn
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",
421    ]
422 @@ -1028,7 +1029,6 @@ component("skia") {
423    }
424  
425    if (is_linux || target_cpu == "wasm") {
426 -    sources += [ "src/ports/SkDebug_stdio.cpp" ]
427      if (skia_use_egl) {
428        libs += [ "GLESv2" ]
429      }
430 @@ -1040,7 +1040,6 @@ component("skia") {
431  
432    if (is_mac) {
433      sources += [
434 -      "src/ports/SkDebug_stdio.cpp",
435        "src/ports/SkImageEncoder_CG.cpp",
436        "src/ports/SkImageGeneratorCG.cpp",
437      ]
438 @@ -1054,7 +1053,6 @@ component("skia") {
439  
440    if (is_ios) {
441      sources += [
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") {
447      ]
448    }
449  
450 -  if (is_fuchsia) {
451 -    sources += [ "src/ports/SkDebug_stdio.cpp" ]
452 -  }
453  
454    if (skia_enable_spirv_validation) {
455      deps += [ "//third_party/spirv-tools:spvtools_val" ]
456
457
458 [FILE:667:patches/patch-src_gpu_GrAutoLocaleSetter.h]
459 --- src/gpu/GrAutoLocaleSetter.h.orig   2020-03-19 21:10:56 UTC
460 +++ src/gpu/GrAutoLocaleSetter.h
461 @@ -49,7 +49,7 @@ public:
462          } else {
463              fShouldRestoreLocale = false;
464          }
465 -#elif HAVE_LOCALE_T
466 +#elif HAVE_LOCALE_T && !defined __NetBSD__
467  #if HAVE_XLOCALE
468          // In xlocale nullptr means the C locale.
469          if (0 == strcmp(name, "C")) {
470 @@ -73,7 +73,7 @@ public:
471              setlocale(LC_ALL, fOldLocale.c_str());
472          }
473          _configthreadlocale(fOldPerThreadLocale);
474 -#elif HAVE_LOCALE_T
475 +#elif HAVE_LOCALE_T && !defined __NetBSD__
476          if (fLocale) {
477               uselocale(fOldLocale);
478               freelocale(fLocale);
479
480
481 [FILE:531:patches/patch-third__party_externals_dng__sdk_source_RawEnvironment.h]
482 --- third_party/externals/dng_sdk/source/RawEnvironment.h.orig  2019-03-13 04:56:20 UTC
483 +++ third_party/externals/dng_sdk/source/RawEnvironment.h
484 @@ -5,7 +5,7 @@
485  // compilation. The constants qMacOS and qWinOS must be defined on all
486  // platforms. Other constants, such as qLinux, only need to be defined if we're
487  // actually compiling for that platform.
488 -#if defined(__linux__)
489 +#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
490  #define qMacOS 0
491  #define qWinOS 0
492  #define qLinux 1
493
494
495 [FILE:1461:patches/patch-third__party_externals_dng__sdk_source_dng__safe__arithmetic.h]
496 --- third_party/externals/dng_sdk/source/dng_safe_arithmetic.h.orig     2019-03-13 04:56:20 UTC
497 +++ third_party/externals/dng_sdk/source/dng_safe_arithmetic.h
498 @@ -109,20 +109,6 @@ std::int64_t SafeInt64MultSlow(std::int6
499  
500  // Internal function used as optimization for SafeInt64Mult() if Clang
501  // __builtin_smull_overflow is supported. Don't call this function directly.
502 -#if __has_builtin(__builtin_smull_overflow)
503 -inline std::int64_t SafeInt64MultByClang(std::int64_t arg1, std::int64_t arg2) {
504 -  std::int64_t result;
505 -#if (__WORDSIZE == 64) && !defined(__APPLE__)
506 -  if (__builtin_smull_overflow(arg1, arg2, &result)) {
507 -#else
508 -  if (__builtin_smulll_overflow(arg1, arg2, &result)) {
509 -#endif
510 -    ThrowProgramError("Arithmetic overflow");
511 -    abort();  // Never reached.
512 -  }
513 -  return result;
514 -}
515 -#endif
516  
517  // Internal function used as optimization for SafeInt64Mult() if __int128 type
518  // is supported. Don't call this function directly.
519 @@ -147,9 +133,7 @@ inline std::int64_t SafeInt64MultByInt12
520  // (without overflow). Otherwise, throws a dng_exception with error code
521  // dng_error_unknown.
522  inline std::int64_t SafeInt64Mult(std::int64_t arg1, std::int64_t arg2) {
523 -#if __has_builtin(__builtin_smull_overflow)
524 -  return dng_internal::SafeInt64MultByClang(arg1, arg2);
525 -#elif defined(DNG_HAS_INT128)
526 +#if defined(DNG_HAS_INT128)
527    return dng_internal::SafeInt64MultByInt128(arg1, arg2);
528  #else
529    return dng_internal::SafeInt64MultSlow(arg1, arg2);
530
531
532 [FILE:89:files/special.mk]
533 _USES_extract+= 501:make_extdir
534
535 make_extdir:
536         ${MKDIR} ${WRKSRC}/third_party/externals
537