git: 18a2d75dd3ba - main - *: Fix WWW with broken anchors-as-comments

From: Tobias Kortkamp <tobik_at_FreeBSD.org>
Date: Tue, 17 Mar 2026 21:29:46 UTC
The branch main has been updated by tobik:

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

commit 18a2d75dd3ba653bd01d394f5b91e5f2847049e9
Author:     Tobias Kortkamp <tobik@FreeBSD.org>
AuthorDate: 2025-04-03 12:15:02 +0000
Commit:     Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2026-03-17 21:29:31 +0000

    *: Fix WWW with broken anchors-as-comments
    
    Case 1: WWW=https://example.com#foo
    
     Here #foo is not part of the value of WWW since # introduces a comment
     whether it's part of a word or not (quoting the word+# makes no
     difference either).  # needs to be escaped:
    
       WWW=https://example.com\#foo
    
    Case 2: WWW=https://example.com #foo
    
     This is probably fallout from when WWW was moved from pkg-descr to
     Makefile.
    
    The anchors still exist on the actual websites too or I removed them.
---
 archivers/R-cran-zip/Makefile          | 2 +-
 archivers/unmass/Makefile              | 2 +-
 audio/festalon/Makefile                | 2 +-
 audio/musiccontrol/Makefile            | 2 +-
 audio/simplemod/Makefile               | 2 +-
 biology/gffread/Makefile               | 2 +-
 deskutils/jlj/Makefile                 | 2 +-
 devel/R-cran-prettycode/Makefile       | 2 +-
 devel/R-cran-rematch2/Makefile         | 2 +-
 devel/cutils/Makefile                  | 2 +-
 devel/dxa65/Makefile                   | 2 +-
 devel/hp48cc/Makefile                  | 2 +-
 devel/libshhmsg/Makefile               | 2 +-
 devel/libshhopt/Makefile               | 2 +-
 devel/libxalloc/Makefile               | 2 +-
 devel/py-trimesh/Makefile              | 2 +-
 devel/svn_load_dirs/Makefile           | 2 +-
 games/bass/Makefile                    | 2 +-
 games/biorythm/Makefile                | 2 +-
 games/fkiss/Makefile                   | 2 +-
 games/libshhcards/Makefile             | 2 +-
 games/quit/Makefile                    | 2 +-
 games/sol/Makefile                     | 2 +-
 java/java-getopt/Makefile              | 2 +-
 lang/slisp/Makefile                    | 2 +-
 mail/exipick/Makefile                  | 2 +-
 mail/listadmin/Makefile                | 2 +-
 mail/s-nail/Makefile                   | 2 +-
 misc/inplace/Makefile                  | 2 +-
 misc/whichman/Makefile                 | 2 +-
 multimedia/ab25/Makefile               | 2 +-
 net-im/pidgin-manualsize/Makefile      | 2 +-
 portuguese/aspell-pt_PT/Makefile       | 2 +-
 portuguese/hunspell/Makefile           | 2 +-
 print/typetools/Makefile               | 2 +-
 science/gbtolib/Makefile               | 2 +-
 science/ukrmol+/Makefile               | 2 +-
 security/openssl-oqsprovider/Makefile  | 2 +-
 security/super/Makefile                | 2 +-
 sysutils/b43-fwcutter/Makefile         | 2 +-
 sysutils/cdircmp/Makefile              | 2 +-
 sysutils/pam_xdg/Makefile              | 2 +-
 sysutils/ssync/Makefile                | 2 +-
 textproc/R-cran-xmlparsedata/Makefile  | 2 +-
 textproc/hhm/Makefile                  | 2 +-
 textproc/html-pretty/Makefile          | 2 +-
 textproc/html-xml-utils/Makefile       | 2 +-
 textproc/kmfl-sil-galatia/Makefile     | 2 +-
 textproc/kmfl-sil-ipa-unicode/Makefile | 2 +-
 textproc/rtfreader/Makefile            | 2 +-
 textproc/textnote/Makefile             | 2 +-
 x11-clocks/wmfishtime/Makefile         | 2 +-
 x11/brisk-menu/Makefile                | 2 +-
 x11/swayr/Makefile                     | 2 +-
 x11/swayrbar/Makefile                  | 2 +-
 55 files changed, 55 insertions(+), 55 deletions(-)

diff --git a/archivers/R-cran-zip/Makefile b/archivers/R-cran-zip/Makefile
index c3786739bbe3..67f6d8f791c0 100644
--- a/archivers/R-cran-zip/Makefile
+++ b/archivers/R-cran-zip/Makefile
@@ -5,7 +5,7 @@ DISTNAME=	${PORTNAME}_${DISTVERSION}
 
 MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Cross-Platform 'zip' Compression
