1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Open-source 2D graphics library
9 HOMEPAGE= https://skia.org
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
27 SPKGS[standard]= complete
31 OPTIONS_AVAILABLE= none
32 OPTIONS_STANDARD= none
36 BUILD_DEPENDS= gn:single:standard
38 fontconfig:dev:standard
42 BUILDRUN_DEPENDS= WebP:primary:standard
43 harfbuzz:primary:standard
46 USES= ninja jpeg png expat zlib freetype c++:primary
50 LICENSE= BSD3CLAUSE:primary
51 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
54 CONFIGURE_OUTSOURCE= yes
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
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 \
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
86 ${MV} ${WRKDIR}/skia_5 ${WRKSRC}/third_party/externals/zlib
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)
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.
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
114 [FILE:43:manifests/plist.primary]
117 libskia.so.%%SOVERSION%%
120 [FILE:7227:manifests/plist.dev]
121 include/skia/include/
124 include/skia/include/android/
126 SkAndroidFrameworkUtils.h
129 include/skia/include/codec/
135 include/skia/include/config/
138 include/skia/include/core/
148 SkCanvasVirtualEnforcer.h
161 SkDeferredDisplayList.h
162 SkDeferredDisplayListRecorder.h
166 SkEncodedImageFormat.h
189 SkOpenTypeSVGDecoder.h
205 SkPromiseImageTexture.h
208 SkRasterHandleAllocator.h
222 SkSurfaceCharacterization.h
226 SkTextureCompressionType.h
236 include/skia/include/docs/
240 include/skia/include/effects/
248 SkColorMatrixFilter.h
251 SkDiscretePathEffect.h
253 SkHighContrastFilter.h
258 SkOverdrawColorFilter.h
259 SkPerlinNoiseShader.h
262 SkStrokeAndFillPathEffect.h
266 include/skia/include/encode/
272 include/skia/include/gpu/
275 GrBackendDrawableInfo.h
278 GrBackendSurfaceMutableState.h
280 GrContextThreadSafeProxy.h
282 GrDriverBugWorkarounds.h
283 GrDriverBugWorkaroundsAutogen.h
287 GrYUVABackendTextures.h
288 MutableTextureState.h
290 include/skia/include/gpu/d3d/
292 GrD3DBackendContext.h
294 include/skia/include/gpu/dawn/
297 include/skia/include/gpu/gl/
299 GrGLAssembleHelpers.h
300 GrGLAssembleInterface.h
307 include/skia/include/gpu/gl/egl/
309 GrGLMakeEGLInterface.h
310 include/skia/include/gpu/gl/glx/
312 GrGLMakeGLXInterface.h
313 include/skia/include/gpu/graphite/
322 YUVABackendTextures.h
323 include/skia/include/gpu/graphite/dawn/
327 include/skia/include/gpu/graphite/mtl/
332 include/skia/include/gpu/graphite/vk/
333 VulkanGraphiteTypes.h
334 VulkanGraphiteUtils.h
335 include/skia/include/gpu/mock/
338 include/skia/include/gpu/mtl/
340 GrMtlBackendContext.h
343 include/skia/include/gpu/vk/
347 GrVkMemoryAllocator.h
349 VulkanBackendContext.h
351 VulkanMemoryAllocator.h
353 include/skia/include/pathops/
356 include/skia/include/ports/
359 SkFontConfigInterface.h
360 SkFontMgr_FontConfigInterface.h
362 SkFontMgr_directory.h
364 SkFontMgr_fontconfig.h
369 SkImageGeneratorNDK.h
370 SkImageGeneratorWIC.h
374 include/skia/include/private/
384 SkJpegGainmapEncoder.h
400 include/skia/include/private/base/
434 SkThreadAnnotations.h
438 include/skia/include/private/chromium/
441 GrVkSecondaryCBDrawContext.h
442 SkChromeRemoteGlyphCache.h
443 SkDiscardableMemory.h
445 include/skia/include/private/gpu/BUILD.bazel
446 include/skia/include/private/gpu/ganesh/
457 include/skia/include/private/gpu/graphite/
459 MtlGraphiteTypesPriv.h
460 VulkanGraphiteTypesPriv.h
461 include/skia/include/private/gpu/vk/
465 include/skia/include/sksl/
484 include/skia/include/svg/
487 include/skia/include/third_party/vulkan/
490 include/skia/include/third_party/vulkan/vulkan/
499 include/skia/include/utils/
511 SkPaintFilterCanvas.h
517 include/skia/include/utils/mac/
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
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__)
531 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX)
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__)
540 #elif defined(SK_BUILD_FOR_UNIX)
541 completeSize = malloc_usable_size(ptr);
542 SkASSERT(completeSize >= size);
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
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__)
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
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)) {
572 - if (__builtin_smulll_overflow(arg1, arg2, &result)) {
574 - ThrowProgramError("Arithmetic overflow");
575 - abort(); // Never reached.
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);
593 return dng_internal::SafeInt64MultSlow(arg1, arg2);
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
609 [FILE:312:files/special.mk]
610 _USES_extract+= 501:make_extdir
612 .if "${OPSYS}" != "Linux"
613 _USES_configure+= 452:remove_libdl
617 ${MKDIR} ${WRKSRC}/third_party/externals
620 @echo "BSD: Remove -ldl linkage"
621 ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
622 ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn