pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

dillo: Import dillo-3.2.0nb3 as wip/dillo



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Tue Jan 6 17:44:30 2026 +0100
Changeset:	b784451dccabf24d049ec0442254126e7e71f245

Added Files:
	dillo/DESCR
	dillo/Makefile
	dillo/PLIST
	dillo/distinfo
	dillo/options.mk
	dillo/patches/patch-configure.ac
	dillo/patches/patch-dillo-install-hyphenation

Log Message:
dillo: Import dillo-3.2.0nb3 as wip/dillo

Dillo is a web browser designed to be fast, use few resources and
support slow and unreliable networks on resource-constrained machines.
It can load local and remote files via HTTP, HTTPS and FTP.
Other protocols like Gemini, Gopher, IPFS and others are available as
plugins.

Dillo supports a subset of HTML 4.01 and CSS 2.1 but it doesn't support
JavaScript and only implements some elements of HTML 5 and CSS 3.
It also renders plain text documents and images in PNG, JPG and GIF
formats.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b784451dccabf24d049ec0442254126e7e71f245

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 dillo/DESCR                                   | 10 ++++++
 dillo/Makefile                                | 51 +++++++++++++++++++++++++++
 dillo/PLIST                                   | 25 +++++++++++++
 dillo/distinfo                                |  7 ++++
 dillo/options.mk                              | 35 ++++++++++++++++++
 dillo/patches/patch-configure.ac              | 38 ++++++++++++++++++++
 dillo/patches/patch-dillo-install-hyphenation | 15 ++++++++
 7 files changed, 181 insertions(+)