-WWW=		https://github.com/r-lib/zip #readme
+WWW=		https://github.com/r-lib/zip\#readme
 
 LICENSE=	CC0-1.0
 
diff --git a/archivers/unmass/Makefile b/archivers/unmass/Makefile
index d7ada2aa217d..46bb9c00d544 100644
--- a/archivers/unmass/Makefile
+++ b/archivers/unmass/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://mirex.mypage.sk/FILES/ \
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Extract game archives such as wad, dar, mea exe's, and many more
-WWW=		http://mirex.mypage.sk/index.php?selected=1 #Unmass
+WWW=		http://mirex.mypage.sk/index.php?selected=1\#Unmass
 
 LICENSE=	GPLv2
 
diff --git a/audio/festalon/Makefile b/audio/festalon/Makefile
index 95715719fd7a..45ef9fecaeb2 100644
--- a/audio/festalon/Makefile
+++ b/audio/festalon/Makefile
@@ -7,7 +7,7 @@ MASTER_SITES=	http://projects.raphnet.net/festalon/ \
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Command line player for .nsf and .hes audio files
-WWW=		http://projects.raphnet.net/ #festalon
+WWW=		http://projects.raphnet.net/\#festalon
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/audio/musiccontrol/Makefile b/audio/musiccontrol/Makefile
index 52bc4e11a888..459ccda7c8e3 100644
--- a/audio/musiccontrol/Makefile
+++ b/audio/musiccontrol/Makefile
@@ -9,7 +9,7 @@ EXTRACT_ONLY=
 
 MAINTAINER=	xi@borderworlds.dk
 COMMENT=	Advanced music player
-WWW=		https://borderworlds.dk/projects/ #mc
+WWW=		https://borderworlds.dk/projects/\#mc
 
 RUN_DEPENDS=	${LOCALBASE}/bin/mpg123:audio/mpg123 \
 		${LOCALBASE}/bin/ogg123:audio/vorbis-tools \
diff --git a/audio/simplemod/Makefile b/audio/simplemod/Makefile
index 13ba333fb242..09aae519133b 100644
--- a/audio/simplemod/Makefile
+++ b/audio/simplemod/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://borderworlds.dk/projects/sm/
 
 MAINTAINER=	xi@borderworlds.dk
 COMMENT=	Minimalistic module player
-WWW=		https://borderworlds.dk/projects/ #sm
+WWW=		https://borderworlds.dk/projects/\#sm
 
 LIB_DEPENDS=	libmikmod.so:audio/libmikmod
 
diff --git a/biology/gffread/Makefile b/biology/gffread/Makefile
index 4f9fb8666803..ed622c0c85e7 100644
--- a/biology/gffread/Makefile
+++ b/biology/gffread/Makefile
@@ -5,7 +5,7 @@ CATEGORIES=	biology
 
 MAINTAINER=	jwb@FreeBSD.org
 COMMENT=	GFF/GTF format conversions, filtering, FASTA extraction, etc
-WWW=		http://ccb.jhu.edu/software/stringtie/gff.shtml #gffread
+WWW=		http://ccb.jhu.edu/software/stringtie/gff.shtml\#gffread
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
diff --git a/deskutils/jlj/Makefile b/deskutils/jlj/Makefile
index d2e43def6365..ce7209c2b04f 100644
--- a/deskutils/jlj/Makefile
+++ b/deskutils/jlj/Makefile
@@ -7,7 +7,7 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Jerry's command-line LiveJournal.com entry system
-WWW=		http://umlautllama.com/projects/perl/ #jlj
+WWW=		http://umlautllama.com/projects/perl/\#jlj
 
 USES=		shebangfix perl5
 USE_PERL5=	run
diff --git a/devel/R-cran-prettycode/Makefile b/devel/R-cran-prettycode/Makefile
index eeeaf5eaddde..9beddec4b533 100644
--- a/devel/R-cran-prettycode/Makefile
+++ b/devel/R-cran-prettycode/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	${PORTNAME}_${DISTVERSION}
 
 MAINTAINER=	uzsolt@FreeBSD.org
 COMMENT=	Pretty Print R Code in the Terminal
-WWW=		https://github.com/r-lib/prettycode #readme
+WWW=		https://github.com/r-lib/prettycode\#readme
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
diff --git a/devel/R-cran-rematch2/Makefile b/devel/R-cran-rematch2/Makefile
index e1cf51c82fa3..1b674174f71b 100644
--- a/devel/R-cran-rematch2/Makefile
+++ b/devel/R-cran-rematch2/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	${PORTNAME}_${DISTVERSION}
 
 MAINTAINER=	uzsolt@FreeBSD.org
 COMMENT=	Tidy Output from Regular Expression Matching
