freebsd-ports/benchmarks/sipp/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

65 lines
1.9 KiB
Makefile

PORTNAME= sipp
PORTVERSION= 3.5.1
PORTREVISION= 6
CATEGORIES= benchmarks net
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${PORTVERSION}/
MAINTAINER= farrokhi@FreeBSD.org
COMMENT= SIP benchmarking and testing tool
WWW= http://sipp.sourceforge.net/
LICENSE= GPLv2
BROKEN_FreeBSD_12_powerpc64= fails to compile: /usr/local/lib/gcc9/include/c++/cstddef:52:8: expected unqualified-id before string constant
BUILD_DEPENDS= help2man:misc/help2man
USES= autoreconf compiler:c++11-lang gmake ncurses pkgconfig
PLIST_FILES= bin/sipp man/man1/sipp.1.gz
GNU_CONFIGURE= yes
OPTIONS_DEFINE= OPENSSL GSL PCAP RTPSTREAM SCTP
OPTIONS_DEFAULT= OPENSSL PCAP RTPSTREAM
OPENSSL_DESC= OpenSSL support (for digest auth and SIP over TLS)
GSL_DESC= GSL support (for statistical distributed pauses)
PCAP_DESC= PCAP Support
RTPSTREAM_DESC= RTP Streaming Support
SCTP_DESC= SCTP Transport Protocol Support
GSL_CONFIGURE_WITH= gsl
SCTP_CONFIGURE_WITH= sctp
RTPSTREAM_CONFIGURE_WITH= rtpstream
OPENSSL_CONFIGURE_WITH= openssl
OPENSSL_USES= ssl
GSL_LIB_DEPENDS= libgsl.so:math/gsl
PCAP_FILES= dtmf_2833_0.pcap dtmf_2833_1.pcap dtmf_2833_2.pcap \
dtmf_2833_3.pcap dtmf_2833_4.pcap dtmf_2833_5.pcap \
dtmf_2833_6.pcap dtmf_2833_7.pcap dtmf_2833_8.pcap \
dtmf_2833_9.pcap dtmf_2833_pound.pcap dtmf_2833_star.pcap \
g711a.pcap
PCAP_PLIST_FILES= ${PCAP_FILES:S|^|${DATADIR}/pcap/|}
post-patch:
@${REINPLACE_CMD} -e 's|[[:<:]]curses|ncurses|' ${WRKSRC}/configure.ac
post-patch-PCAP-on:
@${REINPLACE_CMD} \
's|\(\\"\)\(pcap/[^"]*\.pcap\\"\)|\1${DATADIR}/\2|' \
${WRKSRC}/src/scenario.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/include/sipp.1 ${STAGEDIR}${PREFIX}/man/man1
do-install-PCAP-on:
${MKDIR} ${STAGEDIR}${DATADIR}/pcap
.for f in ${PCAP_FILES}
${INSTALL_DATA} ${WRKSRC}/pcap/${f} ${STAGEDIR}${DATADIR}/pcap/${f}
.endfor
.include <bsd.port.mk>