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
43 BUILDRUN_DEPENDS= WebP:primary:standard
44 harfbuzz:primary:standard
47 USES= ninja jpeg png expat zlib freetype c++:primary
51 LICENSE= BSD3CLAUSE:primary
52 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
55 CONFIGURE_OUTSOURCE= yes
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
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 \
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
87 ${MV} ${WRKDIR}/skia_5 ${WRKSRC}/third_party/externals/zlib
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)
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.
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
115 [FILE:43:manifests/plist.primary]
118 libskia.so.%%SOVERSION%%
121 [FILE:7227:manifests/plist.dev]
122 include/skia/include/
125 include/skia/include/android/
127 SkAndroidFrameworkUtils.h
130 include/skia/include/codec/
136 include/skia/include/config/
139 include/skia/include/core/
149 SkCanvasVirtualEnforcer.h
162 SkDeferredDisplayList.h
163 SkDeferredDisplayListRecorder.h
167 SkEncodedImageFormat.h
190 SkOpenTypeSVGDecoder.h
206 SkPromiseImageTexture.h
209 SkRasterHandleAllocator.h
223 SkSurfaceCharacterization.h
227 SkTextureCompressionType.h
237 include/skia/include/docs/
241 include/skia/include/effects/
249 SkColorMatrixFilter.h
252 SkDiscretePathEffect.h
254 SkHighContrastFilter.h
259 SkOverdrawColorFilter.h
260 SkPerlinNoiseShader.h
263 SkStrokeAndFillPathEffect.h
267 include/skia/include/encode/
273 include/skia/include/gpu/
276 GrBackendDrawableInfo.h
279 GrBackendSurfaceMutableState.h
281 GrContextThreadSafeProxy.h
283 GrDriverBugWorkarounds.h
284 GrDriverBugWorkaroundsAutogen.h
288 GrYUVABackendTextures.h
289 MutableTextureState.h
291 include/skia/include/gpu/d3d/
293 GrD3DBackendContext.h
295 include/skia/include/gpu/dawn/
298 include/skia/include/gpu/gl/
300 GrGLAssembleHelpers.h
301 GrGLAssembleInterface.h
308 include/skia/include/gpu/gl/egl/
310 GrGLMakeEGLInterface.h
311 include/skia/include/gpu/gl/glx/
313 GrGLMakeGLXInterface.h
314 include/skia/include/gpu/graphite/
323 YUVABackendTextures.h
324 include/skia/include/gpu/graphite/dawn/
328 include/skia/include/gpu/graphite/mtl/
333 include/skia/include/gpu/graphite/vk/
334 VulkanGraphiteTypes.h
335 VulkanGraphiteUtils.h
336 include/skia/include/gpu/mock/
339 include/skia/include/gpu/mtl/
341 GrMtlBackendContext.h
344 include/skia/include/gpu/vk/
348 GrVkMemoryAllocator.h
350 VulkanBackendContext.h
352 VulkanMemoryAllocator.h
354 include/skia/include/pathops/
357 include/skia/include/ports/
360 SkFontConfigInterface.h
361 SkFontMgr_FontConfigInterface.h
363 SkFontMgr_directory.h
365 SkFontMgr_fontconfig.h
370 SkImageGeneratorNDK.h
371 SkImageGeneratorWIC.h
375 include/skia/include/private/
385 SkJpegGainmapEncoder.h
401 include/skia/include/private/base/
435 SkThreadAnnotations.h
439 include/skia/include/private/chromium/
442 GrVkSecondaryCBDrawContext.h
443 SkChromeRemoteGlyphCache.h
444 SkDiscardableMemory.h
446 include/skia/include/private/gpu/BUILD.bazel
447 include/skia/include/private/gpu/ganesh/
458 include/skia/include/private/gpu/graphite/
460 MtlGraphiteTypesPriv.h
461 VulkanGraphiteTypesPriv.h
462 include/skia/include/private/gpu/vk/
466 include/skia/include/sksl/
485 include/skia/include/svg/
488 include/skia/include/third_party/vulkan/
491 include/skia/include/third_party/vulkan/vulkan/
500 include/skia/include/utils/
512 SkPaintFilterCanvas.h
518 include/skia/include/utils/mac/
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
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__)
532 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX)
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__)
541 #elif defined(SK_BUILD_FOR_UNIX)
542 completeSize = malloc_usable_size(ptr);
543 SkASSERT(completeSize >= size);
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
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__)
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
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)) {
573 - if (__builtin_smulll_overflow(arg1, arg2, &result)) {
575 - ThrowProgramError("Arithmetic overflow");
576 - abort(); // Never reached.
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);
594 return dng_internal::SafeInt64MultSlow(arg1, arg2);
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
610 [FILE:312:files/special.mk]
611 _USES_extract+= 501:make_extdir
613 .if "${OPSYS}" != "Linux"
614 _USES_configure+= 452:remove_libdl
618 ${MKDIR} ${WRKSRC}/third_party/externals
621 @echo "BSD: Remove -ldl linkage"
622 ${REINPLACE_CMD} -e 's|-ldl||' ${WRKSRC}/public.bzl
623 ${REINPLACE_CMD} -e 's|"dl"|""|' ${WRKSRC}/BUILD.gn