DESCRIPTION="A Remote Desktop Protocol Client (fork of rdesktop)" HOMEPAGE="http://www.freerdp.com//" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="tls X debug directfb alsa cups ipv6 smartcard largefile" RDEPEND="directfb? ( dev-libs/DirectFB ) alsa? ( media-libs/alsa-lib media-libs/libsamplerate ) cups? ( net-print/cups ) X? ( x11-libs/libX11 x11-libs/libXcursor )" DEPEND="${RDEPEND} dev-util/pkgconfig" src_compile() { local my_conf if use alsa; then my_conf="${my_conf} --with-sound=alsa --with-libsamplerate" else my_conf="${my_conf} --without-sound --without-libsamplerate" fi if use cups; then my_conf="${my_conf} --with-printer=cups" else my_conf="${my_conf} --without-printer --with-printer=no" fi if use directfb; then my_conf="${my_conf} --with-dfb" else my_conf="${my_conf}" fi econf \ $(use_with debug) \ $(use_enable ipv6) \ $(use_enable largefile) \ $(use_enable smartcard) \ $(use_enable tls) \ $(use_with X x) \ ${my_conf} \ || die "configuration failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "installation failed" }