freebsd-ports/net/intel-ixl-kmod/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

69 lines
2.0 KiB
Makefile

PORTNAME?= ixl
PORTVERSION?= 1.12.2
PORTREVISION?= 0
CATEGORIES= net
MASTER_SITES?= https://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/ \
http://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/
MASTER_SITE_SUBDIR?= 25160/eng
PKGNAMEPREFIX= intel-
PKGNAMESUFFIX= -kmod
MAINTAINER?= freebsd@intel.com
COMMENT?= 40 gigabit FreeBSD Base Driver for Intel(R) Network Connections
WWW= https://downloadcenter.intel.com
LICENSE= BSD2CLAUSE
USES= kmod
OPTIONS_SINGLE= NETMAP
OPTIONS_SINGLE_NETMAP= NETMAP_AUTO NETMAP_ON NETMAP_OFF
OPTIONS_DEFAULT= NETMAP_AUTO
NETMAP_AUTO_DESC= Enable netmap(4) support on supported OS versions
NETMAP_ON_DESC= Enable netmap(4) support unconditionally
NETMAP_OFF_DESC= Disable netmap(4) support unconditionally
NETMAP_ON_CFLAGS= -DDEV_NETMAP
NETMAP_OFF_CFLAGS= -UDEV_NETMAP
WRKSRC_SUBDIR= src
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
MANPAGENAME?= ${PORTNAME}
MANPAGELINKS?= if_${PORTNAME}
PLIST_FILES= ${KMODDIR}/if_${PORTNAME}_updated.ko \
man/man4/${MANPAGENAME}.4.gz
MAKE_ENV+= WERROR=""
.for link in ${MANPAGELINKS}
PLIST_FILES+= man/man4/${link}.4.gz
.endfor
MAX_NETMAP_OSVERSION?= 1200500 # Maximum OSVERSION for which NETMAP support works
.include <bsd.port.pre.mk>
# Fixup for slave ports that use this as a master port. sbruno
.if ${PORTNAME} == ixl
PATCH_SITES= https://svnweb.freebsd.org/base/head/sys/dev/ixl/
PATCHFILES= ixl_pf_main.c?view=patch&r1=358698&r2=358697&pathrev=358698:-p4
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON= only supported on amd64 and powerpc64
.endif
.if ${PORT_OPTIONS:MNETMAP_AUTO} && ${OSVERSION} <= ${MAX_NETMAP_OSVERSION}
CFLAGS+= -DDEV_NETMAP
.endif
do-install:
${INSTALL_KLD} ${WRKSRC}/if_${PORTNAME}.ko ${STAGEDIR}${KMODDIR}/if_${PORTNAME}_updated.ko
${INSTALL_MAN} ${WRKSRC}/${MANPAGENAME}.4 ${STAGEDIR}${MAN4PREFIX}/man/man4/
.for link in ${MANPAGELINKS}
${LN} ${STAGEDIR}${MAN4PREFIX}/man/man4/${MANPAGENAME}.4 ${STAGEDIR}${MAN4PREFIX}/man/man4/${link}.4
.endfor
.include <bsd.port.post.mk>