summaryrefslogtreecommitdiff
blob: 00bf6148f81a7580009051283c798ef8f0bfaf30 (plain)
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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

inherit autotools eutils

DESCRIPTION="IAX (Inter Asterisk eXchange) Library"
HOMEPAGE="http://www.asterisk.org/"
SRC_URI="http://downloads.asterisk.org/pub/telephony/libiax/${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug snomhack"

src_prepare() {
	epatch "${FILESDIR}/${PV}-debug.patch"
	epatch "${FILESDIR}/${PV}-memset.patch"
	epatch "${FILESDIR}/${PV}-sandbox.patch"
	eautoreconf
}

src_configure() {
	econf \
		$(use_enable debug extreme-debug) \
		$(use_enable snomhack)
}

src_install () {
	default
	dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
}