diffs:
diff --git a/dillo/DESCR b/dillo/DESCR
new file mode 100644
index 0000000000..8d6b0a5c7f
--- /dev/null
+++ b/dillo/DESCR
@@ -0,0 +1,10 @@
+Dillo is a web browser designed to be fast, use few resources and
+support slow and unreliable networks on resource-constrained machines.
+It can load local and remote files via HTTP, HTTPS and FTP.
+Other protocols like Gemini, Gopher, IPFS and others are available as
+plugins.
+
+Dillo supports a subset of HTML 4.01 and CSS 2.1 but it doesn't support
+JavaScript and only implements some elements of HTML 5 and CSS 3.
+It also renders plain text documents and images in PNG, JPG and GIF
+formats.
diff --git a/dillo/Makefile b/dillo/Makefile
new file mode 100644
index 0000000000..48c54df9d0
--- /dev/null
+++ b/dillo/Makefile
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.97 2025/12/01 08:09:06 wiz Exp $
+
+DISTNAME=	dillo-3.2.0
+PKGREVISION=	3
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_GITHUB:=dillo-browser/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://dillo-browser.org/
+COMMENT=	Very small and fast graphical web-browser
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=		c c++
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR}
+USE_FEATURES+=		snprintf vsnprintf
+USE_TOOLS+=		aclocal autoconf automake autoreconf gmake perl:run
+
+DEPENDS+=	wget-[0-9]*:../../net/wget
+
+REPLACE_PERL+=	dillo-install-hyphenation
+
+PKG_SYSCONFSUBDIR=	dillo
+EGDIR=			${PREFIX}/share/examples/dillo
+CONF_FILES=		${EGDIR}/dillorc ${PKG_SYSCONFDIR}/dillorc
+CONF_FILES+=		${EGDIR}/dpidrc ${PKG_SYSCONFDIR}/dpidrc
+CONF_FILES+=		${EGDIR}/keysrc ${PKG_SYSCONFDIR}/keysrc
+CONF_FILES+=		${EGDIR}/domainrc ${PKG_SYSCONFDIR}/domainrc
+
+INSTALLATION_DIRS=	share/doc/dillo ${EGDIR}
+
+INSTALL_MAKE_FLAGS+=	sysconfdir=${EGDIR}
+
+.include "options.mk"
+
+pre-configure:
+	cd ${WRKSRC} && autoreconf -fiv
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/dillo
+	${INSTALL_DATA} ${WRKSRC}/doc/README ${DESTDIR}${PREFIX}/share/doc/dillo
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../x11/fltk/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/dillo/PLIST b/dillo/PLIST
new file mode 100644
index 0000000000..eaa47b0192
--- /dev/null
+++ b/dillo/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.21 2025/01/31 14:33:17 micha Exp $
+bin/dillo
+bin/dillo-install-hyphenation
+bin/dpid
+bin/dpidc
+lib/dillo/dpi/bookmarks/bookmarks.dpi
+lib/dillo/dpi/cookies/cookies.dpi
+lib/dillo/dpi/datauri/datauri.filter.dpi
+lib/dillo/dpi/downloads/downloads.dpi
+lib/dillo/dpi/file/file.dpi
+lib/dillo/dpi/ftp/ftp.filter.dpi
+lib/dillo/dpi/hello/hello.filter.dpi
+lib/dillo/dpi/vsource/vsource.filter.dpi
+man/man1/dillo.1
+share/applications/dillo.desktop
+share/doc/dillo/Cookies.txt
+share/doc/dillo/README
+share/doc/dillo/user_help.html
+share/examples/dillo/dillorc
+share/examples/dillo/domainrc
+share/examples/dillo/dpidrc
+share/examples/dillo/hsts_preload
+share/examples/dillo/keysrc
+share/icons/hicolor/128x128/apps/dillo.png
+share/icons/hicolor/48x48/apps/dillo.png
diff --git a/dillo/distinfo b/dillo/distinfo
new file mode 100644
index 0000000000..68c0a31aec
--- /dev/null
+++ b/dillo/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.46 2025/01/31 14:33:17 micha Exp $
+
+BLAKE2s (dillo-3.2.0.tar.gz) = 5316ef138218567801d7ed9491f69c8f30393f91f976ee6980ca9f47e764a2e1
+SHA512 (dillo-3.2.0.tar.gz) = ff6aa64c79a5dac3bd5152e7501a20c129924c20df712003fc2cd0f18ab55886b0959aea4765f3c893e450e9f95781c10d393108cae8240804d4740f8121f066
+Size (dillo-3.2.0.tar.gz) = 1459110 bytes
+SHA1 (patch-configure.ac) = 9e3e7297b559dc70a3b1b61416bf1e97eeb23ca0
+SHA1 (patch-dillo-install-hyphenation) = 27f3a481da421a691c4c39093f010c01abee2515
diff --git a/dillo/options.mk b/dillo/options.mk
new file mode 100644
index 0000000000..3372c9db2d
--- /dev/null
+++ b/dillo/options.mk
@@ -0,0 +1,35 @@
+# $NetBSD: options.mk,v 1.9 2025/01/31 14:33:17 micha Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.dillo
+PKG_SUPPORTED_OPTIONS=	inet6 tls libwebp
+PKG_SUGGESTED_OPTIONS=	inet6 tls libwebp
+
+.include "../../mk/bsd.options.mk"
+
+# Support for IPv6 protocol
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=	--enable-ipv6
+.else
+CONFIGURE_ARGS+=	--disable-ipv6
+.endif
+
+# Support for Transport Layer Security (TLS)
+.if !empty(PKG_OPTIONS:Mtls)
+CONFIGURE_ARGS+=	--enable-tls
+CONFIGURE_ARGS+=	--disable-mbedtls
+CONFIGURE_ARGS+=	--enable-openssl
+CONFIGURE_ARGS+=	--with-ca-certs-dir=${SSLCERTS}
+LIBS+=			-lssl
+.include "../../security/openssl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-tls
+CONFIGURE_ARGS+=	--disable-mbedtls
+CONFIGURE_ARGS+=	--disable-openssl
+.endif
+
+.if !empty(PKG_OPTIONS:Mlibwebp)
+CONFIGURE_ARGS+=	--enable-webp
+.include "../../graphics/libwebp/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-webp
+.endif
diff --git a/dillo/patches/patch-configure.ac b/dillo/patches/patch-configure.ac
new file mode 100644
index 0000000000..3d83d12150
--- /dev/null
+++ b/dillo/patches/patch-configure.ac
@@ -0,0 +1,38 @@
+$NetBSD: patch-configure.ac,v 1.1 2025/01/31 14:33:17 micha Exp $
+
+Use FLTK 1.4 for glyph substitution on X11 platform.
+
+--- configure.ac.orig	2025-01-18 10:51:30.000000000 +0000
++++ configure.ac
+@@ -211,24 +211,24 @@ fi
+ 
+ 
+ dnl -------------------------
+-dnl Test for FLTK 1.3 library
++dnl Test for FLTK 1.4 library
+ dnl -------------------------
+ dnl
+ dnl For debugging and to be user friendly
+ AC_PATH_PROG(FLTK_CONFIG,fltk-config)
+-AC_MSG_CHECKING([FLTK 1.3])
++AC_MSG_CHECKING([FLTK 1.4])
+ fltk_version="`$FLTK_CONFIG --version 2>/dev/null`"
+ case $fltk_version in
+-  1.3.*) AC_MSG_RESULT(yes)
++  1.4.*) AC_MSG_RESULT(yes)
+          LIBFLTK_CXXFLAGS=`$FLTK_CONFIG --cxxflags`
+          LIBFLTK_CFLAGS=`$FLTK_CONFIG --cflags`
+          LIBFLTK_LIBS=`$FLTK_CONFIG --ldflags`;;
+-  1.4.*) AC_MSG_RESULT(no)
+-         AC_MSG_ERROR([FLTK $fltk_version not supported yet; use FLTK 1.3]);;
++  1.5.*) AC_MSG_RESULT(no)
++         AC_MSG_ERROR([FLTK $fltk_version not supported yet; use FLTK 1.4]);;
+   ?*)    AC_MSG_RESULT(no)
+-         AC_MSG_ERROR(FLTK 1.3 required; version found: $fltk_version);;
++         AC_MSG_ERROR(FLTK 1.4 required; version found: $fltk_version);;
+   *)     AC_MSG_RESULT(no)
+-         AC_MSG_ERROR(FLTK 1.3 required; fltk-config not found)
++         AC_MSG_ERROR(FLTK 1.4 required; fltk-config not found)
+ esac
+ 
+ dnl -----------------------------------
diff --git a/dillo/patches/patch-dillo-install-hyphenation b/dillo/patches/patch-dillo-install-hyphenation
new file mode 100644
index 0000000000..9f30f1a96b
--- /dev/null
+++ b/dillo/patches/patch-dillo-install-hyphenation
@@ -0,0 +1,15 @@
+$NetBSD: patch-dillo-install-hyphenation,v 1.1 2025/01/31 14:33:17 micha Exp $
+
+Unimplemented: POSIX::tmpnam():
+  use File::Temp instead at /usr/pkg/bin/dillo-install-hyphenation line 110.
+
+--- dillo-install-hyphenation.orig	2024-05-04 19:53:29.000000000 +0000
++++ dillo-install-hyphenation
+@@ -1,5 +1,6 @@
+ #!/usr/bin/env perl
+-use POSIX;
++#use POSIX;
++use File::Temp;
+ use File::Basename;
+ use Net::FTP;
+ use Getopt::Long;


Home | Main Index | Thread Index | Old Index