2013-03-21 17:35:57 +00:00
|
|
|
# Created by: jesper@jdn.dk
|
2004-06-18 07:33:47 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sipp
|
2013-02-10 07:58:28 +00:00
|
|
|
PORTVERSION= 3.3
|
2014-08-17 13:09:56 +00:00
|
|
|
PORTREVISION= 1
|
2007-12-17 01:37:43 +00:00
|
|
|
CATEGORIES= benchmarks net
|
2013-02-10 07:58:28 +00:00
|
|
|
MASTER_SITES= SF
|
|
|
|
MASTER_SITE_SUBDIR= sipp/sipp/${PORTVERSION}
|
|
|
|
DISTNAME= ${PORTNAME}-3.3beta2
|
2005-01-21 15:13:34 +00:00
|
|
|
|
2014-06-26 16:06:17 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-02-10 07:58:28 +00:00
|
|
|
COMMENT= SIP benchmarking and testing tool
|
2004-06-18 07:33:47 +00:00
|
|
|
|
2010-06-27 05:00:35 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-02-08 21:09:51 +00:00
|
|
|
PLIST_FILES= bin/sipp man/man1/sipp.1.gz
|
2004-06-18 07:33:47 +00:00
|
|
|
|
2013-08-30 23:09:24 +00:00
|
|
|
USES= gmake
|
2010-11-08 15:45:54 +00:00
|
|
|
CPP= ${CXX}
|
2011-09-23 22:26:39 +00:00
|
|
|
MAKE_ENV+= CCLINK="${CXX}"
|
|
|
|
CPPFLAGS+= ${CXXFLAGS}
|
2013-02-10 07:58:28 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2005-09-30 19:51:42 +00:00
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
OPTIONS_DEFINE= OPENSSL GSL PCAPPLAY
|
|
|
|
OPTIONS_DEFAULT= OPENSSL
|
|
|
|
OPENSSL_DESC= OpenSSL support (for digest auth and SIP over TLS)
|
|
|
|
GSL_DESC= GSL support (for statistical distributed pauses)
|
|
|
|
PCAPPLAY_DESC= RTP play support
|
2007-01-17 20:44:29 +00:00
|
|
|
|
2013-03-23 12:01:32 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2005-01-26 04:29:38 +00:00
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MGSL}
|
2013-12-11 14:38:29 +00:00
|
|
|
LIB_DEPENDS+= libgsl.so:${PORTSDIR}/math/gsl
|
2007-01-31 03:33:35 +00:00
|
|
|
|
|
|
|
MAKE_ENV+= EXTRACPPFLAGS=-DHAVE_GSL \
|
|
|
|
EXTRACFLAGS=-DHAVE_GSL \
|
|
|
|
EXTRALIBS='-lgsl -lgslcblas'
|
|
|
|
.endif #defined(WITH_GSL)
|
2006-12-21 23:07:44 +00:00
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MPCAPPLAY}
|
2013-02-10 07:58:28 +00:00
|
|
|
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
|
2006-12-21 23:07:44 +00:00
|
|
|
|
2007-01-17 20:44:29 +00:00
|
|
|
PLIST_DIRS= %%DATADIR%%/pcap \
|
|
|
|
%%DATADIR%%
|
2006-12-21 23:07:44 +00:00
|
|
|
|
|
|
|
.for f in ${PCAP_FILES}
|
|
|
|
PLIST_FILES+= %%DATADIR%%/pcap/${f}
|
|
|
|
.endfor
|
2007-01-17 20:44:29 +00:00
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
2005-01-26 04:29:38 +00:00
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2006-12-21 23:07:44 +00:00
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MPCAPPLAY}
|
2006-12-21 23:07:44 +00:00
|
|
|
ALL_TARGET= pcapplay_ossl
|
|
|
|
.else
|
|
|
|
ALL_TARGET= ossl
|
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.else # ! ${PORT_OPTIONS:MOPENSSL}
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MPCAPPLAY}
|
|
|
|
ALL_TARGET= pcapplay
|
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
|
|
|
|
|
|
|
|
2007-01-17 20:44:29 +00:00
|
|
|
.endif #defined(WITHOUT_OPENSSL)
|
2006-12-21 23:07:44 +00:00
|
|
|
|
2006-12-10 23:43:44 +00:00
|
|
|
post-patch:
|
|
|
|
.if ${ARCH} == "ia64"
|
2006-12-21 23:07:44 +00:00
|
|
|
@${REINPLACE_CMD} 's/^\(MFLAGS_ia64=\)\+DD64$$/\1/' ${WRKSRC}/Makefile
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MPCAPPLAY}
|
2006-12-21 23:07:44 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
's|\(\\"\)\(pcap/[^"]*\.pcap\\"\)|\1${DATADIR}/\2|' \
|
|
|
|
${WRKSRC}/scenario.cpp
|
2007-01-17 20:44:29 +00:00
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
2006-12-10 23:43:44 +00:00
|
|
|
|
2004-06-18 07:33:47 +00:00
|
|
|
do-install:
|
2014-02-08 21:09:51 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/sipp.1 ${STAGEDIR}${PREFIX}/man/man1
|
2004-06-18 07:33:47 +00:00
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MPCAPPLAY}
|
2014-02-08 21:09:51 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/pcap
|
2006-12-21 23:07:44 +00:00
|
|
|
|
|
|
|
.for f in ${PCAP_FILES}
|
2014-02-08 21:09:51 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pcap/${f} ${STAGEDIR}${DATADIR}/pcap/${f}
|
2006-12-21 23:07:44 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
|
|
|
|
2013-03-21 17:35:57 +00:00
|
|
|
.include <bsd.port.mk>
|