# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde-functions eutils DESCRIPTION="SFLphone aims to become your desktop's VoIP companion." HOMEPAGE="http://www.sflphone.org/" SRC_URI="http://forge.novell.com/modules/xfcontent/private.php/${PN}/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="alsa oss" DEPEND=">=net-libs/libosip-2.2.0 >=net-libs/libeXosip-0.9.0 >=dev-cpp/commoncpp2-1.3.6 >=net-libs/ccrtp-1.3.0 alsa? ( media-libs/alsa-lib )" need-qt 3.3 S=${WORKDIR}/${P} MY_PREFIX="/usr" src_unpack() { unpack ${A} if [ "${ARCH}" = "ppc" ] then epatch ${FILESDIR}/Makefile-ppc.diff epatch ${FILESDIR}/stun-ppc.diff fi } src_compile() { local myconf myconf="-prefix ${MY_PREFIX}" use oss && myconf="${myconf} -oss" use alsa && myconf="${myconf} -alsa" # Not implemented in configure, yet... but the option is there if [ "${ARCH}" = "ppc-macos" ] then myconf="${myconf} -macosx" fi ./configure \ ${myconf} || die "./configure failed" # ./configure ${myconf} || die "configure failed" cd ./gsm emake || die "emake ./gsm failed" cd ../src emake || die "emake ./src failed" } src_install() { diropts -m0750 -p dobin ./src/${PN} dodir ${MY_PREFIX}/share/${PN} cp -R pixmaps ${D}${MY_PREFIX}/share/${PN}/ chmod -R a+rX ${D}${MY_PREFIX}/share/${PN}/ cp -R skins ${D}${MY_PREFIX}/share/${PN}/ chmod -R a+rX ${D}${MY_PREFIX}/share/${PN}/ cp -R rings ${D}${MY_PREFIX}/share/${PN}/ chmod -R a+rX ${D}${MY_PREFIX}/share/${PN}/ }