blob: ecc98fb83f892271175ae1a194439818aa37c2ac (
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
44
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_unistim/asterisk-chan_unistim-1.0.0.4d.ebuild,v 1.1 2009/07/07 15:18:54 volkmar Exp $
EAPI="2"
inherit multilib
MY_PN="chan_unistim"
MY_P=${MY_PN}-${PV}
DESCRIPTION="Unistim channel module for Asterisk"
HOMEPAGE="http://mlkj.net/UNISTIM/"
SRC_URI="http://mlkj.net/asterisk/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""
DEPEND="=net-misc/asterisk-1.2*"
RDEPEND=${DEPEND}
S="${WORKDIR}"/${MY_P}
src_prepare() {
# multilib support
sed -i -e "s:/usr/lib:/usr/$(get_libdir):" Makefile || die "sed failed"
# respect users C(XX)FLAGS
sed -i -e "s:^CFLAGS=:CFLAGS+=:" -e "/O6/d" -e "/march/d" Makefile \
|| die "sed failed"
# better to let -pipe as user choice and add -fPIC
sed -i -e "s:pipe:fPIC:" Makefile || die "sed failed"
}
src_install() {
# create needed dirs
dodir /etc/asterisk
dodir /usr/$(get_libdir)/asterisk/modules
emake INSTALL_PREFIX="${D}" install config || die "emake install failed"
dodoc README CHANGES || die "dodoc failed"
}
|