summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/Makefile1
-rw-r--r--print/plutobook/Makefile44
-rw-r--r--print/plutobook/distinfo3
-rw-r--r--print/plutobook/pkg-descr3
-rw-r--r--print/plutobook/pkg-plist8
5 files changed, 59 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 0e1d3e6f1f2b..ea80a60da7f8 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -158,6 +158,7 @@
SUBDIR += pkfonts400
SUBDIR += pkfonts600
SUBDIR += plasma6-print-manager
+ SUBDIR += plutobook
SUBDIR += pnm2ppa
SUBDIR += posterazor
SUBDIR += ps2eps
diff --git a/print/plutobook/Makefile b/print/plutobook/Makefile
new file mode 100644
index 000000000000..1d15ebee8c39
--- /dev/null
+++ b/print/plutobook/Makefile
@@ -0,0 +1,44 @@
+PORTNAME= plutobook
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.5.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
+
+# Don't pull in deps using wrap files
+# See https://github.com/plutoprint/plutobook/issues/3
+EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/subprojects \
+ --no-same-owner --no-same-permissions
+
+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..a20921a25071
--- /dev/null
+++ b/print/plutobook/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1756216373
+SHA256 (plutoprint-plutobook-v0.5.0_GH0.tar.gz) = 7a23622797a911a86fe28a9e69b38243aa362e235be70a8138cbed40bdb96a96
+SIZE (plutoprint-plutobook-v0.5.0_GH0.tar.gz) = 392948
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