blob: 0883252acf22d2f1cccf9a76165abca63dbc72f3 (
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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk/asterisk-0.2.0.ebuild,v 1.11 2004/07/01 20:40:56 squinky86 Exp $
IUSE="doc"
S=${WORKDIR}/${P}
DESCRIPTION="Asterisk - Full PBX in Software"
HOMEPAGE="http://www.asterisk.org"
SRC_URI="ftp://ftp.asterisk.org/pub/telephony/${PN}/old-releases/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
DEPEND="virtual/libc
=sys-apps/sed-4*
doc? ( app-doc/doxygen )"
src_compile() {
emake -j1 || die
# One small error in Makefile
sed -i 's:mkdir -p /etc/asterisk:mkdir -p $(INSTALL_PREFIX)/etc/asterisk:' \
${S}/Makefile
}
src_install () {
make INSTALL_PREFIX=${D} install || die
make INSTALL_PREFIX=${D} samples || die
use doc && make INSTALL_PREFIX=${D} progdocs
}
|