-WWW=		https://github.com/r-lib/rematch2 #readme
+WWW=		https://github.com/r-lib/rematch2\#readme
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
diff --git a/devel/cutils/Makefile b/devel/cutils/Makefile
index 2d2f6c74050f..47dd789f8c56 100644
--- a/devel/cutils/Makefile
+++ b/devel/cutils/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://www.sigala.it/sandro/files/
 
 MAINTAINER=	schaiba@gmail.com
 COMMENT=	Miscellaneous C programmer's utilities
-WWW=		http://www.sigala.it/sandro/software.php #cutils
+WWW=		http://www.sigala.it/sandro/software.php\#cutils
 
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
diff --git a/devel/dxa65/Makefile b/devel/dxa65/Makefile
index 5ed152b4d885..e49489a3e5a7 100644
--- a/devel/dxa65/Makefile
+++ b/devel/dxa65/Makefile
@@ -7,7 +7,7 @@ PKGNAMESUFFIX=	65
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Disassembler for MOS 6502 and compatible CPUs
-WWW=		http://www.floodgap.com/retrotech/xa #dxa
+WWW=		http://www.floodgap.com/retrotech/xa\#dxa
 
 LICENSE=	GPLv2+
 
diff --git a/devel/hp48cc/Makefile b/devel/hp48cc/Makefile
index c88b9c538c93..7a1b6782c52e 100644
--- a/devel/hp48cc/Makefile
+++ b/devel/hp48cc/Makefile
@@ -7,7 +7,7 @@ MASTER_SITES=	SUNSITE/devel/lang/c \
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	C-like compiler that translates input code to the HP48 RPL language
-WWW=		http://www.sigala.it/sandro/software.php #hp48cc
+WWW=		http://www.sigala.it/sandro/software.php\#hp48cc
 
 LICENSE=	GPLv2
 
diff --git a/devel/libshhmsg/Makefile b/devel/libshhmsg/Makefile
index 26a8a30f59d0..6fe5cb73f222 100644
--- a/devel/libshhmsg/Makefile
+++ b/devel/libshhmsg/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	shhmsg-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library for displaying messages
-WWW=		https://shh.thathost.com/pub-unix/ #shhmsg
+WWW=		https://shh.thathost.com/pub-unix/\#shhmsg
 
 LICENSE=	ART10
 
diff --git a/devel/libshhopt/Makefile b/devel/libshhopt/Makefile
index c8b8a1236b3e..0b09cff38799 100644
--- a/devel/libshhopt/Makefile
+++ b/devel/libshhopt/Makefile
@@ -7,7 +7,7 @@ DISTNAME=	shhopt-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library for parsing command line options
-WWW=		https://shh.thathost.com/pub-unix/ #shhopt
+WWW=		https://shh.thathost.com/pub-unix/\#shhopt
 
 LICENSE=	ART10
 
diff --git a/devel/libxalloc/Makefile b/devel/libxalloc/Makefile
index 0e36a79709c0..aa7067c6c76c 100644
--- a/devel/libxalloc/Makefile
+++ b/devel/libxalloc/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	xalloc-${PORTVERSION}
 
 MAINTAINER=	rodrigo@FreeBSD.org
 COMMENT=	Memory allocation library with error checking
-WWW=		http://shh.thathost.com/pub-unix/ #xalloc
+WWW=		http://shh.thathost.com/pub-unix/\#xalloc
 
 OPTIONS_DEFINE=	DOCS
 
diff --git a/devel/py-trimesh/Makefile b/devel/py-trimesh/Makefile
index 70bca1407374..7c2a04dd7229 100644
--- a/devel/py-trimesh/Makefile
+++ b/devel/py-trimesh/Makefile
@@ -7,7 +7,7 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	db@FreeBSD.org
 COMMENT=	Library for loading and using triangular meshes
