1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils
9 DESCRIPTION="A Remote Desktop Protocol Client"
10 HOMEPAGE="http://rdesktop.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
16 IUSE="alsa ao debug ipv6 kerberos libsamplerate oss pcsc-lite xrandr"
18 S=${WORKDIR}/${PN}-${MY_PV}
20 RDEPEND=">=dev-libs/openssl-0.9.6b:=
25 alsa? ( media-libs/alsa-lib )
26 ao? ( >=media-libs/libao-0.8.6 )
27 kerberos? ( net-libs/libgssglue )
28 libsamplerate? ( media-libs/libsamplerate )
29 pcsc-lite? ( >=sys-apps/pcsc-lite-1.6.6 )
30 xrandr? ( x11-libs/libXrandr )"
36 # Prevent automatic stripping
37 local strip="$(echo '$(STRIP) $(DESTDIR)$(bindir)/rdesktop')"
38 sed -i -e "s:${strip}::" Makefile.in \
39 || die "sed failed in Makefile.in"
41 # Automagic dependencies
42 epatch "${FILESDIR}"/${PN}-1.6.0-sound_configure.patch
43 epatch "${FILESDIR}"/${P}-xrandr_configure.patch
52 sound_conf=$(use_with ao sound libao)
53 else if use alsa; then
54 sound_conf=$(use_with alsa sound alsa)
56 sound_conf=$(use_with oss sound oss)
61 --with-openssl="${EPREFIX}"/usr \
64 $(use_with libsamplerate) \
66 $(use_enable kerberos credssp) \
67 $(use_enable pcsc-lite smartcard) \
72 emake DESTDIR="${D}" install
73 dodoc doc/HACKING doc/TODO doc/keymapping.txt