pentoo-overlay/net-misc/sipp/sipp-3.6_pre.ebuild
2017-10-31 07:53:17 +08:00

37 lines
756 B
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
MY_PV="${PV//_pre/-dev}"
DESCRIPTION="SipBomber is a tool to stress SIP server/proxy implementations."
HOMEPAGE="http://sipp.sourceforge.net/"
SRC_URI="https://github.com/SIPp/sipp/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gsl pcap rtpstream sctp ssl"
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-${MY_PV}"
src_prepare() {
echo "#define SIPP_VERSION \"v${MY_PV}\"" > include/version.h
eautoreconf
eapply_user
}
src_configure() {
econf \
$(use_with gsl) \
$(use_with pcap) \
$(use_with rtpstream) \
$(use_with sctp) \
$(use_with ssl openssl)
}