blob: 1d84c61bcb059a4e64018735a0624a3086ff7502 (
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
35
36
37
38
39
40
41
42
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libpri/libpri-1.0.8.ebuild,v 1.7 2009/03/10 18:51:15 chainsaw Exp $
inherit eutils
IUSE="bri"
BRI_VERSION="0.2.0-RC8h"
DESCRIPTION="Primary Rate ISDN (PRI) library"
HOMEPAGE="http://www.asterisk.org/"
SRC_URI="ftp://ftp.digium.com/pub/telephony/libpri/old/libpri-${PV}.tar.gz
bri? ( http://www.junghanns.net/downloads/bristuff-${BRI_VERSION}.tar.gz )"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~ppc sparc ~amd64"
src_unpack() {
unpack ${A}
cd "${S}"
if use bri; then
einfo "Patching libpri w/ BRI stuff (${BRI_VERSION})"
epatch "${WORKDIR}/bristuff-${BRI_VERSION}/patches/libpri.patch"
fi
# use system CFLAGS
sed -i -e "s:^CFLAGS=:CFLAGS+=:" \
-e "/^CFLAGS[\t ]\++=/ d" Makefile
}
src_compile() {
emake || die
}
src_install() {
make INSTALL_PREFIX="${D}" install || die
dodoc ChangeLog README TODO
}
|