diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-21 17:35:57 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-21 17:35:57 +0000 |
commit | 16e40219b9f2996a944be12c348301ce78a1526a (patch) | |
tree | f5cf20fc06bbc0edbdaccec9a209c7a687591eb8 /benchmarks/sipp | |
parent | Convert to new options framework left un converted ports in a* categories (diff) |
Convert to new options framework left unconverted ports in b* categories
Notes
Notes:
svn path=/head/; revision=314854
Diffstat (limited to 'benchmarks/sipp')
-rw-r--r-- | benchmarks/sipp/Makefile | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/benchmarks/sipp/Makefile b/benchmarks/sipp/Makefile index bd65692d5474..45007a0a46c6 100644 --- a/benchmarks/sipp/Makefile +++ b/benchmarks/sipp/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: sipp -# Date created: 15 Jun 2004 -# Whom: jesper@jdn.dk -# +# Created by: jesper@jdn.dk # $FreeBSD$ -# PORTNAME= sipp PORTVERSION= 3.3 @@ -26,13 +22,15 @@ MAKE_ENV+= CCLINK="${CXX}" CPPFLAGS+= ${CXXFLAGS} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -OPTIONS= OPENSSL "OpenSSL support (for digest auth and SIP over TLS)" on \ - GSL "GSL support (for statistical distributed pauses)" off \ - PCAPPLAY "RTP play support" off +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 .include <bsd.port.pre.mk> -.if defined(WITH_GSL) +.if ${PORT_OPTIONS:MGSL} LIB_DEPENDS+= gsl.16:${PORTSDIR}/math/gsl MAKE_ENV+= EXTRACPPFLAGS=-DHAVE_GSL \ @@ -40,7 +38,7 @@ MAKE_ENV+= EXTRACPPFLAGS=-DHAVE_GSL \ EXTRALIBS='-lgsl -lgslcblas' .endif #defined(WITH_GSL) -.if defined(WITH_PCAPPLAY) +.if ${PORT_OPTIONS:MPCAPPLAY} 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 \ @@ -55,20 +53,21 @@ PLIST_FILES+= %%DATADIR%%/pcap/${f} .endfor .endif #defined(WITH_PCAPPLAY) -.if defined(WITHOUT_OPENSSL) +.if ${PORT_OPTIONS:MOPENSSL} -.if defined(WITH_PCAPPLAY) -ALL_TARGET= pcapplay -.endif #defined(WITH_PCAPPLAY) - -.else #!defined(WITHOUT_OPENSSL) - -.if defined(WITH_PCAPPLAY) +.if ${PORT_OPTIONS:MPCAPPLAY} ALL_TARGET= pcapplay_ossl .else ALL_TARGET= ossl .endif #defined(WITH_PCAPPLAY) +.else # ! ${PORT_OPTIONS:MOPENSSL} + +.if ${PORT_OPTIONS:MPCAPPLAY} +ALL_TARGET= pcapplay +.endif #defined(WITH_PCAPPLAY) + + .endif #defined(WITHOUT_OPENSSL) post-patch: @@ -76,7 +75,7 @@ post-patch: @${REINPLACE_CMD} 's/^\(MFLAGS_ia64=\)\+DD64$$/\1/' ${WRKSRC}/Makefile .endif -.if defined(WITH_PCAPPLAY) +.if ${PORT_OPTIONS:MPCAPPLAY} @${REINPLACE_CMD} \ 's|\(\\"\)\(pcap/[^"]*\.pcap\\"\)|\1${DATADIR}/\2|' \ ${WRKSRC}/scenario.cpp @@ -86,7 +85,7 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_MAN} ${FILESDIR}/sipp.1 ${PREFIX}/man/man1 -.if defined(WITH_PCAPPLAY) +.if ${PORT_OPTIONS:MPCAPPLAY} ${MKDIR} ${DATADIR}/pcap .for f in ${PCAP_FILES} @@ -95,4 +94,4 @@ do-install: .endif #defined(WITH_PCAPPLAY) -.include <bsd.port.post.mk> +.include <bsd.port.mk> |