diff --git a/www/netsurf/Makefile b/www/netsurf/Makefile index 935e86570321..aef7f162489d 100644 --- a/www/netsurf/Makefile +++ b/www/netsurf/Makefile @@ -1,92 +1,78 @@ PORTNAME= netsurf -PORTVERSION= 3.10 -PORTREVISION= 10 +PORTVERSION= 3.11 CATEGORIES= www MASTER_SITES= http://download.netsurf-browser.org/netsurf/releases/source/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= nc@FreeBSD.org COMMENT= Lightweight web browser WWW= https://www.netsurf-browser.org/ LICENSE= GPLv2 MIT LICENSE_COMB= multi BUILD_DEPENDS= duk:lang/duktape \ nsgenbind:devel/nsgenbind \ p5-HTML-Parser>=3.72:www/p5-HTML-Parser \ xxd:editors/vim LIB_DEPENDS= libcss.so:textproc/libcss \ libcurl.so:ftp/curl \ libdom.so:www/libdom \ libexpat.so:textproc/expat2 \ libhubbub.so:www/libhubbub \ libnsbmp.so:graphics/libnsbmp \ libnsgif.so:graphics/libnsgif \ libnspsl.so:dns/libnspsl \ libnsutils.so:devel/libnsutils \ libparserutils.so:devel/libparserutils \ libpng.so:graphics/png \ libutf8proc.so:textproc/utf8proc \ libwapcaplet.so:textproc/libwapcaplet \ libwebp.so:graphics/webp RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \ duk:lang/duktape USES= bison cpe desktop-file-utils gmake gnome iconv:translit jpeg \ localbase pkgconfig shebangfix ssl CPE_VENDOR= ${PORTNAME}-browser USE_GNOME= cairo glib20 gtk30 librsvg2 -SHEBANG_FILES= utils/split-messages.pl -perl_CMD= ${PERL} - MAKE_ARGS= CC="${CC}" \ CCOPT="" \ HOST="${OPSYS}" \ HOST_CC="${CC}" \ OPTCFLAGS="${CFLAGS}" \ Q="" \ TARGET="gtk3" \ WARNFLAGS="" .if defined(WITH_DEBUG) MAKE_ARGS+= STRIP="true" .endif MAKE_ENV+= COMPONENT_TYPE="lib-shared" \ FLEX="${LOCALBASE}/bin/flex" ALL_TARGET= #empty CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} -lssl -lcrypto WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} post-patch: @${REINPLACE_CMD} '/CFLAGS/d' \ ${WRKSRC}//Makefile.defaults @${CP} ${FILESDIR}/buildui.pl ${WRKSRC}/utils/ do-configure: @${CP} ${FILESDIR}/Makefile.config ${WRKSRC} post-install: cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf netsurf-gtk3 \ netsurf-gtk .for d in applications pixmaps ${MKDIR} ${STAGEDIR}${PREFIX}/share/${d} .endfor - ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/deoptions.gtk3.ui \ - ${STAGEDIR}${PREFIX}/share/netsurf - ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/enoptions.gtk3.ui \ - ${STAGEDIR}${PREFIX}/share/netsurf - ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/froptions.gtk3.ui \ - ${STAGEDIR}${PREFIX}/share/netsurf - ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/itoptions.gtk3.ui \ - ${STAGEDIR}${PREFIX}/share/netsurf - ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/nloptions.gtk3.ui \ - ${STAGEDIR}${PREFIX}/share/netsurf ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/netsurf-gtk.desktop \ ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/frontends/gtk/res/netsurf.xpm \ ${STAGEDIR}${PREFIX}/share/pixmaps .include diff --git a/www/netsurf/distinfo b/www/netsurf/distinfo index 7f6058cb2772..194707db146e 100644 --- a/www/netsurf/distinfo +++ b/www/netsurf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1591232159 -SHA256 (netsurf-3.10-src.tar.gz) = 36484429e193614685c2ff246f55bd0a6dddf31a018bee45e0d1f7c28851995e -SIZE (netsurf-3.10-src.tar.gz) = 4084480 +TIMESTAMP = 1708105641 +SHA256 (netsurf-3.11-src.tar.gz) = c28a626aefee428d053b13f88b5c440922245976522d12eaf137cfd32d201cb2 +SIZE (netsurf-3.11-src.tar.gz) = 4311767 diff --git a/www/netsurf/files/patch-Makefile b/www/netsurf/files/patch-Makefile index e976dd322efd..ded7e96b245e 100644 --- a/www/netsurf/files/patch-Makefile +++ b/www/netsurf/files/patch-Makefile @@ -1,58 +1,27 @@ ---- Makefile.orig 2020-05-24 20:55:29 UTC +--- Makefile.orig 2023-12-28 00:26:04 UTC +++ Makefile -@@ -484,16 +484,6 @@ ifneq ($(CC_MAJOR),2) +@@ -105,16 +105,6 @@ endif COMMON_WARNFLAGS += -Wno-unused-parameter endif -# deal with lots of unwanted warnings from javascript -ifeq ($(call cc_ver_ge,4,6),1) - COMMON_WARNFLAGS += -Wno-unused-but-set-variable -endif - -# Implicit fallthrough warnings suppressed by comment -ifeq ($(call cc_ver_ge,7,1),1) - COMMON_WARNFLAGS += -Wimplicit-fallthrough=3 -endif - # deal with chaging warning flags for different platforms ifeq ($(HOST),OpenBSD) # OpenBSD headers are not compatible with redundant declaration warning -@@ -547,7 +537,6 @@ ifeq ($(HOST),mint) +@@ -168,7 +158,6 @@ endif else $(eval $(call pkg_config_find_and_add_enabled,CURL,libcurl,Curl)) endif -$(eval $(call pkg_config_find_and_add_enabled,OPENSSL,openssl,OpenSSL)) $(eval $(call pkg_config_find_and_add_enabled,UTF8PROC,libutf8proc,utf8)) - $(eval $(call pkg_config_find_and_add_enabled,WEBP,libwebp,WEBP)) -@@ -680,14 +669,21 @@ $$(MESSAGES_TARGET)/$(1)/Messages: resources/FatMessag - $$(Q)$$(SPLIT_MESSAGES) -l $(1) -p $$(MESSAGES_FILTER) -f messages -o $$@ -z $$< - - CLEAN_MESSAGES += $$(MESSAGES_TARGET)/$(1)/Messages -+CLEAN_MESSAGES += $$(MESSAGES_TARGET)/$(1)options.gtk3.ui - MESSAGES += $$(MESSAGES_TARGET)/$(1)/Messages - - endef - -+buildui: -+ @echo "BUILDUI: options ui for each language in resources/FatMessages" -+ @$(PERL) utils/buildui.pl resources/FatMessages frontends/gtk/res/options.gtk3.ui $(MESSAGES_TARGET) options.gtk3.ui -+ - # generate the message file rules - $(eval $(foreach LANG,$(MESSAGES_LANGUAGES), \ - $(call split_messages,$(LANG)))) - -+MESSAGES += buildui -+ - clean-messages: - $(VQ)echo " CLEAN: $(CLEAN_MESSAGES)" - $(Q)$(RM) $(CLEAN_MESSAGES) -@@ -710,7 +706,7 @@ OBJECTS := $(sort $(addprefix $(OBJROOT)/,$(subst /,_, - # Include directory flags - IFLAGS = $(addprefix -I,$(INCLUDE_DIRS)) - --$(EXETARGET): $(OBJECTS) $(RESOURCES) $(MESSAGES) -+$(EXETARGET): $(OBJECTS) $(RESOURCES) $(MESSAGES) - $(VQ)echo " LINK: $(EXETARGET)" - ifneq ($(TARGET)$(SUBTARGET),riscos-elf) - $(Q)$(CC) -o $(EXETARGET) $(OBJECTS) $(LDFLAGS) + $(eval $(call pkg_config_find_and_add_enabled,JPEGXL,libjxl,JPEGXL)) diff --git a/www/netsurf/pkg-plist b/www/netsurf/pkg-plist index 53d10f0688f5..ecb67d4920a5 100644 --- a/www/netsurf/pkg-plist +++ b/www/netsurf/pkg-plist @@ -1,72 +1,71 @@ bin/netsurf-gtk bin/netsurf-gtk3 share/applications/netsurf-gtk.desktop %%DATADIR%%/Messages %%DATADIR%%/SearchEngines %%DATADIR%%/adblock.css %%DATADIR%%/ca-bundle.txt -%%DATADIR%%/cookies.gtk3.ui +%%DATADIR%%/cookies.ui %%DATADIR%%/credits.html %%DATADIR%%/de/Messages %%DATADIR%%/de/welcome.html %%DATADIR%%/default.css %%DATADIR%%/default.ico -%%DATADIR%%/downloads.gtk3.ui +%%DATADIR%%/downloads.ui %%DATADIR%%/en/Messages %%DATADIR%%/en/credits.html %%DATADIR%%/en/licence.html %%DATADIR%%/en/welcome.html %%DATADIR%%/favicon.png %%DATADIR%%/fr/Messages -%%DATADIR%%/globalhistory.gtk3.ui -%%DATADIR%%/hotlist.gtk3.ui +%%DATADIR%%/globalhistory.ui +%%DATADIR%%/hotlist.ui %%DATADIR%%/icons/arrow-l.png %%DATADIR%%/icons/content.png %%DATADIR%%/icons/directory.png %%DATADIR%%/icons/directory2.png %%DATADIR%%/icons/hotlist-add.png %%DATADIR%%/icons/hotlist-rmv.png %%DATADIR%%/icons/local-history.png %%DATADIR%%/icons/search.png %%DATADIR%%/icons/show-cookie.png %%DATADIR%%/internal.css %%DATADIR%%/it/Messages %%DATADIR%%/it/credits.html %%DATADIR%%/it/licence.html %%DATADIR%%/it/welcome.html %%DATADIR%%/ja/welcome.html %%DATADIR%%/languages %%DATADIR%%/licence.html -%%DATADIR%%/localhistory.gtk3.ui +%%DATADIR%%/localhistory.ui %%DATADIR%%/netsurf-16x16.xpm -%%DATADIR%%/netsurf.gtk3.ui %%DATADIR%%/netsurf.png +%%DATADIR%%/netsurf.ui %%DATADIR%%/netsurf.xpm %%DATADIR%%/nl/Messages %%DATADIR%%/nl/credits.html %%DATADIR%%/nl/licence.html %%DATADIR%%/nl/welcome.html -%%DATADIR%%/options.gtk3.ui -%%DATADIR%%/deoptions.gtk3.ui -%%DATADIR%%/enoptions.gtk3.ui -%%DATADIR%%/froptions.gtk3.ui -%%DATADIR%%/itoptions.gtk3.ui -%%DATADIR%%/nloptions.gtk3.ui -%%DATADIR%%/pageinfo.gtk3.ui -%%DATADIR%%/password.gtk3.ui +%%DATADIR%%/options.ui +%%DATADIR%%/pageinfo.ui +%%DATADIR%%/password.ui %%DATADIR%%/quirks.css -%%DATADIR%%/tabcontents.gtk3.ui +%%DATADIR%%/tabcontents.ui %%DATADIR%%/throbber/throbber0.png %%DATADIR%%/throbber/throbber1.png %%DATADIR%%/throbber/throbber2.png %%DATADIR%%/throbber/throbber3.png %%DATADIR%%/throbber/throbber4.png %%DATADIR%%/throbber/throbber5.png %%DATADIR%%/throbber/throbber6.png %%DATADIR%%/throbber/throbber7.png %%DATADIR%%/throbber/throbber8.png -%%DATADIR%%/toolbar.gtk3.ui -%%DATADIR%%/viewdata.gtk3.ui -%%DATADIR%%/warning.gtk3.ui +%%DATADIR%%/toolbar.ui +%%DATADIR%%/viewdata.ui +%%DATADIR%%/warning.ui %%DATADIR%%/welcome.html +%%DATADIR%%/zh_CN/Messages +%%DATADIR%%/zh_CN/credits.html +%%DATADIR%%/zh_CN/licence.html +%%DATADIR%%/zh_CN/welcome.html share/pixmaps/netsurf.xpm