Ravenports generated: 16 Apr 2024 22:24
[ravenports.git] / bucket_90 / skia
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               skia
4 VERSION=                113
5 EPOCH=                  1
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 wuffs zlib
13 SITES[main]=            GITHUB/google:skia:9bfb45d
14 SITES[dng]=             GITHUB/QtSkia:dng_sdk:c8d0c9b:third_party/externals/dng_sdk
15 SITES[piex]=            GITHUB/google:piex:f1e15dd:third_party/externals/piex
16 SITES[sfn]=             GITHUB/googlefonts:sfntly:b55ff30:third_party/externals/sfntly
17 SITES[wuffs]=           GITHUB/google:wuffs-mirror-release-c:a0041ac:third_party/externals/wuffs
18 SITES[zlib]=            https://leaf.dragonflybsd.org/~marino/raven-distfiles/
19 DISTFILE[1]=            generated:main
20 DISTFILE[2]=            generated:sfn
21 DISTFILE[3]=            generated:dng
22 DISTFILE[4]=            generated:piex
23 DISTFILE[5]=            skia-zlib-c876c8f.tar.gz:zlib
24 DISTFILE[6]=            generated:wuffs
25 DIST_SUBDIR=            skia-src
26 DF_INDEX=               1 2 3 4 5 6
27 SPKGS[standard]=        complete
28                         primary
29                         dev
30
31 OPTIONS_AVAILABLE=      none
32 OPTIONS_STANDARD=       none
33
34 ONLY_FOR_OPSYS=         linux
35
36 BUILD_DEPENDS=          gn:single:standard
37                         harfbuzz:dev:standard
38                         fontconfig:dev:standard
39                         xorg-x11:dev:standard
40                         icu:dev:standard
41                         WebP:dev:standard
42                         libglvnd:dev:standard
43 BUILDRUN_DEPENDS=       WebP:primary:standard
44                         harfbuzz:primary:standard
45                         harfbuzz:icu:standard
46
47 USES=                   ninja jpeg png expat zlib freetype c++:primary
48
49 EXTRACT_DIRTY=          5
50
51 LICENSE=                BSD3CLAUSE:primary
52 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/LICENSE
53 LICENSE_SCHEME=         solo
54
55 CONFIGURE_OUTSOURCE=    yes
56
57 SOVERSION=              1.0
58
59 VAR_OPSYS[freebsd]=     VAR1=skia_enable_fontmgr_empty=true
60 VAR_OPSYS[netbsd]=      VAR1=skia_enable_fontmgr_empty=true
61 VAR_OPSYS[dragonfly]=   VAR1=skia_enable_fontmgr_empty=true
62 VAR_OPSYS[midnightbsd]= VAR1=skia_enable_fontmgr_empty=true
63
64 do-configure:
65         ${MKDIR} ${CONFIGURE_WRKSRC}
66         (cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
67                 gn gen ${CONFIGURE_WRKSRC} --args="\
68                 is_official_build=true \
69                 is_component_build=true \
70                 skia_use_system_libjpeg_turbo=true \
71                 skia_use_system_libpng=true \
72                 skia_use_system_libwebp=true \
73                 skia_use_system_icu=true \
74                 skia_use_system_expat=true \
75                 skia_use_system_zlib=true \
76                 skia_use_system_harfbuzz=true \
77                 ${VAR1} \
78                 ")
79
80 pre-configure:
81         ${REINPLACE_CMD} -e 's|/usr/include/harfbuzz|${LOCALBASE}/include/harfbuzz|'\
82                 ${WRKSRC}/third_party/harfbuzz/BUILD.gn
83         ${REINPLACE_CMD} -e 's|/usr/include/freetype2|${LOCALBASE}/include/freetype2|'\
84                 ${WRKSRC}/third_party/freetype2/BUILD.gn
85
86 post-extract:
87         ${MV} ${WRKDIR}/skia_5 ${WRKSRC}/third_party/externals/zlib
88
89 do-install:
90         ${MKDIR} ${STAGEDIR}${PREFIX}/lib
91         ${MKDIR} ${STAGEDIR}${PREFIX}/include/skia
92         ${INSTALL_LIB} ${BUILD_WRKSRC}/libskia.so \
93                 ${STAGEDIR}${PREFIX}/lib/libskia.so.1.0
94         (cd ${STAGEDIR}${PREFIX}/lib && \
95                 ${LN} -s libskia.so.1.0 libskia.so)
96         (cd ${WRKSRC} && ${COPYTREE_SHARE} \
97                 include ${STAGEDIR}${PREFIX}/include/skia)
98
99 [FILE:265:descriptions/desc.primary]
100 Skia is an open source 2D graphics library which provides common APIs that
101 work across a variety of hardware and software platforms. It serves as the
102 graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox
103 and Firefox OS, and many other products.
104
105
106 [FILE:710:distinfo]
107 c15c41e69b3e86c3e653c980a810a8cc1af23f590f0bb483b462c9c065f49829     59906409 skia-src/google-skia-9bfb45d.tar.gz
108 471fdcebf662f3b731e602b41461aa7a6cdcda9d78d8ec5196edf08f504fe53f     39295928 skia-src/googlefonts-sfntly-b55ff30.tar.gz
109 a523111f2911a68efc3f1488dc60c8bd4d41746731ce28014ae273767a28311e       421656 skia-src/QtSkia-dng_sdk-c8d0c9b.tar.gz
110 fc3e75fe261db3740d3d1b2d16e8130b39218b5a1af5d412da9eb42b24c49ee0        41606 skia-src/google-piex-f1e15dd.tar.gz
111 0f74635d1108ba69389385f6b13839cab1faab81e976a0ef0c524935a06f6782       314258 skia-src/skia-zlib-c876c8f.tar.gz
112 772dd0b61d08ff475b8b18cc4bbf82ed93a4afbc3a26f5322eeeaaafac0891dd       325343 skia-src/google-wuffs-mirror-release-c-a0041ac.tar.gz
113
114
115 [FILE:43:manifests/plist.primary]
116 lib/
117  libskia.so
118  libskia.so.%%SOVERSION%%
119
120
121 [FILE:7227:manifests/plist.dev]
122 include/skia/include/
123  BUILD.bazel
124  OWNERS
125 include/skia/include/android/
126  BUILD.bazel
127  SkAndroidFrameworkUtils.h
128  SkAnimatedImage.h
129  SkImageAndroid.h
130 include/skia/include/codec/
131  BUILD.bazel
132  SkAndroidCodec.h
133  SkCodec.h
134  SkCodecAnimation.h
135  SkEncodedOrigin.h
136 include/skia/include/config/
137  BUILD.bazel
138  SkUserConfig.h
139 include/skia/include/core/
140  BUILD.bazel
141  SkAlphaType.h
142  SkAnnotation.h
143  SkBBHFactory.h
144  SkBitmap.h
145  SkBlendMode.h
146  SkBlender.h
147  SkBlurTypes.h
148  SkCanvas.h
149  SkCanvasVirtualEnforcer.h
150  SkCapabilities.h
151  SkClipOp.h
152  SkColor.h
153  SkColorFilter.h
154  SkColorPriv.h
155  SkColorSpace.h
156  SkColorType.h
157  SkContourMeasure.h
158  SkCoverageMode.h
159  SkCubicMap.h
160  SkData.h
161  SkDataTable.h
162  SkDeferredDisplayList.h
163  SkDeferredDisplayListRecorder.h
164  SkDocument.h
165  SkDrawLooper.h
166  SkDrawable.h
167  SkEncodedImageFormat.h
168  SkExecutor.h
169  SkFlattenable.h
170  SkFont.h
171  SkFontArguments.h
172  SkFontMetrics.h
173  SkFontMgr.h
174  SkFontParameters.h
175  SkFontStyle.h
176  SkFontTypes.h
177  SkGraphics.h
178  SkICC.h
179  SkImage.h
180  SkImageEncoder.h
181  SkImageFilter.h
182  SkImageGenerator.h
183  SkImageInfo.h
184  SkM44.h
185  SkMallocPixelRef.h
186  SkMaskFilter.h
187  SkMatrix.h
188  SkMesh.h
189  SkMilestone.h
190  SkOpenTypeSVGDecoder.h
191  SkOverdrawCanvas.h
192  SkPaint.h
193  SkPath.h
194  SkPathBuilder.h
195  SkPathEffect.h
196  SkPathMeasure.h
197  SkPathTypes.h
198  SkPathUtils.h
199  SkPicture.h
200  SkPictureRecorder.h
201  SkPixelRef.h
202  SkPixmap.h
203  SkPngChunkReader.h
204  SkPoint.h
205  SkPoint3.h
206  SkPromiseImageTexture.h
207  SkRRect.h
208  SkRSXform.h
209  SkRasterHandleAllocator.h
210  SkRect.h
211  SkRefCnt.h
212  SkRegion.h
213  SkSamplingOptions.h
214  SkScalar.h
215  SkSerialProcs.h
216  SkShader.h
217  SkSize.h
218  SkSpan.h
219  SkStream.h
220  SkString.h
221  SkStrokeRec.h
222  SkSurface.h
223  SkSurfaceCharacterization.h
224  SkSurfaceProps.h
225  SkSwizzle.h
226  SkTextBlob.h
227  SkTextureCompressionType.h
228  SkTileMode.h
229  SkTime.h
230  SkTraceMemoryDump.h
231  SkTypeface.h
232  SkTypes.h
233  SkUnPreMultiply.h
234  SkVertices.h
235  SkYUVAInfo.h
236  SkYUVAPixmaps.h
237 include/skia/include/docs/
238  BUILD.bazel
239  SkPDFDocument.h
240  SkXPSDocument.h
241 include/skia/include/effects/
242  BUILD.bazel
243  Sk1DPathEffect.h
244  Sk2DPathEffect.h
245  SkBlenders.h
246  SkBlurDrawLooper.h
247  SkBlurMaskFilter.h
248  SkColorMatrix.h
249  SkColorMatrixFilter.h
250  SkCornerPathEffect.h
251  SkDashPathEffect.h
252  SkDiscretePathEffect.h
253  SkGradientShader.h
254  SkHighContrastFilter.h
255  SkImageFilters.h
256  SkLayerDrawLooper.h
257  SkLumaColorFilter.h
258  SkOpPathEffect.h
259  SkOverdrawColorFilter.h
260  SkPerlinNoiseShader.h
261  SkRuntimeEffect.h
262  SkShaderMaskFilter.h
263  SkStrokeAndFillPathEffect.h
264  SkTableColorFilter.h
265  SkTableMaskFilter.h
266  SkTrimPathEffect.h
267 include/skia/include/encode/
268  BUILD.bazel
269  SkEncoder.h
270  SkJpegEncoder.h
271  SkPngEncoder.h
272  SkWebpEncoder.h
273 include/skia/include/gpu/
274  BUILD.bazel
275  GpuTypes.h
276  GrBackendDrawableInfo.h
277  GrBackendSemaphore.h
278  GrBackendSurface.h
279  GrBackendSurfaceMutableState.h
280  GrContextOptions.h
281  GrContextThreadSafeProxy.h
282  GrDirectContext.h
283  GrDriverBugWorkarounds.h
284  GrDriverBugWorkaroundsAutogen.h
285  GrRecordingContext.h
286  GrSurfaceInfo.h
287  GrTypes.h
288  GrYUVABackendTextures.h
289  MutableTextureState.h
290  ShaderErrorHandler.h
291 include/skia/include/gpu/d3d/
292  BUILD.bazel
293  GrD3DBackendContext.h
294  GrD3DTypes.h
295 include/skia/include/gpu/dawn/
296  BUILD.bazel
297  GrDawnTypes.h
298 include/skia/include/gpu/gl/
299  BUILD.bazel
300  GrGLAssembleHelpers.h
301  GrGLAssembleInterface.h
302  GrGLConfig.h
303  GrGLConfig_chrome.h
304  GrGLExtensions.h
305  GrGLFunctions.h
306  GrGLInterface.h
307  GrGLTypes.h
308 include/skia/include/gpu/gl/egl/
309  BUILD.bazel
310  GrGLMakeEGLInterface.h
311 include/skia/include/gpu/gl/glx/
312  BUILD.bazel
313  GrGLMakeGLXInterface.h
314 include/skia/include/gpu/graphite/
315  BackendTexture.h
316  Context.h
317  ContextOptions.h
318  GraphiteTypes.h
319  ImageProvider.h
320  Recorder.h
321  Recording.h
322  TextureInfo.h
323  YUVABackendTextures.h
324 include/skia/include/gpu/graphite/dawn/
325  DawnBackendContext.h
326  DawnTypes.h
327  DawnUtils.h
328 include/skia/include/gpu/graphite/mtl/
329  BUILD.bazel
330  MtlBackendContext.h
331  MtlGraphiteTypes.h
332  MtlGraphiteUtils.h
333 include/skia/include/gpu/graphite/vk/
334  VulkanGraphiteTypes.h
335  VulkanGraphiteUtils.h
336 include/skia/include/gpu/mock/
337  BUILD.bazel
338  GrMockTypes.h
339 include/skia/include/gpu/mtl/
340  BUILD.bazel
341  GrMtlBackendContext.h
342  GrMtlTypes.h
343  MtlMemoryAllocator.h
344 include/skia/include/gpu/vk/
345  BUILD.bazel
346  GrVkBackendContext.h
347  GrVkExtensions.h
348  GrVkMemoryAllocator.h
349  GrVkTypes.h
350  VulkanBackendContext.h
351  VulkanExtensions.h
352  VulkanMemoryAllocator.h
353  VulkanTypes.h
354 include/skia/include/pathops/
355  BUILD.bazel
356  SkPathOps.h
357 include/skia/include/ports/
358  BUILD.bazel
359  SkCFObject.h
360  SkFontConfigInterface.h
361  SkFontMgr_FontConfigInterface.h
362  SkFontMgr_android.h
363  SkFontMgr_directory.h
364  SkFontMgr_empty.h
365  SkFontMgr_fontconfig.h
366  SkFontMgr_fuchsia.h
367  SkFontMgr_indirect.h
368  SkFontMgr_mac_ct.h
369  SkImageGeneratorCG.h
370  SkImageGeneratorNDK.h
371  SkImageGeneratorWIC.h
372  SkRemotableFontMgr.h
373  SkTypeface_mac.h
374  SkTypeface_win.h
375 include/skia/include/private/
376  BUILD.bazel
377  OWNERS
378  SkBitmaskEnum.h
379  SkChecksum.h
380  SkColorData.h
381  SkEncodedInfo.h
382  SkGainmapInfo.h
383  SkGainmapShader.h
384  SkIDChangeListener.h
385  SkJpegGainmapEncoder.h
386  SkOpts_spi.h
387  SkPathRef.h
388  SkSLDefines.h
389  SkSLIRNode.h
390  SkSLLayout.h
391  SkSLModifiers.h
392  SkSLProgramElement.h
393  SkSLProgramKind.h
394  SkSLSampleUsage.h
395  SkSLStatement.h
396  SkSLString.h
397  SkSLSymbol.h
398  SkShadowFlags.h
399  SkSpinlock.h
400  SkWeakRefCnt.h
401 include/skia/include/private/base/
402  BUILD.bazel
403  README.md
404  SingleOwner.h
405  SkAPI.h
406  SkAlign.h
407  SkAlignedStorage.h
408  SkAssert.h
409  SkAttributes.h
410  SkCPUTypes.h
411  SkContainers.h
412  SkDebug.h
413  SkDeque.h
414  SkFeatures.h
415  SkFixed.h
416  SkFloatBits.h
417  SkFloatingPoint.h
418  SkLoadUserConfig.h
419  SkMacros.h
420  SkMalloc.h
421  SkMath.h
422  SkMutex.h
423  SkNoncopyable.h
424  SkOnce.h
425  SkPathEnums.h
426  SkSafe32.h
427  SkSemaphore.h
428  SkSpan_impl.h
429  SkTArray.h
430  SkTDArray.h
431  SkTFitsIn.h
432  SkTLogic.h
433  SkTPin.h
434  SkTemplates.h
435  SkThreadAnnotations.h
436  SkThreadID.h
437  SkTo.h
438  SkTypeTraits.h
439 include/skia/include/private/chromium/
440  BUILD.bazel
441  GrSlug.h
442  GrVkSecondaryCBDrawContext.h
443  SkChromeRemoteGlyphCache.h
444  SkDiscardableMemory.h
445  Slug.h
446 include/skia/include/private/gpu/BUILD.bazel
447 include/skia/include/private/gpu/ganesh/
448  BUILD.bazel
449  GrContext_Base.h
450  GrD3DTypesMinimal.h
451  GrDawnTypesPriv.h
452  GrGLTypesPriv.h
453  GrImageContext.h
454  GrMockTypesPriv.h
455  GrMtlTypesPriv.h
456  GrTypesPriv.h
457  GrVkTypesPriv.h
458 include/skia/include/private/gpu/graphite/
459  DawnTypesPriv.h
460  MtlGraphiteTypesPriv.h
461  VulkanGraphiteTypesPriv.h
462 include/skia/include/private/gpu/vk/
463  BUILD.bazel
464  SkiaVulkan.h
465  VulkanTypesPriv.h
466 include/skia/include/sksl/
467  BUILD.bazel
468  DSL.h
469  DSLBlock.h
470  DSLCase.h
471  DSLCore.h
472  DSLExpression.h
473  DSLFunction.h
474  DSLLayout.h
475  DSLModifiers.h
476  DSLStatement.h
477  DSLType.h
478  DSLVar.h
479  OWNERS
480  SkSLDebugTrace.h
481  SkSLErrorReporter.h
482  SkSLOperator.h
483  SkSLPosition.h
484  SkSLVersion.h
485 include/skia/include/svg/
486  BUILD.bazel
487  SkSVGCanvas.h
488 include/skia/include/third_party/vulkan/
489  BUILD.bazel
490  LICENSE
491 include/skia/include/third_party/vulkan/vulkan/
492  vk_platform.h
493  vulkan.h
494  vulkan_android.h
495  vulkan_core.h
496  vulkan_ios.h
497  vulkan_macos.h
498  vulkan_win32.h
499  vulkan_xcb.h
500 include/skia/include/utils/
501  BUILD.bazel
502  SkAnimCodecPlayer.h
503  SkBase64.h
504  SkCamera.h
505  SkCanvasStateUtils.h
506  SkCustomTypeface.h
507  SkEventTracer.h
508  SkNWayCanvas.h
509  SkNoDrawCanvas.h
510  SkNullCanvas.h
511  SkOrderedFontMgr.h
512  SkPaintFilterCanvas.h
513  SkParse.h
514  SkParsePath.h
515  SkShadowUtils.h
516  SkTextUtils.h
517  SkTraceEventPhase.h
518 include/skia/include/utils/mac/
519  BUILD.bazel
520  SkCGUtils.h
521
522
523 [FILE:859:patches/patch-src_base_SkContainers.cpp]
524 --- src/base/SkContainers.cpp.orig      2023-03-17 16:04:02 UTC
525 +++ src/base/SkContainers.cpp
526 @@ -14,6 +14,8 @@
527  
528  #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
529  #include <malloc/malloc.h>
530 +#elif defined(__DragonFly__) || defined(__OpenBSD__) || defined(__FreeBSD__)
531 +// do-nothing
532  #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX)
533  #include <malloc.h>
534  #elif defined(SK_BUILD_FOR_WIN)
535 @@ -38,6 +40,8 @@ SkSpan<std::byte> complete_size(void* pt
536      #elif defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 17
537          completeSize = malloc_usable_size(ptr);
538          SkASSERT(completeSize >= size);
539 +    #elif defined(__DragonFly__) || defined(__OpenBSD__) || defined(__FreeBSD__)
540 +        // do-nothing
541      #elif defined(SK_BUILD_FOR_UNIX)
542          completeSize = malloc_usable_size(ptr);
543          SkASSERT(completeSize >= size);
544
545
546 [FILE:531:patches/patch-third__party_externals_dng__sdk_source_RawEnvironment.h]
547 --- third_party/externals/dng_sdk/source/RawEnvironment.h.orig  2019-03-13 04:56:20 UTC
548 +++ third_party/externals/dng_sdk/source/RawEnvironment.h
549 @@ -5,7 +5,7 @@
550  // compilation. The constants qMacOS and qWinOS must be defined on all
551  // platforms. Other constants, such as qLinux, only need to be defined if we're
552  // actually compiling for that platform.
553 -#if defined(__linux__)
554 +#if defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
555  #define qMacOS 0
556  #define qWinOS 0
557  #define qLinux 1
558
559
560 [FILE:1461:patches/patch-third__party_externals_dng__sdk_source_dng__safe__arithmetic.h]
561 --- third_party/externals/dng_sdk/source/dng_safe_arithmetic.h.orig     2019-03-13 04:56:20 UTC
562 +++ third_party/externals/dng_sdk/source/dng_safe_arithmetic.h
563 @@ -109,20 +109,6 @@ std::int64_t SafeInt64MultSlow(std::int6
564  
565  // Internal function used as optimization for SafeInt64Mult() if Clang
566  // __builtin_smull_overflow is supported. Don't call this function directly.
567 -#if __has_builtin(__builtin_smull_overflow)
568 -inline std::int64_t SafeInt64MultByClang(std::int64_t arg1, std::int64_t arg2) {
569 -  std::int64_t result;
570 -#if (__WORDSIZE == 64) && !defined(__APPLE__)
571 -  if (__builtin_smull_overflow(arg1, arg2, &result)) {
572 -#else
573 -  if (__builtin_smulll_overflow(arg1, arg2, &result)) {
574 -#endif
575 -    ThrowProgramError("Arithmetic overflow");
576 -    abort();  // Never reached.
577 -  }
578 -  return result;
579 -}
580 -#endif
581  
582  // Internal function used as optimization for SafeInt64Mult() if __int128 type
583  // is supported. Don't call this function directly.
584 @@ -147,9 +133,7 @@ inline std::int64_t SafeInt64MultByInt12
585  // (without overflow). Otherwise, throws a dng_exception with error code
586  // dng_error_unknown.
587  inline std::int64_t SafeInt64Mult(std::int64_t arg1, std::int64_t arg2) {
588 -#if __has_builtin(__builtin_smull_overflow)
589 -  return dng_internal::SafeInt64MultByClang(arg1, arg2);
590 -#elif defined(DNG_HAS_INT128)
591 +#if defined(DNG_HAS_INT128)
592    return dng_internal::SafeInt64MultByInt128(arg1, arg2);
593  #else
594    return dng_internal::SafeInt64MultSlow(arg1, arg2);
595
596
597 [FILE:329:patches/patch-third__party_externals_piex_src_image__type__recognition_image__type__recognition__lite.cc]
598 --- third_party/externals/piex/src/image_type_recognition/image_type_recognition_lite.cc.orig   2022-02-17 16:43:38 UTC
599 +++ third_party/externals/piex/src/image_type_recognition/image_type_recognition_lite.cc
600 @@ -26,6 +26,7 @@
601  
602  #include <algorithm>
603  #include <cassert>
604 +#include <cstring>
605  #include <string>
606  #include <vector>
607  
608
609
610 [FILE:312:files/special.mk]
611 _USES_extract+= 501:make_extdir
612
613 .if "${OPSYS}" != "Linux"
614 _USES_configure+= 452:remove_libdl
615 .endif
616
617 make_extdir:
618         ${MKDIR} ${WRKSRC}/third_party/externals
619
620 remove_libdl:
621         @echo "BSD: Remove -ldl linkage"
622         ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
623         ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn
624