--- /usr/portage/local/layman/voip/net-misc/asterisk-chan_misdn/asterisk-chan_misdn-0.3.1_rc34.ebuild 2008-04-21 15:19:24.000000000 +0200 +++ /usr/local/portage/net-misc/asterisk-chan_misdn/asterisk-chan_misdn-0.3.1_rc36.ebuild 2008-04-21 19:09:42.000000000 +0200 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/asterisk-chan_misdn/asterisk-chan_misdn-0.3.0.ebuild,v 1.1 2006/04/08 17:34:00 genstef Exp $ +inherit flag-o-matic + MY_PN=${PN/asterisk-} DESCRIPTION="Asterisk channel plugin for mISDN" HOMEPAGE="http://www.beronet.com/" @@ -17,6 +19,14 @@ S=${WORKDIR}/${MY_PN} +src_unpack() { + unpack "${A}" + cd "${S}" + sed -i -e "s:^CFLAGS\t\t= -pipe -c -Wall -ggdb:CFLAGS\t\t= -pipe -c -Wall -ggdb -fPIC :" \ + misdn/Makefile + append-flags -fPIC +} + src_install() { exeinto /usr/lib/asterisk/modules doexe chan_misdn.so