blob: 3af895ccfc2f6bb626b1a43ff82074c1d7d9ddb5 (
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
43
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-sccp/asterisk-sccp-0.2.ebuild,v 1.3 2004/04/27 21:20:41 agriffis Exp $
inherit eutils
IUSE="debug"
DESCRIPTION="SCCP plugin for the Asterisk soft PBX"
HOMEPAGE="http://www.zozo.org.uk/pages.shtml?page=sccp"
SRC_URI="http://www.zozo.org.uk/downloads/chan_sccp-${PV}.tar.gz"
S="${WORKDIR}/chan_sccp-${PV}"
SLOT="0"
KEYWORDS="~x86"
LICENSE="GPL-2"
DEPEND=">=net-misc/asterisk-0.5.0"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-makefile.diff
if [ -z "`use debug`" ]; then
sed -i -e "s:^\(DEBUG=-g\):#\1:" Makefile
fi
# set cflags
sed -i -e "s:^CFLAG=\(.*\)\$(DEBUG):CFLAG=${CFLAGS} \$(DEBUG):" \
Makefile
}
src_compile() {
emake || die
}
src_install() {
emake DESTDIR=${D} install || die
dodoc README conf/*.xml
}
|