2004-06-18 07:33:47 +00:00
|
|
|
# New ports collection makefile for: sipp
|
|
|
|
# Date created: 15 Jun 2004
|
|
|
|
# Whom: jesper@jdn.dk
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sipp
|
2009-12-08 01:26:40 +00:00
|
|
|
PORTVERSION= 3.1.20090729
|
2010-03-29 01:12:27 +00:00
|
|
|
PORTREVISION= 1
|
2007-12-17 01:37:43 +00:00
|
|
|
CATEGORIES= benchmarks net
|
2008-08-15 00:06:07 +00:00
|
|
|
MASTER_SITES= http://sipp.sourceforge.net/snapshots/
|
2009-12-08 01:26:40 +00:00
|
|
|
DISTNAME= ${PORTNAME}.2009-07-29
|
2005-01-21 15:13:34 +00:00
|
|
|
|
2006-05-26 08:25:14 +00:00
|
|
|
MAINTAINER= tut@nhamon.com.ua
|
2004-06-18 07:33:47 +00:00
|
|
|
COMMENT= SIP testing tool
|
|
|
|
|
2010-06-27 05:00:35 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2004-06-18 07:33:47 +00:00
|
|
|
PLIST_FILES= bin/sipp
|
|
|
|
MAN1= sipp.1
|
|
|
|
|
2008-05-08 07:14:19 +00:00
|
|
|
USE_GMAKE= yes
|
2010-11-08 15:45:54 +00:00
|
|
|
CPP= ${CXX}
|
2011-09-23 22:26:39 +00:00
|
|
|
MAKE_ENV+= CCLINK="${CXX}"
|
|
|
|
CPPFLAGS+= ${CXXFLAGS}
|
2009-03-22 20:29:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/sipp.svn
|
2005-09-30 19:51:42 +00:00
|
|
|
|
2007-01-17 20:44:29 +00:00
|
|
|
OPTIONS= OPENSSL "OpenSSL support (for digest auth and SIP over TLS)" on \
|
2007-01-31 03:33:35 +00:00
|
|
|
GSL "GSL support (for statistical distributed pauses)" off \
|
2007-01-17 20:44:29 +00:00
|
|
|
PCAPPLAY "RTP play support" off
|
|
|
|
|
2005-01-26 04:29:38 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-01-31 03:33:35 +00:00
|
|
|
.if defined(WITH_GSL)
|
2011-05-09 16:42:27 +00:00
|
|
|
LIB_DEPENDS+= gsl.16:${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
|
|
|
|
2007-01-31 03:33:35 +00:00
|
|
|
.if defined(WITH_PCAPPLAY)
|
2006-12-21 23:07:44 +00:00
|
|
|
PCAP_FILES= 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
|
|
|
|
|
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
|
|
|
|
2007-01-17 20:44:29 +00:00
|
|
|
.if defined(WITHOUT_OPENSSL)
|
2006-12-21 23:07:44 +00:00
|
|
|
|
|
|
|
.if defined(WITH_PCAPPLAY)
|
|
|
|
ALL_TARGET= pcapplay
|
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
|
|
|
|
2007-01-17 20:44:29 +00:00
|
|
|
.else #!defined(WITHOUT_OPENSSL)
|
2006-12-21 23:07:44 +00:00
|
|
|
|
|
|
|
.if defined(WITH_PCAPPLAY)
|
|
|
|
ALL_TARGET= pcapplay_ossl
|
|
|
|
.else
|
|
|
|
ALL_TARGET= ossl
|
|
|
|
.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
|
|
|
|
|
|
|
|
.if defined(WITH_PCAPPLAY)
|
|
|
|
@${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:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
2006-01-09 14:21:13 +00:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/sipp.1 ${PREFIX}/man/man1
|
2004-06-18 07:33:47 +00:00
|
|
|
|
2006-12-21 23:07:44 +00:00
|
|
|
.if defined(WITH_PCAPPLAY)
|
|
|
|
${MKDIR} ${DATADIR}/pcap
|
|
|
|
|
|
|
|
.for f in ${PCAP_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pcap/${f} ${DATADIR}/pcap/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.endif #defined(WITH_PCAPPLAY)
|
|
|
|
|
2005-01-26 04:29:38 +00:00
|
|
|
.include <bsd.port.post.mk>
|