freebsd-ports/sysutils/xmbmon/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

71 lines
1.9 KiB
Makefile

PORTNAME= xmbmon
PORTVERSION= 205
PORTREVISION= 14
CATEGORIES= sysutils
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/${PORTNAME}/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= bofh@FreeBSD.org
COMMENT= MB monitor for LM78/79, W8378x, AS99127F, VT82C686 and ADM9240
WWW= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html
LICENSE= BSD2CLAUSE
PORTSCOUT= skipv:205conf
PATCH_SITES+= ${MASTER_SITES}
PATCHFILES+= ${PORTNAME}${PORTVERSION}_fflush.patch
ONLY_FOR_ARCHS= i386 amd64
GNU_CONFIGURE= yes
PORTDOCS= ChangeLog ChangeLog.jp ReadMe ReadMe.jp ReadMe.tech
OPTIONS_DEFINE= ASUS SMB DOCS
OPTIONS_MULTI= INTERFACE
OPTIONS_MULTI_INTERFACE= CLI X11
OPTIONS_DEFAULT=SMB CLI
ASUS_DESC= Enable A7N8X-VM support
SMB_DESC= Enable smb(4) support
CLI_DESC= CLI support only
X11_USES= xorg
X11_USE= XORG=x11,xt
X11_MAKE_ARGS_OFF= PROGRAM="mbmon"
ASUS_PATCHFILES= ${PORTNAME}${PORTVERSION}_A7N8X-VM.patch
X11_PLIST_FILES= "@mode 4555"\
bin/xmbmon \
@mode\
lib/X11/app-defaults/XMBmon \
man/man1/${PORTNAME}.1x.gz
CLI_PLIST_FILES= "@mode 4555"\
bin/mbmon \
@mode\
man/man1/mbmon.1.gz
CLI_VARS= USE_RC_SUBR=mbmon
post-patch:
@${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${DOCSDIR}+' \
${WRKSRC}/mbmon.1
post-patch-SMB-on:
@${REINPLACE_CMD} -e 's/^DEFS=/&-DSMBUS_IOCTL /' ${WRKSRC}/Makefile.in
do-install:
@${DO_NADA}
do-install-X11-on:
${INSTALL_PROGRAM} ${WRKSRC}/xmbmon \
${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/xmbmon.resources \
${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XMBmon
${INSTALL_MAN} ${WRKSRC}/xmbmon.1x ${STAGEDIR}${MANPREFIX}/man/man1
do-install-CLI-on:
${INSTALL_PROGRAM} ${WRKSRC}/mbmon ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mbmon.1 ${STAGEDIR}${MANPREFIX}/man/man1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>