Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Nov 2024 20:20:42 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: faae48a566ac - main - graphics/libskiasharp: newport
Message-ID:  <202411052020.4A5KKgxO039645@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=faae48a566acf0494a14d91e6d385aac4c2992a3

commit faae48a566acf0494a14d91e6d385aac4c2992a3
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-11-05 14:40:15 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-11-05 20:20:39 +0000

    graphics/libskiasharp: newport
    
    Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
    
    This is a dependency currently bundled prebuilt in multimedia/jellyfin, this port
    will allow to properly build everything from ports
---
 graphics/Makefile               |  1 +
 graphics/libskiasharp/Makefile  | 72 +++++++++++++++++++++++++++++++++++++++++
 graphics/libskiasharp/distinfo  |  3 ++
 graphics/libskiasharp/pkg-descr |  1 +
 4 files changed, 77 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 22001c03421d..1b5d4af9aade 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -503,6 +503,7 @@
     SUBDIR += librsvg2
     SUBDIR += librsvg2-rust
     SUBDIR += librtprocess
+    SUBDIR += libskiasharp
     SUBDIR += libsixel
     SUBDIR += libspiro
     SUBDIR += libspng
diff --git a/graphics/libskiasharp/Makefile b/graphics/libskiasharp/Makefile
new file mode 100644
index 000000000000..0c040c8e5354
--- /dev/null
+++ b/graphics/libskiasharp/Makefile
@@ -0,0 +1,72 @@
+PORTNAME=	libskiasharp
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.88.3
+CATEGORIES=	graphics
+
+MAINTAINER=	bapt@FreeBSD.org
+COMMENT=	Complete 2D graphic library for drawing Text, Geometries, and Images
+WWW=		https://skia.org/
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	gn:devel/gn
+LIB_DEPENDS=	libexpat.so:textproc/expat2 \
+		libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2 \
+		libpng.so:graphics/png \
+		libwebp.so:graphics/webp
+
+USES=		jpeg ninja python:build
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	mono
+GH_PROJECT=	skia
+
+USE_LDCONFIG=	yes
+USE_BINUTILS=	yes
+
+SOVERSION=	118.0.0
+GN_ARGS=	is_official_build=true \
+		skia_enable_tools=false \
+		target_os="linux" \
+		skia_use_icu=false \
+		skia_use_sfntly=false \
+		skia_use_piex=true \
+		skia_use_harfbuzz=false \
+		skia_use_system_expat=true \
+		skia_use_system_libjpeg_turbo=true \
+		skia_use_system_freetype2=true \
+		skia_use_system_libpng=true \
+		skia_use_system_libwebp=true \
+		skia_use_system_zlib=true \
+		skia_enable_gpu=true \
+		skia_enable_skottie=true \
+		skia_enable_pdf=true \
+		skia_use_dng_sdk=false \
+		extra_cflags=[ \
+		"-DSKIA_C_DLL", \
+		"-I${LOCALBASE}/include", \
+		"-I${LOCALBASE}/include/freetype2"] \
+		extra_ldflags=["-L${LOCALBASE}/lib"] \
+		linux_soname_version="${SOVERSION}"
+
+BINARY_ALIAS=	python=${PYTHON_CMD} \
+		ar=${LOCALBASE}/bin/ar
+
+ALL_TARGET=	SkiaSharp
+BUILD_WRKSRC=	${WRKSRC}/out
+
+PLIST_FILES=	lib/libSkiaSharp.so \
+		lib/libSkiaSharp.so.${SOVERSION}
+
+do-configure:
+	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} gn gen 'out' --args='${GN_ARGS}'
+
+do-install:
+	${INSTALL_DATA} ${BUILD_WRKSRC}/libSkiaSharp.so.${SOVERSION} \
+		${STAGEDIR}${PREFIX}/lib
+	${RLN} ${STAGEDIR}${PREFIX}/lib/libSkiaSharp.so.${SOVERSION} \
+		${STAGEDIR}${PREFIX}/lib/libSkiaSharp.so
+
+.include <bsd.port.mk>
diff --git a/graphics/libskiasharp/distinfo b/graphics/libskiasharp/distinfo
new file mode 100644
index 000000000000..a35a3a85b843
--- /dev/null
+++ b/graphics/libskiasharp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1730816381
+SHA256 (mono-skia-v2.88.3_GH0.tar.gz) = 899ee3693575dd5f1e769070672253beb03ece414ab2803228e346889f268dda
+SIZE (mono-skia-v2.88.3_GH0.tar.gz) = 51816808
diff --git a/graphics/libskiasharp/pkg-descr b/graphics/libskiasharp/pkg-descr
new file mode 100644
index 000000000000..41c6af94da51
--- /dev/null
+++ b/graphics/libskiasharp/pkg-descr
@@ -0,0 +1 @@
+Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411052020.4A5KKgxO039645>