-WWW=		https://pypi.org/project/trimesh/ #description
+WWW=		https://pypi.org/project/trimesh/\#description
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
diff --git a/devel/svn_load_dirs/Makefile b/devel/svn_load_dirs/Makefile
index bf1bacacd8cb..bffc623a4267 100644
--- a/devel/svn_load_dirs/Makefile
+++ b/devel/svn_load_dirs/Makefile
@@ -11,7 +11,7 @@ DIST_SUBDIR=	subversion/${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	perl@FreeBSD.org
 COMMENT=	Perl script to load directories into a Subversion repository
-WWW=		https://svn.apache.org/repos/asf/subversion/branches/scons-build-system/www/tools_contrib.html #svn_load_dirs_pl
+WWW=		https://svn.apache.org/repos/asf/subversion/branches/scons-build-system/www/tools_contrib.html\#svn_load_dirs_pl
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
diff --git a/games/bass/Makefile b/games/bass/Makefile
index e721fff2c2dc..b1d4b1e7d3eb 100644
--- a/games/bass/Makefile
+++ b/games/bass/Makefile
@@ -8,7 +8,7 @@ DISTNAME=	bass-cd-1.2
 
 MAINTAINER=	jhale@FreeBSD.org
 COMMENT=	Beneath a Steel Sky: a post-apocalyptic futuristic graphical adventure
-WWW=		https://www.scummvm.org/games/ #games-sky
+WWW=		https://www.scummvm.org/games/\#games-sky:sky
 
 LICENSE=	BASS
 LICENSE_NAME=	Beneath a Steel Sky License
diff --git a/games/biorythm/Makefile b/games/biorythm/Makefile
index 1d64b7601c5b..b77097c644bb 100644
--- a/games/biorythm/Makefile
+++ b/games/biorythm/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://shh.thathost.com/pub-unix/files/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simple biorhythm calculation program
-WWW=		https://shh.thathost.com/pub-unix/ #biorythm
+WWW=		https://shh.thathost.com/pub-unix/\#biorythm
 
 LICENSE=	ART10
 
diff --git a/games/fkiss/Makefile b/games/fkiss/Makefile
index 10efc73ab93b..329e0969885a 100644
--- a/games/fkiss/Makefile
+++ b/games/fkiss/Makefile
@@ -9,7 +9,7 @@ DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Freely enjoy childlike KISS, French-KISS!
-WWW=		http://www2s.biglobe.ne.jp/~yav/soft/index.html #fkiss
+WWW=		http://www2s.biglobe.ne.jp/~yav/soft/index.html\#fkiss
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/games/libshhcards/Makefile b/games/libshhcards/Makefile
index fcd8d193c513..f3392039ccfd 100644
--- a/games/libshhcards/Makefile
+++ b/games/libshhcards/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	shhcards-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library for displaying game cards on X Window System
-WWW=		https://shh.thathost.com/pub-unix/ #shhcards
+WWW=		https://shh.thathost.com/pub-unix/\#shhcards
 
 LICENSE=	ART10
 
diff --git a/games/quit/Makefile b/games/quit/Makefile
index cf8515d0526a..712f3c8a793c 100644
--- a/games/quit/Makefile
+++ b/games/quit/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	https://fukuchi.org/archive/shortshort/
 
 MAINTAINER?=	meta@FreeBSD.org
 COMMENT=	Bicycle with trailers like "sl"
-WWW=		https://fukuchi.org/works/shortshort/ #quit
+WWW=		https://fukuchi.org/en/works/shortshort/quit/
 
 USES=		ncurses
 
diff --git a/games/sol/Makefile b/games/sol/Makefile
index fc0604c29004..e08ea904cc89 100644
--- a/games/sol/Makefile
+++ b/games/sol/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://shh.thathost.com/pub-unix/files/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Solitaire card game for X Window System
-WWW=		https://shh.thathost.com/pub-unix/ #sol
+WWW=		https://shh.thathost.com/pub-unix/\#sol
 
 LICENSE=	ART10
 
diff --git a/java/java-getopt/Makefile b/java/java-getopt/Makefile
index cf851d879e33..03d475a2319e 100644
--- a/java/java-getopt/Makefile
+++ b/java/java-getopt/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://www.urbanophile.com/arenn/hacking/getopt/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Java version of GNU getopt family functions
-WWW=		https://www.urbanophile.com/arenn/hacking/download.html #getopt
+WWW=		https://www.urbanophile.com/arenn/hacking/download.html\#getopt
 
 LICENSE=	LGPL20
 
diff --git a/lang/slisp/Makefile b/lang/slisp/Makefile
index cbfe89b8ea39..be81227298be 100644
--- a/lang/slisp/Makefile
+++ b/lang/slisp/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://www.sigala.it/sandro/files/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Simple Lisp interpreter
-WWW=		http://www.sigala.it/sandro/software.php #slisp
+WWW=		http://www.sigala.it/sandro/software.php\#slisp
 
 LICENSE=	BSD2CLAUSE
 
diff --git a/mail/exipick/Makefile b/mail/exipick/Makefile
index e5f0fac5d6aa..b19e91a0b7e0 100644
--- a/mail/exipick/Makefile
+++ b/mail/exipick/Makefile
@@ -7,7 +7,7 @@ EXTRACT_SUFX=
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Display messages from Exim queue based on a variety of criteria
-WWW=		http://jetmore.org/john/code/ #exipick
+WWW=		http://jetmore.org/john/code/\#exipick
 
 PLIST_FILES=	bin/${PORTNAME}
 
diff --git a/mail/listadmin/Makefile b/mail/listadmin/Makefile
index f046cf1afa58..744766ed8771 100644
--- a/mail/listadmin/Makefile
+++ b/mail/listadmin/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://heim.ifi.uio.no/kjetilho/hacks/
 
 MAINTAINER=	christer.edwards@gmail.com
 COMMENT=	Command-line alternative to Mailman Web interface
-WWW=		http://heim.ifi.uio.no/kjetilho/hacks/ #listadmin
+WWW=		http://heim.ifi.uio.no/kjetilho/hacks/\#listadmin
 
 RUN_DEPENDS=	p5-Text-Reform>=0:textproc/p5-Text-Reform \
 		p5-HTML-Parser>=0:www/p5-HTML-Parser \
diff --git a/mail/s-nail/Makefile b/mail/s-nail/Makefile
index eb8ae430fe5d..10d096df1187 100644
--- a/mail/s-nail/Makefile
+++ b/mail/s-nail/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	https://www.sdaoden.eu/downloads/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Send and receive Internet mail
-WWW=		https://www.sdaoden.eu/code.html #s-mailx
+WWW=		https://www.sdaoden.eu/code.html\#s-mailx
 
 LICENSE=	BSD3CLAUSE BSD4CLAUSE ISCL MIT RFC2104 RSA
 LICENSE_COMB=	multi
diff --git a/misc/inplace/Makefile b/misc/inplace/Makefile
index 4a5e23cb38c4..866279d3f39d 100644
--- a/misc/inplace/Makefile
+++ b/misc/inplace/Makefile
@@ -7,7 +7,7 @@ MASTER_SITES=	ftp://ftp.iDaemons.org/pub/distfiles/ \
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Tool to edit files in-place through given filter commands
-WWW=		https://akinori.org/ #inplace
+WWW=		https://akinori.org/\#inplace
 
 USES=		tar:bzip2 uidfix ruby shebangfix
 
diff --git a/misc/whichman/Makefile b/misc/whichman/Makefile
index 575445092a37..e55b5a084c42 100644
--- a/misc/whichman/Makefile
+++ b/misc/whichman/Makefile
@@ -7,7 +7,7 @@ MASTER_SITES=	http://main.linuxfocus.org/~guido.socher/ \
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Approximate matching utilities to search for manpages and files
-WWW=		http://main.linuxfocus.org/~guido/ #whichman
+WWW=		http://main.linuxfocus.org/~guido/\#whichman
 
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
 
diff --git a/multimedia/ab25/Makefile b/multimedia/ab25/Makefile
index 99bd112e1b32..066461f31853 100644
--- a/multimedia/ab25/Makefile
+++ b/multimedia/ab25/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	LOCAL/hrs
 
 MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Utility for ARIB STD-B25 ECM handling in MPEG2-TS stream
-WWW=		http://www.marumo.ne.jp/db2012_2.htm #13
+WWW=		http://www.marumo.ne.jp/db2012_2.htm\#13
 
 LICENSE=	ISCL
 LICENSE_FILE=	${WRKSRC}/licence.txt
diff --git a/net-im/pidgin-manualsize/Makefile b/net-im/pidgin-manualsize/Makefile
index 26e969ab95e3..7f9ac976839a 100644
--- a/net-im/pidgin-manualsize/Makefile
+++ b/net-im/pidgin-manualsize/Makefile
@@ -9,7 +9,7 @@ DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	eugen@FreeBSD.org
 COMMENT=	Plugin to allow manual resizing of Pidgin's message input area
-WWW=		https://developer.pidgin.im/wiki/ThirdPartyPlugins #Third-PartyPlugins
+WWW=		https://developer.pidgin.im/wiki/ThirdPartyPlugins\#Third-PartyPlugins
 
 LICENSE=	GPLv2
 
diff --git a/portuguese/aspell-pt_PT/Makefile b/portuguese/aspell-pt_PT/Makefile
index d4de7637a8e7..de0b758fbca7 100644
--- a/portuguese/aspell-pt_PT/Makefile
+++ b/portuguese/aspell-pt_PT/Makefile
@@ -6,7 +6,7 @@ PKGNAMEPREFIX?=	pt_PT-
 
 MAINTAINER=	office@FreeBSD.org
 COMMENT=	Aspell Portuguese dictionary
-WWW=		https://natura.di.uminho.pt/wiki/doku.php?id=dicionarios:main#aspell
+WWW=		https://natura.di.uminho.pt/wiki/doku.php?id=dicionarios:main\#aspell
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/Copyright
diff --git a/portuguese/hunspell/Makefile b/portuguese/hunspell/Makefile
index a83201f62470..c964ef325ddb 100644
--- a/portuguese/hunspell/Makefile
+++ b/portuguese/hunspell/Makefile
@@ -10,7 +10,7 @@ DIST_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	office@FreeBSD.org
 COMMENT=	Portuguese hunspell dictionaries
-WWW=		https://natura.di.uminho.pt/wiki/doku.php?id=dicionarios:main #hunspell
+WWW=		https://natura.di.uminho.pt/wiki/doku.php?id=dicionarios:main\#hunspell
 
 # We pick the common one among:
 # - pt_PT is licensed under GPLv2, LGPL21 and MPL11.
diff --git a/print/typetools/Makefile b/print/typetools/Makefile
index 2fccea1c565d..8440ba40f890 100644
--- a/print/typetools/Makefile
+++ b/print/typetools/Makefile
@@ -7,7 +7,7 @@ DISTNAME=	lcdf-${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Tools for manipulating fonts
-WWW=		https://www.lcdf.org/type/ #typetools
+WWW=		https://www.lcdf.org/type/\#typetools
 
 LICENSE=	GPLv2
 
diff --git a/science/gbtolib/Makefile b/science/gbtolib/Makefile
index 8450c7e98d09..56a77b3578ef 100644
--- a/science/gbtolib/Makefile
+++ b/science/gbtolib/Makefile
@@ -7,7 +7,7 @@ DISTNAME=	GBTOLib-${DISTVERSION}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	High-performance library for evaluation of molecular integrals
-WWW=		https://zenodo.org/record/5798035 #.Yo1sazXMKV4
+WWW=		https://zenodo.org/record/5798035
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/science/ukrmol+/Makefile b/science/ukrmol+/Makefile
index 6d088907cf30..0301728aabbe 100644
--- a/science/ukrmol+/Makefile
+++ b/science/ukrmol+/Makefile
@@ -9,7 +9,7 @@ DISTFILES=	ukrmol-out-${DISTVERSION}${EXTRACT_SUFX}:out \
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Code to compute electron and positron scattering from molecules
-WWW=		https://zenodo.org/record/5799134 #.Yo1lCknMKV4
+WWW=		https://zenodo.org/record/5799134
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/security/openssl-oqsprovider/Makefile b/security/openssl-oqsprovider/Makefile
index df5effc4a7c7..6ef6548b880f 100644
--- a/security/openssl-oqsprovider/Makefile
+++ b/security/openssl-oqsprovider/Makefile
@@ -5,7 +5,7 @@ PKGNAMEPREFIX=	openssl-
 
 MAINTAINER=	brnrd@FreeBSD.org
 COMMENT=	quantum-resistant cryptography provider for OpenSSL
-WWW=		https://openquantumsafe.org/applications/tls.html#oqs-openssl-provider
+WWW=		https://openquantumsafe.org/applications/tls.html\#oqs-openssl-provider
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
diff --git a/security/super/Makefile b/security/super/Makefile
index ba8349685a82..51aace326f6d 100644
--- a/security/super/Makefile
+++ b/security/super/Makefile
@@ -8,7 +8,7 @@ EXTRACT_SUFX=	-tar.gz
 
 MAINTAINER=	egypcio@FreeBSD.org
 COMMENT=	Allow others to run commands as root
-WWW=		http://www.ucolick.org/~will/ #super
+WWW=		http://www.ucolick.org/~will/\#super
 
 LICENSE=	ART10 GPLv1+
 LICENSE_COMB=	dual
diff --git a/sysutils/b43-fwcutter/Makefile b/sysutils/b43-fwcutter/Makefile
index c280f5a761ce..4f32761ab692 100644
--- a/sysutils/b43-fwcutter/Makefile
+++ b/sysutils/b43-fwcutter/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	https://bues.ch/b43/fwcutter/
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Firmware extractor for Broadcom wireless adapters
-WWW=		https://bues.ch/cms/hacking/misc.html #linux_b43_driver_firmware_tools
+WWW=		https://bues.ch/cms/hacking/misc.html\#linux_b43_driver_firmware_tools
 
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/sysutils/cdircmp/Makefile b/sysutils/cdircmp/Makefile
index b5678be1ffcc..e8f08d930a4f 100644
--- a/sysutils/cdircmp/Makefile
+++ b/sysutils/cdircmp/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	LOCAL/ehaupt
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Compare directories and select files to copy
-WWW=		http://home.hccnet.nl/paul.schuurmans/linux/index.html #xdircmp
+WWW=		http://home.hccnet.nl/paul.schuurmans/linux/index.html\#xdircmp
 
 LICENSE=	GPLv2
 
diff --git a/sysutils/pam_xdg/Makefile b/sysutils/pam_xdg/Makefile
index efc188fa0d9a..87fbd26a5229 100644
--- a/sysutils/pam_xdg/Makefile
+++ b/sysutils/pam_xdg/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	https://ftp.sdaoden.eu/
 
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	PAM module to manage XDG Base Directories
-WWW=		https://www.sdaoden.eu/code.html#s-toolbox
+WWW=		https://www.sdaoden.eu/code.html\#s-toolbox
 
 LICENSE=	ISCL
 
diff --git a/sysutils/ssync/Makefile b/sysutils/ssync/Makefile
index 3a6d4e5b6f31..b18bc8446e7e 100644
--- a/sysutils/ssync/Makefile
+++ b/sysutils/ssync/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://linuxfocus.org/~guido/
 
 MAINTAINER=	samm@FreeBSD.org
 COMMENT=	Minimalistic tool for keeping filesystems in synchronization
-WWW=		http://linuxfocus.org/~guido/endangered_software.html #ssync
+WWW=		http://linuxfocus.org/~guido/endangered_software.html\#ssync
 
 USES=		gmake
 
diff --git a/textproc/R-cran-xmlparsedata/Makefile b/textproc/R-cran-xmlparsedata/Makefile
index 253057c7babd..07fd8e4b74a6 100644
--- a/textproc/R-cran-xmlparsedata/Makefile
+++ b/textproc/R-cran-xmlparsedata/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	${PORTNAME}_${DISTVERSION}
 
 MAINTAINER=	uzsolt@FreeBSD.org
 COMMENT=	Parse Data of 'R' Code as an 'XML' Tree
-WWW=		https://github.com/r-lib/xmlparsedata #readme
+WWW=		https://github.com/r-lib/xmlparsedata\#readme
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
diff --git a/textproc/hhm/Makefile b/textproc/hhm/Makefile
index 55836522a4ad..81ab484c0acc 100644
--- a/textproc/hhm/Makefile
+++ b/textproc/hhm/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	SAVANNAH
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	HTML Help Maker
-WWW=		http://bonedaddy.net/pabs3/code/ #hhm
+WWW=		http://bonedaddy.net/pabs3/code/\#hhm
 
 LIB_DEPENDS=	liblzxcomp.so:archivers/liblzxcomp
 
diff --git a/textproc/html-pretty/Makefile b/textproc/html-pretty/Makefile
index 83ef1a9f6bb8..f146bd686281 100644
--- a/textproc/html-pretty/Makefile
+++ b/textproc/html-pretty/Makefile
@@ -6,7 +6,7 @@ DISTNAME=	htmlpty-${PORTVERSION}
 
 MAINTAINER=	atanubiswas484@gmail.com
 COMMENT=	HTML and SGML prettyprinter and text-to-HTML/SGML converter
-WWW=		http://www.math.utah.edu/~beebe/software/html-sgml-tools.html #html-pretty
+WWW=		http://www.math.utah.edu/~beebe/software/html-sgml-tools.html\#html-pretty
 
 LICENSE=	PD
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/textproc/html-xml-utils/Makefile b/textproc/html-xml-utils/Makefile
index 6f5ed3f6128c..bbaa2ca77d98 100644
--- a/textproc/html-xml-utils/Makefile
+++ b/textproc/html-xml-utils/Makefile
@@ -5,7 +5,7 @@ MASTER_SITES=	https://www.w3.org/Tools/HTML-XML-utils/
 
 MAINTAINER=	takefu@airport.fm
 COMMENT=	Utilities for manipulating HTML and XML files
-WWW=		https://www.w3.org/Status.html#HTML-XML-utils
+WWW=		https://www.w3.org/Status.html\#HTML-XML-utils
 
 LICENSE=	W3C
 LICENSE_GROUPS=	FSF GPL OSI
diff --git a/textproc/kmfl-sil-galatia/Makefile b/textproc/kmfl-sil-galatia/Makefile
index 3d6197fd150a..77bd52b4278b 100644
--- a/textproc/kmfl-sil-galatia/Makefile
+++ b/textproc/kmfl-sil-galatia/Makefile
@@ -9,7 +9,7 @@ DIST_SUBDIR=	kmfl
 
 MAINTAINER=	nikola.lecic@anthesphoria.net
 COMMENT=	KMFL Unicode keyboard for typesetting Ancient Greek
-WWW=		http://scripts.sil.org/KeymanKeyboardLinks #e9f80714
+WWW=		http://scripts.sil.org/KeymanKeyboardLinks\#e9f80714
 
 RUN_DEPENDS=	kmflcomp:textproc/kmflcomp
 
diff --git a/textproc/kmfl-sil-ipa-unicode/Makefile b/textproc/kmfl-sil-ipa-unicode/Makefile
index e07a26f08c0e..90e90cc7c3f7 100644
--- a/textproc/kmfl-sil-ipa-unicode/Makefile
+++ b/textproc/kmfl-sil-ipa-unicode/Makefile
@@ -11,7 +11,7 @@ EXTRACT_ONLY=	IPAUni_Src12.zip
 
 MAINTAINER=	nikola.lecic@anthesphoria.net
 COMMENT=	IPA Unicode 5.1 mnemonic keyboard for KMFL IMEngine
-WWW=		http://scripts.sil.org/UniIPAKeyboard #dee994f5
+WWW=		http://scripts.sil.org/UniIPAKeyboard\#dee994f5
 
 RUN_DEPENDS=	kmflcomp:textproc/kmflcomp
 
diff --git a/textproc/rtfreader/Makefile b/textproc/rtfreader/Makefile
index 7a333a076517..488b5dba9988 100644
--- a/textproc/rtfreader/Makefile
+++ b/textproc/rtfreader/Makefile
@@ -7,7 +7,7 @@ DISTNAME=	ms-rtf
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Portable application/ms-rtf parser
-WWW=		http://www.fiction.net/blong/programs/ #rtf
+WWW=		http://www.fiction.net/blong/programs/\#rtf
 
 ALL_TARGET=	rtfreader
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
diff --git a/textproc/textnote/Makefile b/textproc/textnote/Makefile
index 015bc2dca4ff..319381ee4586 100644
--- a/textproc/textnote/Makefile
+++ b/textproc/textnote/Makefile
@@ -6,7 +6,7 @@ CATEGORIES=	textproc
 
 MAINTAINER=	0mp@FreeBSD.org
 COMMENT=	Tool for creating and organizing daily notes on the command line
-WWW=		https://github.com/dkaslovsky/textnote #installation
+WWW=		https://github.com/dkaslovsky/textnote
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
diff --git a/x11-clocks/wmfishtime/Makefile b/x11-clocks/wmfishtime/Makefile
index 382b654943cd..da8573ef8924 100644
--- a/x11-clocks/wmfishtime/Makefile
+++ b/x11-clocks/wmfishtime/Makefile
@@ -7,7 +7,7 @@ MASTER_SITES=	http://www.ne.jp/asahi/linux/timecop/software/ \
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Time/date applet for WindowMaker with fishes swimming around
-WWW=		http://www.ne.jp/asahi/linux/timecop/ #wmfishtime
+WWW=		http://www.ne.jp/asahi/linux/timecop/\#wmfishtime
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/x11/brisk-menu/Makefile b/x11/brisk-menu/Makefile
index 6fb8240ee3cd..92ae21609426 100644
--- a/x11/brisk-menu/Makefile
+++ b/x11/brisk-menu/Makefile
@@ -6,7 +6,7 @@ CATEGORIES=	x11
 
 MAINTAINER=	ericbsd@FreeBSD.org
 COMMENT=	Brisk Menu is an efficient menu for the MATE Desktop
-WWW=		https://github.com/solus-project/brisk-menu #brisk-menu
+WWW=		https://github.com/solus-project/brisk-menu\#brisk-menu
 
 LICENSE=	GPLv2+ CC-BY-SA-4.0
 LICENSE_COMB=	multi
diff --git a/x11/swayr/Makefile b/x11/swayr/Makefile
index 96e62385b130..2fd2ff1dd24b 100644
--- a/x11/swayr/Makefile
+++ b/x11/swayr/Makefile
@@ -8,7 +8,7 @@ DISTFILES=	${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT}
 
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Urgent-first/LRU window switcher for sway
-WWW=		https://sr.ht/~tsdh/swayr/#swayr
+WWW=		https://sr.ht/~tsdh/swayr/\#swayr
 
 LICENSE=	GPLv3+
 LICENSE_FILE=	${_LICENSE_STORE}/GPLv3
diff --git a/x11/swayrbar/Makefile b/x11/swayrbar/Makefile
index 5f9f6e6afbf8..2f0a3324c989 100644
--- a/x11/swayrbar/Makefile
+++ b/x11/swayrbar/Makefile
@@ -8,7 +8,7 @@ DISTFILES=	${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT}
 
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	status_command for swaybar
-WWW=		https://sr.ht/~tsdh/swayr/#swayrbar
+WWW=		https://sr.ht/~tsdh/swayr/\#swayrbar
 
 LICENSE=	GPLv3+
 LICENSE_FILE=	${_LICENSE_STORE}/GPLv3