blob: 320d14d5912cf2d6e140618c43a6fa0c27cb04e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: sipp
# Date created: 15 Jun 2004
# Whom: jesper@jdn.dk
#
# $FreeBSD$
#
PORTNAME= sipp
PORTVERSION= 1.1.r8.20070116
CATEGORIES= net
MASTER_SITES= http://sipp.sourceforge.net/snapshots/
DISTNAME= ${PORTNAME}.2007-01-16
MAINTAINER= tut@nhamon.com.ua
COMMENT= SIP testing tool
PLIST_FILES= bin/sipp
MAN1= sipp.1
MAKE_ENV+= CPP="${CXX}" CPPFLAGS="${CXXFLAGS}" CCLINK="${CXX}"
OPTIONS= OPENSSL "OpenSSL support (for digest auth and SIP over TLS)" on \
PCAPPLAY "RTP play support" off
.include <bsd.port.pre.mk>
.if defined(WITH_PCAPPLAY)
BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
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
PLIST_DIRS= %%DATADIR%%/pcap \
%%DATADIR%%
.for f in ${PCAP_FILES}
PLIST_FILES+= %%DATADIR%%/pcap/${f}
.endfor
.endif #defined(WITH_PCAPPLAY)
.if defined(WITHOUT_OPENSSL)
.if defined(WITH_PCAPPLAY)
ALL_TARGET= pcapplay
.endif #defined(WITH_PCAPPLAY)
.else #!defined(WITHOUT_OPENSSL)
.if defined(WITH_PCAPPLAY)
ALL_TARGET= pcapplay_ossl
.else
ALL_TARGET= ossl
.endif #defined(WITH_PCAPPLAY)
.endif #defined(WITHOUT_OPENSSL)
post-patch:
.if ${ARCH} == "ia64"
@${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
.endif #defined(WITH_PCAPPLAY)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/sipp.1 ${PREFIX}/man/man1
.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)
.include <bsd.port.post.mk>
|