1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 EGIT_BOOTSTRAP="eautoreconf"
9 inherit autotools base git
11 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
13 DESCRIPTION="A Remote Desktop Protocol Client, forked from rdesktop"
14 HOMEPAGE="http://www.freerdp.com/"
20 IUSE="alsa cups debug gnutls iconv ipv6 largefile libsamplerate nss polarssl \
25 ssl? ( >=dev-libs/openssl-0.9.8a )
27 gnutls? ( >=net-libs/gnutls-2.10.1 )
28 polarssl? ( >=net-libs/polarssl-0.14.0 )
29 alsa? ( media-libs/alsa-lib )
30 libsamplerate? ( media-libs/libsamplerate )
31 cups? ( net-print/cups )
32 iconv? ( virtual/libiconv )"
35 DOCS=( AUTHORS ChangeLog NEWS README )
38 MY_CRYPTOBACKEND="simple"
40 MY_CRYPTOBACKEND="polarssl"
43 if [[ "${MY_CRYPTOBACKEND}" != "simple" ]]; then
44 ewarn "You have enabled ${MY_CRYPTOBACKEND} and nss."
45 ewarn "Only one will be selected"
47 MY_CRYPTOBACKEND="nss"
50 if [[ "${MY_CRYPTOBACKEND}" != "simple" ]]; then
51 ewarn "You have enabled ${MY_CRYPTOBACKEND} and gnutls."
52 ewarn "Only one will be selected"
54 MY_CRYPTOBACKEND="gnutls"
57 if [[ "${MY_CRYPTOBACKEND}" != "simple" ]]; then
58 ewarn "You have enabled ${MY_CRYPTOBACKEND} and openssl."
59 ewarn "Only one will be selected"
61 MY_CRYPTOBACKEND="openssl"
64 einfo "The selected crypto-backend is: ${MY_CRYPTOBACKEND}"
67 ewarn "You do not have OpenSSL as the crypto-backend,"
68 ewarn "TLS-connections will not be available."
69 ewarn "TLS-connectios currently need OpenSSL as crypto-backend."
74 # chipcard and directfb are configurable according to ./configure
75 # but they are currently not usable...
77 --with-crypto="${MY_CRYPTOBACKEND}" \
78 $(use_enable ssl tls) \
80 $(use_with debug debug-channel) \
81 $(use_with debug debug-kbd) \
82 $(use_with debug debug-rdp5) \
83 $(use_with debug debug-serial) \
84 $(use_with debug debug-sound) \
85 $(use_with alsa sound alsa) \
86 $(use_with cups printer cups) \
89 $(use_enable largefile) \
90 $(use_with libsamplerate) \