From 998ef47e37822b8f20e6fae0005352017b168c71 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Wed, 21 Dec 2005 21:09:00 +0000 Subject: Fix compiling with asterisk-1.2.x on uclibc systems. Package-Manager: portage-2.0.51.22-r2 --- net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild') diff --git a/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild b/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild index 4f9e96744e51..60a1cd21a9bf 100644 --- a/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild +++ b/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild,v 1.1 2005/11/20 21:26:09 stkn Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_capi-cm/asterisk-chan_capi-cm-0.6.1.ebuild,v 1.2 2005/12/21 21:09:00 stkn Exp $ IUSE="" @@ -27,6 +27,12 @@ src_unpack() { cd ${S} epatch ${FILESDIR}/chan_capi-0.6.0-gentoo.diff + + # put system includes before asterisk ones, use ast_mutex_init instead + # of ast_pthread_mutex_init + if has_version ">=net-misc/asterisk-1.1.0"; then + epatch ${FILESDIR}/chan_capi-cm-0.6.1-asterisk-1.2.diff + fi } src_compile() { -- cgit v1.2.3-65-gdbad