summaryrefslogtreecommitdiff
path: root/print/plutobook
diff options
context:
space:
mode:
Diffstat (limited to 'print/plutobook')
-rw-r--r--print/plutobook/Makefile39
-rw-r--r--print/plutobook/distinfo3
-rw-r--r--print/plutobook/pkg-descr3
-rw-r--r--print/plutobook/pkg-plist8
4 files changed, 53 insertions, 0 deletions
diff --git a/print/plutobook/Makefile b/print/plutobook/Makefile
new file mode 100644
index 000000000000..5ca0a1d858ec
--- /dev/null
+++ b/print/plutobook/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= plutobook
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.6.0
+CATEGORIES= print
+
+MAINTAINER= jbo@FreeBSD.org
+COMMENT= Paged HTML rendering library
+WWW= https://github.com/plutoprint/plutobook
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libcurl.so:ftp/curl \
+ libexpat.so:textproc/expat2 \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2 \
+ libharfbuzz.so:print/harfbuzz \
+ libicuuc.so:devel/icu \
+ libturbojpeg.so:graphics/libjpeg-turbo \
+ libwebp.so:graphics/webp
+
+USES= compiler:c++20-lang gnome meson pkgconfig
+
+USE_LDCONFIG= yes
+USE_GNOME= cairo
+
+USE_GITHUB= yes
+GH_ACCOUNT= plutoprint
+
+PLIST_SUB= SOVERSION="${DISTVERSION}"
+
+OPTIONS_DEFINE= TOOLS
+OPTIONS_DEFAULT= TOOLS
+OPTIONS_SUB= yes
+TOOLS_DESC= Build CLI tools to convert HTML to PDF or PNG
+
+TOOLS_MESON_ENABLED= tools
+
+.include <bsd.port.mk>
diff --git a/print/plutobook/distinfo b/print/plutobook/distinfo
new file mode 100644
index 000000000000..6a3de85e22a5
--- /dev/null
+++ b/print/plutobook/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756315516
+SHA256 (plutoprint-plutobook-v0.6.0_GH0.tar.gz) = 6cf367dad24821446b7bb4caec88d7971239f41e51abc22ee362b35a04118408
+SIZE (plutoprint-plutobook-v0.6.0_GH0.tar.gz) = 409596
diff --git a/print/plutobook/pkg-descr b/print/plutobook/pkg-descr
new file mode 100644
index 000000000000..fa2e0b88a219
--- /dev/null
+++ b/print/plutobook/pkg-descr
@@ -0,0 +1,3 @@
+PlutoBook is a robust HTML rendering library tailored for paged media. It takes
+HTML or XML as input, applies CSS stylesheets, and lays out elements across one
+or more pages, which can then be rendered as Bitmap images or PDF documents.
diff --git a/print/plutobook/pkg-plist b/print/plutobook/pkg-plist
new file mode 100644
index 000000000000..7362af0392bc
--- /dev/null
+++ b/print/plutobook/pkg-plist
@@ -0,0 +1,8 @@
+%%TOOLS%%bin/html2pdf
+%%TOOLS%%bin/html2png
+include/plutobook/plutobook.h
+include/plutobook/plutobook.hpp
+lib/libplutobook.so
+lib/libplutobook.so.0
+lib/libplutobook.so.%%SOVERSION%%
+libdata/pkgconfig/plutobook.pc