Files
ports/net/nbdkit/Makefile
T
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
2.1 KiB
Makefile

PORTNAME= nbdkit
PORTVERSION= 1.20.4
PORTREVISION= 1
CATEGORIES= net
# XXX Although nbdkit uses github for its homepage, the release tarballs served
# by github haven't been through autoconf. So we must download the sources
# from libguestfs.org instead.
MASTER_SITES= http://download.libguestfs.org/${PORTNAME}/${PORTVERSION:R}-stable/
MAINTAINER= asomers@FreeBSD.org
COMMENT= Network Block Device server toolkit with stable ABI and permissive license
WWW= https://github.com/libguestfs/nbdkit
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash \
bash-completion>0:shells/bash-completion
USES= compiler:c11 cpe gmake libtool pkgconfig
CPE_VENDOR= nbdkit_project
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
# Rust consumers will download the Rust plugin from crates.io
CONFIGURE_ARGS+= --disable-rust
# These libraries does not exist on ports
CONFIGURE_ARGS+= --without-libnbd
CONFIGURE_ARGS+= --without-libguestfs
# We could theoretically build these other plugins, if anybody cares to.
CONFIGURE_ARGS+= --disable-ocaml
CONFIGURE_ARGS+= --disable-tcl
CONFIGURE_ARGS+= --disable-lua
CONFIGURE_ARGS+= --disable-golang
CONFIGURE_ARGS+= --disable-vddk
CONFIGURE_ARGS+= --without-ext2
CONFIGURE_ARGS+= --without-iso
CONFIGURE_ARGS+= --without-linuxdisk
USE_LDCONFIG= yes
OPTIONS_DEFINE= CURL GNUTLS LIBVIRT LZMA MANPAGES PERL PYTHON RUBY SSH ZLIB
GNUTLS_BUILD_DEPENDS= gnutls>0:security/gnutls
GNUTLS_RUN_DEPENDS= gnutls>0:security/gnutls
OPTIONS_DEFAULT= GNUTLS MANPAGES
OPTIONS_SUB= yes
CURL_BUILD_DEPENDS+= curl:ftp/curl
CURL_CONFIGURE_WITH= curl
CURL_RUN_DEPENDS+= curl:ftp/curl
LIBVIRT_CONFIGURE_WITH= libvirt
LIBVIRT_LIB_DEPENDS= libvirt.so:devel/libvirt
LZMA_CONFIGURE_WITH= liblzma
LZMA_LIB_DEPENDS= liblzma.so:archivers/lzmalib
MANPAGES_USE+= perl5=build
MANPAGES_USES+= perl5
PERL_CONFIGURE_ENABLE= perl
PERL_USE+= perl5
PYTHON_CONFIGURE_ENABLE= python
PYTHON_USES+= python:3.3+
RUBY_CONFIGURE_ENABLE= ruby
RUBY_USE+= ruby
SSH_CONFIGURE_WITH= ssh
SSH_LIB_DEPENDS= libssh.so:security/libssh
ZLIB_CONFIGURE_WITH= zlib
.include <bsd.port.mk>