summaryrefslogtreecommitdiff
blob: a4954f960007a0403d5845f1034da52eaf09db35 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/libss7/libss7-1.0.2.ebuild,v 1.1 2012/08/23 10:05:45 chainsaw Exp $

EAPI="4"

inherit base toolchain-funcs

DESCRIPTION="Signalling System 7 (SS7) protocol library"
HOMEPAGE="http://www.asterisk.org/"
SRC_URI="http://downloads.asterisk.org/pub/telephony/${PN}/releases/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=">=net-misc/dahdi-2.0.0"
PATCHES=(
	"${FILESDIR}/${PV}-werror-idiocy.patch"
	"${FILESDIR}/${PV}-no-ldconfig.patch"
	"${FILESDIR}/${PV}-ldflags.patch"
)

src_compile() {
	emake CC=$(tc-getCC) LD=$(tc-getLD) DESTDIR="${D}"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc ChangeLog README NEWS* || die "dodoc failed"
}