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