/var/paludis/repositories/gentoo/games-rpg/tmw/filesd under the terms of the GNU General Public License v2 # $Header: $ EAPI=1 inherit qt3 git autotools DESCRIPTION="SFLphone aims to become your desktop's VoIP companion." HOMEPAGE="http://www.sflphone.org/" SRC_URI="" LICENSE="GPL-2" SLOT="" EGIT_REPO_URI="http://sflphone.org/git/sflphone.git" KEYWORDS="~x86 ~ppc ~amd64" IUSE="qt3 speex zeroconf" DEPEND=">=net-libs/libosip-2.2.2 >=net-libs/libeXosip-1.9.0 >=dev-cpp/commoncpp2-1.3.21 >=net-libs/ccrtp-1.3.5 >=media-libs/portaudio-19_pre >=media-libs/libsamplerate-0.1.1 net-libs/pjsip media-sound/pulseaudio qt3? ( >=x11-libs/qt-3.3:3 ) speex? ( media-libs/speex ) zeroconf? ( net-misc/mDNSResponder )" RDEPEND="${DEPEND}" src_unpack() { # unpack ${A} git_src_unpack cd "${S}" eautoreconf # fix compile error on genstef's box..doesn't seem to break anything # sed -i -e "s/Qt::Key_Mode_switch/0x0100117e/" src/gui/qt/SFLPhoneWindow.cpp } src_compile () { econf \ $(use_enable qt3 sflphoneqt) \ $(use_enable speex) \ $(use_enable zeroconf) \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc README } x11-libs/libXv )" DEPEND="${RDEPEND} >=sys-devel/make-3.81 >=dev-util/pkgconfig-0.12.0 >=dev-util/intltool-0.35 doc? ( app-text/scrollkeeper app-text/gnome-doc-utils )" DOCS="AUTHORS ChangeLog FAQ NEWS README" pkg_setup() { # ekiga has to be built like opal and ptlib but as opal has to be built # like ptlib, it should be possible to check only opal but as ekiga is # linking to both, we are cheking both if use debug && (! built_with_use dev-libs/ptlib debug || ! built_with_use net-libs/opal debug); then eerror "You need to build dev-libs/ptlib and net-libs/opal with\ USE=debug enabled." die "dev-libs/ptlib and net-libs/opal have to be built with USE=debug" fi if ! use debug && (built_with_use dev-libs/ptlib debug || built_with_use net-libs/opal debug); then eerror "You need to build dev-libs/ptlib and net-libs/opal without\ USE=debug." die "dev-libs/ptlib and net-libs/opal has not to be built with USE=debug" fi # dbus-service is always enable if dbus is enable, no reason to disable it G2CONF="${G2CONF} $(use_enable avahi) $(use_enable dbus) $(use_enable dbus dbus_service) $(use_enable debug) $(use_enable doc gdu) $(use_enable eds) $(use_enable gconf) $(use_enable gnome) $(use_enable ldap) $(use_enable libnotify notify) $(use_enable xv) " } src_unpack() { git_src_unpack cd "${S}" # eautoreconf # remove call to gconftool-2 --shutdown # sed -i -e '/gconftool-2 --shutdown/d' Makefile.in \ # || die "Patching Makefile.in failed" # fix ekiga-helper dbus service .in file # sed -i -e 's/@PACKAGE_NAME@/ekiga/'\ # src/components/org.ekiga.Helper.service.in \ # || die "Patching src/components/org.ekiga.Helper.service.in failed" } pkg_postinst() { gnome2_pkg_postinst if ! use gnome; then ewarn "USE=-gnome is experimental, some weirdness with the UI and" ewarn "config keys should appear." fi } aclocal.m4 eautoreconf } src_compile() { addpredict /etc/krb5.conf local modules myconf modules="mod_ratio:mod_readme" use acl && modules="${modules}:mod_facl" use ban && modules="${modules}:mod_ban" use case && modules="${modules}:mod_case" use clamav && modules="${modules}:mod_clamav" use deflate && modules="${modules}:mod_deflate" use pam && modules="${modules}:mod_auth_pam" use radius && modules="${modules}:mod_radius" use rewrite && modules="${modules}:mod_rewp