summaryrefslogtreecommitdiff
blob: 3ea9c1df34d4c0a56aaffdd404e1f4dc8153a998 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-app_iconv/asterisk-app_iconv-0.9.2-r1.ebuild,v 1.1 2006/10/10 01:15:49 sbriesen Exp $

inherit eutils toolchain-funcs

MY_P="${P/asterisk-}"

DESCRIPTION="Asterisk application plugin for character conversion"
HOMEPAGE="http://www.mezzo.net/asterisk/"
SRC_URI="http://www.mezzo.net/asterisk/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"

DEPEND="sys-libs/glibc
	>=net-misc/asterisk-1.0.5-r2"

S="${WORKDIR}/${MY_P}"

src_unpack() {
	unpack ${A}
	cd "${S}"

	# patch makefile
	sed -i -e "s:^\(CFLAGS\)=:\1+=:g" \
		-e "s:\(RES=\).*echo \"\(.*\)\".*:\1\2:g" \
		-e "s:\(\$(SOLINK)\):\$(LDFLAGS) \1:g" Makefile
}

src_compile() {
	emake CC=$(tc-getCC) || die "emake failed"
}

src_install() {
	exeinto /usr/$(get_libdir)/asterisk/modules
	doexe app_iconv.so
	dodoc CHANGES README
}